In the given circuit, value of is:
- Option A: 0
- Option B: toggles between 0 and 1
- Option C: will not execute
- Option D: 1
Solution
Core idea. In a tangled gate circuit, evaluate the gates in the order in which their inputs become known.
Concept refresher. A NAND gate gives the inverse of the product of its inputs,
so its output is low only when both inputs are high; a low level at either input fixes the output high whatever the other input is. A NOT gate turns a high level into a low one and a low level into a high one.
Picture the situation. The circuit looks tangled, but nothing in it depends on Y, so there is no real feedback. Take the gates in the order in which their inputs become known. The top gate gets two low levels and gives a high one. The bottom gate has a low level at one input, so it gives a high output regardless. The middle gate then has a high level from the second inverter and a high level from the bottom gate.
Approach. Evaluate the gates in the order in which their inputs become known.
Step 1: The first NOT gate and the top NAND gate
The input 1 is inverted to 0, and this 0 goes to both inputs of the top NAND gate, which therefore gives .
Step 2: The second NOT gate
The same 0 passes down through the second NOT gate and becomes 1; this is the upper input of the middle NAND gate.
Step 3: The bottom NAND gate
It receives the input 0 and the output 1 of the top gate, so it gives . This goes to the lower input of the middle NAND gate.
Step 4: The middle NAND gate
Both of its inputs are 1, so the output of the circuit is
Answer. (A) 0
Sanity check. No wire carries Y back into the circuit, so the output cannot toggle: it has one fixed value, set by the two inputs.
Why the other options are wrong
- (B) Toggling needs the output to be fed back to an input; here the wires that loop round come from the top and bottom gates, whose outputs are fixed.
- (C) Every gate has definite levels at its inputs, so the circuit settles to a definite output.
- (D) Y = 1 would need a 0 at an input of the middle gate; it receives 1 from the second NOT gate and 1 from the bottom gate.
Key takeaway
The trap. A wire that loops back is feedback only if it carries the output of a later gate to an earlier one.
How toppers think. They use the fact that a 0 at any input fixes a NAND output at 1, without needing the other input.
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 ›