QlarIITy

PhysicsJEE Main 2021 · 25 FebruarySingle correct

The truth table for the following logic circuit is :

A logic circuit with inputs A and B and two AND gates. A goes directly to the upper AND gate and, through a NOT gate, to the lower AND gate. B goes directly to the lower AND gate and, through a NOT gate, to the upper AND gate; the two inverted lines cross without touching. The outputs of the two AND gates feed a NOR gate, whose output is Y.
  1. Option A: Table A
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 1, A = 0 B = 1 gives Y = 0, A = 1 B = 0 gives Y = 0, A = 1 B = 1 gives Y = 1.
  2. Option B: Table B
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 1, A = 0 B = 1 gives Y = 0, A = 1 B = 0 gives Y = 1, A = 1 B = 1 gives Y = 0.
  3. Option C: Table C
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 0, A = 0 B = 1 gives Y = 1, A = 1 B = 0 gives Y = 0, A = 1 B = 1 gives Y = 1.
  4. Option D: Table D
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 0, A = 0 B = 1 gives Y = 0, A = 1 B = 0 gives Y = 1, A = 1 B = 1 gives Y = 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. Two AND gates with crossed inverted inputs pick out the unequal cases; a NOR gate after them gives the equality function.

Concept refresher. The exclusive OR, AB‾+A‾BA\overline{B} + \overline{A}B, is 1 when the two inputs differ. A NOR gate gives the inverse of the sum of its inputs, so a NOR gate fed with these two terms gives the exclusive NOR,

Y=AB‾+A‾B‾=AB+A‾B‾Y = \overline{A\overline{B} + \overline{A}B} = AB + \overline{A}\overline{B}

which is 1 when the inputs are equal.

Picture the situation. Each AND gate gets one input straight and the other one flipped, so each fires for one of the two cases in which the inputs differ. The NOR gate gives 1 only when neither AND gate fires, which means the inputs are equal.

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

Approach. Write the output of each AND gate, apply the NOR gate, and evaluate the four rows.

  1. Step 1: The upper AND gate

    It receives AA directly and BB through a NOT gate, so it gives AB‾A\overline{B}.

  2. Step 2: The lower AND gate

    It receives BB directly and AA through a NOT gate, so it gives A‾B\overline{A}B.

  3. Step 3: The NOR gate

    It inverts the sum of the two:

    Y=AB‾+A‾B‾Y = \overline{A\overline{B} + \overline{A}B}

    The sum is 1 when the inputs differ, so YY is 1 when they are equal.

  4. Step 4: Matching

    For the inputs 00, 01, 10 and 11 the outputs are 1, 0, 0 and 1, which is the column of Table A.

Answer. (A) Table A

Sanity check. Check the row 11: each AND gate receives one 0 and gives 0, so the NOR gate gives 1, as Table A says.

Why the other options are wrong

  • (B) Its outputs 1, 0, 1, 0 are the complement of B; for the inputs 11 this circuit gives 1.
  • (C) Its outputs 0, 1, 0, 1 are simply the column of B; for the inputs 00 this circuit gives 1.
  • (D) Its outputs 0, 0, 1, 1 are simply the column of A; for the inputs 10 the upper AND gate fires and this circuit gives 0.

Key takeaway

The trap. A bubble at the output inverts the whole output column of the truth table.

How toppers think. They check the rows 00 and 11 first: equal inputs must give 1 here.

Remember. Y=AB+A‾B‾Y = AB + \overline{A}\overline{B}.

More on Semiconductors