Boolean algebra Q = A*B+A' The Truth Table and Schematic: VHDL Code: q <= (a AND b) OR (NOT a); Synthesis (extra NOT gates are due to the buttons' pull-up resistors and LED's connection to the chip):