In the logic circuit shown in the figure, if input and are 0 and 1 respectively, the output at would be . The value of is ______.
Solution
Core idea. Write the logic level on every wire, gate by gate, from the inputs to the output.
Concept refresher. A NOT gate inverts its input, and two NOT gates in a row give back the original signal:
A NOR gate gives , a NAND gate gives and an AND gate gives , which is high only when both of its inputs are high.
Picture the situation. Put the levels on the wires. A is 0 and B is 1. The NOR gate sees A and, after two inversions, B again; with a 1 at one input it gives 0. That 0 goes to the last AND gate, and an AND gate with a 0 at either input gives 0.
Approach. Write the level at each gate input for the given A and B, and work through to Y.
Step 1: Levels after the NOT gates
With and , the NOT gate on the tap from A gives and the NOT gate after B gives . The second NOT gate, on the line going up, inverts again and gives back .
Step 2: The NOR gate
It receives and , so its output is
Step 3: The NAND gate
It receives and , so its output is
Step 4: The AND gate
Its two inputs are 0 and 1, so the output is . Hence .
Answer. 0
Sanity check. In general the two middle gates give and , a signal and its inverse, so the AND gate gives 0 for every pair of inputs.
Common wrong answers
- 1: 1 comes from missing the second NOT gate: the NOR gate would then receive 0 and 0 and give 1, and the AND gate, with 1 and 1, would give 1.
Key takeaway
The trap. Two NOT gates on one path cancel; count every inverter along a wire before using its signal.
How toppers think. They notice that the two middle gates give a signal and its inverse, so the AND output is 0 for any inputs.
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 ›