The output of the given logic circuit is:
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. Carry one named signal through the circuit and simplify at every gate; a gate stuck at 1 drops out.
Concept refresher. A NAND gate gives (De Morgan's theorem). A signal added to its own inverse is always 1, and multiplied by its own inverse it is always 0:
A NAND gate with one input held at 1 simply inverts the other input.
Picture the situation. The first NAND gate's output feeds both the upper NAND gate and the OR gate. The OR gate adds B to something that already contains NOT-B, so it is stuck at 1. With one input stuck at 1, the last NAND gate only inverts the upper gate's output.
Approach. Write the output of each gate in terms of the first gate and simplify step by step.
Step 1: First NAND gate
It receives and , so by De Morgan's theorem .
Step 2: Upper NAND gate
It receives and . Since , its output is .
Step 3: OR gate
It receives and , and its output is the same whatever the inputs:
Step 4: Last NAND gate
Its inputs are and 1, so it inverts the first:
Answer. (A)
Sanity check. Check A = 1, B = 0: the first gate gives 1, the upper gate gives 0, the OR gate gives 1, and the last NAND gate gives 1, as the expression says.
Why the other options are wrong
- (B) has the roles of the inputs exchanged: it is 1 for A = 0, B = 1, where the circuit gives 0.
- (C) is a signal plus its own inverse, which is always 1; the circuit gives 0 when both inputs are 0.
- (D) It is the exclusive OR, which is also 1 for A = 0, B = 1; for those inputs the upper NAND gate gives 1 and the last gate gives 0.
Key takeaway
The trap. An OR gate fed with a signal and something containing its inverse may be a constant.
How toppers think. They look for constants first: B plus anything containing NOT-B is 1.
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 ›