QlarIITy

PhysicsJEE Main 2019 · 12 JanuarySingle correct

The output of the given logic circuit is:

A logic circuit of four gates: inputs A and B feed a NAND gate. Its output goes to a second NAND gate, whose other input is A, and to an OR gate, whose other input is B. The outputs of the second NAND gate and the OR gate feed a third NAND gate, whose output is Y.
  1. Option A: AB‾A\overline{B}
  2. Option B: A‾B\overline{A}B
  3. Option C: AB+AB‾AB + \overline{AB}
  4. Option D: AB‾+A‾BA\overline{B} + \overline{A}B
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. 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 PQ‾=P‾+Q‾\overline{PQ} = \overline{P} + \overline{Q} (De Morgan's theorem). A signal added to its own inverse is always 1, and multiplied by its own inverse it is always 0:

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

A truth table with the columns A, B, first, upper, OR and Y: the OR gate gives 1 in every row, and the output Y is 0, 0, 1 and 0 for the inputs 00, 01, 10 and 11.

Approach. Write the output of each gate in terms of the first gate and simplify step by step.

  1. Step 1: First NAND gate

    It receives AA and BB, so by De Morgan's theorem N=AB‾=A‾+B‾N = \overline{AB} = \overline{A} + \overline{B}.

  2. Step 2: Upper NAND gate

    It receives AA and NN. Since A⋅N=A(A‾+B‾)=AB‾A \cdot N = A(\overline{A} + \overline{B}) = A\overline{B}, its output is AB‾‾\overline{A\overline{B}}.

  3. Step 3: OR gate

    It receives NN and BB, and its output is the same whatever the inputs:

    N+B=A‾+B‾+B=1N + B = \overline{A} + \overline{B} + B = 1
  4. Step 4: Last NAND gate

    Its inputs are AB‾‾\overline{A\overline{B}} and 1, so it inverts the first:

    Y=AB‾‾⋅1‾=AB‾Y = \overline{\overline{A\overline{B}} \cdot 1} = A\overline{B}

Answer. (A) AB‾A\overline{B}

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. B+B‾=1B + \overline{B} = 1.

More on Semiconductors