Choose the correct logic circuit for the given truth table having inputs A and B.
- Option A: Diagram A
- Option B: Diagram B
- Option C: Diagram C
- Option D: Diagram D
Solution
Core idea. Reduce the truth table to an expression first, then look for the circuit that computes it.
Concept refresher. An OR gate gives , an AND gate gives the product of its inputs and a NOT gate inverts. Two reductions are useful:
and . A truth table is matched to a circuit by writing the output expression of the circuit and checking it row by row.
Picture the situation. The table has output 0 in the two rows where A is 0 and output 1 in the two rows where A is 1; B makes no difference. So the right circuit must pass A through unchanged, whatever B is doing.
Approach. Read the output from the table as a function of the inputs, then find the circuit with the same expression.
Step 1: Reading the table
The output is 0, 0, 1, 1 for the inputs 00, 01, 10, 11. It is the same as in every row, so .
Step 2: The four circuits
In each circuit an OR gate gives to an AND gate. The other input of the AND gate is in the first circuit, in the second, and in the third, where the OR output is also inverted; in the fourth it is . The outputs are
Step 3: The choice
Only the second circuit gives the output equal to A, so diagram B matches the table.
Answer. (B) Diagram B
Sanity check. Check the row 10 on diagram B: the OR gate gives 1, the AND gate receives 1 and 1, and the output is 1, as in the table.
Why the other options are wrong
- (A) Its AND gate takes as the second input, so its output is : the column 0, 1, 0, 1.
- (C) Its OR output is inverted before the AND gate, so its output is , which is 0 in every row.
- (D) Its AND gate takes , so its output is : 1 only for the inputs 01.
Key takeaway
The trap. An output column that copies one input means the other input is redundant.
How toppers think. They spot that the column of Y equals the column of A before looking at any circuit.
Remember. .
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›