QlarIITy

PhysicsJEE Main 2021 · 31 AugustSingle correct

In the following logic circuit the sequence of the inputs AA, BB are (0,0)(0, 0), (0,1)(0, 1), (1,0)(1, 0) and (1,1)(1, 1). The output YY for this sequence will be :

A logic circuit: inputs A and B feed an AND gate, whose output is marked P, and the same inputs feed an OR gate, whose output is marked Q. P and Q are the inputs of a NAND gate, whose output is Y.
  1. Option A: 0, 1, 0, 1
  2. Option B: 0, 0, 1, 1
  3. Option C: 1, 1, 1, 0
  4. Option D: 1, 0, 1, 0
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. AND and OR outputs fed to a NAND gate reduce to the NAND of the two inputs.

Concept refresher. An AND gate gives ABAB and an OR gate gives A+BA + B. Their product reduces, because AB=1AB = 1 already makes A+B=1A + B = 1:

AB⋅(A+B)=ABAB \cdot (A + B) = AB

A NAND gate gives the inverse of the product of its inputs, which is 0 only when both inputs are 1.

Picture the situation. The NAND gate goes low only when P and Q are both high. P, the output of the AND gate, is high only when both inputs are 1, and in that case Q is high as well. So the output is low for that one pair of inputs and high for the others.

A truth table with the columns A, B, P, Q and Y: for the inputs 00, 01, 10 and 11 the output Y is 1, 1, 1 and 0.

Approach. Write the output expression, simplify it, and evaluate it for the four input pairs in order.

  1. Step 1: The two intermediate outputs

    The AND gate gives P=ABP = AB and the OR gate gives Q=A+BQ = A + B.

  2. Step 2: The NAND gate

    The last gate is a NAND gate, so it gives the inverse of the product of PP and QQ:

    Y=AB⋅(A+B)‾=AB‾Y = \overline{AB \cdot (A + B)} = \overline{AB}

    since AB⋅(A+B)=ABAB \cdot (A + B) = AB.

  3. Step 3: The sequence

    For (0,0)(0, 0), (0,1)(0, 1) and (1,0)(1, 0) the product ABAB is 0 and Y=1Y = 1; for (1,1)(1, 1) it is 1 and Y=0Y = 0. The outputs in order are 1, 1, 1, 0.

Answer. (C) 1, 1, 1, 0

Sanity check. Check (0, 1) on the circuit: P = 0 and Q = 1, and a NAND gate with a 0 at an input gives 1.

Why the other options are wrong

  • (A) It is the sequence of B itself, 0, 1, 0, 1; the circuit gives 1 for the inputs (0, 0).
  • (B) It is the sequence of A itself, 0, 0, 1, 1; the circuit gives 1 for the inputs (0, 0) and (0, 1).
  • (D) It is the complement of B, 1, 0, 1, 0; the circuit gives 1 for (0, 1) and 0 for (1, 1).

Key takeaway

The trap. The OR gate adds nothing here: whenever the AND output is 1, the OR output is 1 too.

How toppers think. They look for the single input pair that makes both P and Q high.

Remember. AB(A+B)=ABAB(A + B) = AB.

More on Semiconductors