QlarIITy

PhysicsJEE Main 2024 · 31 JanuarySingle correct

Identify the logic operation performed by the given 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
  2. Option B: NOR
  3. Option C: OR
  4. Option D: AND
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 performs the OR operation.

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. The NAND gate gives 0 only when both of its inputs are 1, which happens only when A and B are both 0. So the circuit gives 1 whenever at least one of A and B is 1.

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 OR operation.

Answer. (C) OR

Sanity check. The four outputs for inputs 00, 01, 10, 11 come out as 0, 1, 1, 1, the truth table of OR.

Why the other options are wrong

  • (A) is only the last gate; with the inputs inverted the whole circuit behaves differently.
  • (B) gives 1 only when both inputs are 0; this circuit gives 0 in that case.
  • (D) gives 1 only for A = B = 1; this circuit gives 1 whenever either input is 1.

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