In the following logic circuit the sequence of the inputs , are , , and . The output for this sequence will be :
- Option A: 0, 1, 0, 1
- Option B: 0, 0, 1, 1
- Option C: 1, 1, 1, 0
- Option D: 1, 0, 1, 0
Solution
Core idea. AND and OR outputs fed to a NAND gate reduce to the NAND of the two inputs.
Concept refresher. An AND gate gives and an OR gate gives . Their product reduces, because already makes :
A NAND gate gives the inverse of the product of its inputs, which is 0 only when both inputs are 1.
Picture the situation. The NAND gate goes low only when P and Q are both high. P, the output of the AND gate, is high only when both inputs are 1, and in that case Q is high as well. So the output is low for that one pair of inputs and high for the others.
Approach. Write the output expression, simplify it, and evaluate it for the four input pairs in order.
Step 1: The two intermediate outputs
The AND gate gives and the OR gate gives .
Step 2: The NAND gate
The last gate is a NAND gate, so it gives the inverse of the product of and :
since .
Step 3: The sequence
For , and the product is 0 and ; for it is 1 and . The outputs in order are 1, 1, 1, 0.
Answer. (C) 1, 1, 1, 0
Sanity check. Check (0, 1) on the circuit: P = 0 and Q = 1, and a NAND gate with a 0 at an input gives 1.
Why the other options are wrong
- (A) It is the sequence of B itself, 0, 1, 0, 1; the circuit gives 1 for the inputs (0, 0).
- (B) It is the sequence of A itself, 0, 0, 1, 1; the circuit gives 1 for the inputs (0, 0) and (0, 1).
- (D) It is the complement of B, 1, 0, 1, 0; the circuit gives 1 for (0, 1) and 0 for (1, 1).
Key takeaway
The trap. The OR gate adds nothing here: whenever the AND output is 1, the OR output is 1 too.
How toppers think. They look for the single input pair that makes both P and Q high.
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 ›