QlarIITy

PhysicsJEE Main 2024 · 4 AprilSingle correct

Identify the logic gate given in the circuit:

A logic circuit: input A passes through a NOT gate and input B through another NOT gate; the two inverted signals are the inputs of a NAND gate, whose output is Y.
  1. Option A: NAND-gate
  2. Option B: AND gate
  3. Option C: NOR gate
  4. Option D: OR- gate
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. A NAND gate with both inputs inverted is an OR gate.

Concept refresher. A NOT gate inverts its input. A NAND gate gives the inverse of the AND of its inputs: Y=P⋅Q‾Y = \overline{P \cdot Q}. By De Morgan's theorem, the inverse of an AND is the OR of the inverses:

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

and inverting a variable twice gives the variable back.

Picture the situation. Each input is flipped by a NOT gate before it reaches the NAND gate. A NAND gate gives 0 only when both of its inputs are 1, that is when both A and B are 0. For every other combination the output is 1, which is how an OR gate behaves.

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

Approach. Write the Boolean expression for the output and simplify it with De Morgan's theorem.

  1. Step 1: Expression for the output

    The inputs of the last gate are A‾\overline{A} and B‾\overline{B}, and the gate is a NAND, so

    Y=A‾⋅B‾‾Y = \overline{\overline{A} \cdot \overline{B}}
  2. Step 2: Simplifying

    By De Morgan's theorem the inverse of the AND is the OR of the inverses:

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

    which is the output of an OR gate.

Answer. (D) OR- gate

Sanity check. Check one row: with A = 0 and B = 0 the NAND gate receives 1 and 1 and gives 0, and for any other inputs it gives 1, the truth table of OR.

Why the other options are wrong

  • (A) NAND is only the last gate; the NOT gates in front change what the whole circuit does.
  • (B) An AND gate would give 1 only for A = B = 1, but this circuit gives 1 whenever either input is 1.
  • (C) A NOR gate gives 1 only when both inputs are 0; this circuit gives 0 in that case.

Key takeaway

The trap. Identify the circuit as a whole, not its last gate.

How toppers think. They remember the pair: inverted inputs turn NAND into OR and NOR into AND.

Remember. A‾⋅B‾‾=A+B\overline{\overline{A} \cdot \overline{B}} = A + B.

More on Semiconductors