QlarIITy

PhysicsJEE Main 2020 · 8 JanuarySingle correct

In the given circuit, value of YY is:

A logic circuit with two fixed inputs, 1 and 0, and three NAND gates. The input 1 passes through a NOT gate; the inverted signal goes to both inputs of the top NAND gate and also, through a second NOT gate, to one input of the middle NAND gate. The input 0 goes to one input of the bottom NAND gate, whose other input is the output of the top NAND gate. The output of the bottom NAND gate is the other input of the middle NAND gate, whose output is Y.
  1. Option A: 0
  2. Option B: toggles between 0 and 1
  3. Option C: will not execute
  4. Option D: 1
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

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,

Y=P⋅Q‾Y = \overline{P \cdot Q}

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.

A table of the levels: the first NOT gate gives 0, the top NAND gate 1, the second NOT gate 1, the bottom NAND gate 1, and the output Y is 0.

Approach. Evaluate the gates in the order in which their inputs become known.

  1. 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 0⋅0‾=1\overline{0 \cdot 0} = 1.

  2. 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.

  3. Step 3: The bottom NAND gate

    It receives the input 0 and the output 1 of the top gate, so it gives 0⋅1‾=1\overline{0 \cdot 1} = 1. This goes to the lower input of the middle NAND gate.

  4. Step 4: The middle NAND gate

    Both of its inputs are 1, so the output of the circuit is

    Y=1⋅1‾=0Y = \overline{1 \cdot 1} = 0

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. 0⋅X‾=1\overline{0 \cdot X} = 1.

More on Semiconductors