The correct truth table for the given input data of the following logic gate is :
- Option A: Table (A)
- Option B: Table (B)
- Option C: Table (C)
- Option D: Table (D)
Solution
Core idea. Write each gate's output in order, then simplify with De Morgan's theorems before evaluating rows.
Concept refresher. An AND gate gives , an OR gate and a NOT gate . De Morgan's theorems turn a NOT over a product or a sum into the other operation:
Approach. Write the output of each gate in order, simplify the expression for , and evaluate it for the four input rows.
Step 1: Outputs gate by gate
The first AND gate followed by a NOT gate gives , and the OR gate gives . The second AND gate followed by the last NOT gate gives
Step 2: Simplify with De Morgan's theorems
Breaking the outer bar over the product, then the bar over the sum:
So when and are both , or when and are both .
Step 3: Evaluate the rows
Row : , so . Row : and , are not both , so . Row : and , so . Row : , so .
The output column is , which is Table (A).
Answer. (A) Table (A)
Sanity check. Check row directly on the circuit: the NAND of and is , the OR of and is , the AND gives , and the final NOT gives , as Table (A) shows.
Smart method. Every given row except and has , and then forces the output to . In the other two rows and , so the output is . Only Table (A) reads . This shortcut works because one input to the second AND gate decides it alone whenever that input is .
Why the other options are wrong
- (B) has for ; there , so the NAND output is , the second AND gate gives and the final NOT gate gives .
- (C) has for ; there the NAND output is and , so the AND gate gives and the final NOT gate gives .
- (D) has for , where makes the NAND output and so ; it also has for , where .
Key takeaway
The trap. Dropping one of the two NOT gates, which inverts some rows of the output.
How toppers think. They spot that makes the output at once, and check only the remaining rows.
Remember. by De Morgan's theorems.
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 ›