The logic gate equivalent to the given circuit diagram is :
- Option A: OR
- Option B: NAND
- Option C: NOR
- Option D: AND
Solution
Core idea. Switches in series across a lamp make a NAND gate: the lamp goes out only when all are closed.
Concept refresher. In a switch circuit an input is 1 when its switch is closed and the output is 1 when the lamp glows. Two switches in series conduct only when both are closed. If that series pair is connected across the lamp, the lamp is short-circuited only when both switches are closed and glows otherwise:
which is the NAND operation.
Picture the situation. The branch with the two switches and the branch with the LED both run from the + line to the resistor. If either switch is open, that branch is broken and the current must pass through the LED. Only with both switches closed does the current find a path without resistance and leave the LED dark.
Approach. Work out the state of the LED for each combination of the switches and recognise the truth table.
Step 1: Any switch open
With either switch open, the left branch carries no current, so the current from the + line flows through the LED and it glows: Y = 1 for the inputs 00, 01 and 10.
Step 2: Both switches closed
With both closed, the left branch joins the top wire directly to the bottom wire. There is no voltage across the LED and it does not glow: Y = 0 for the inputs 11.
Step 3: The gate
The output is 0 only when both inputs are 1, which is the truth table of a NAND gate.
Answer. (B) NAND
Sanity check. With the switches side by side instead of one after the other, either one alone would short the LED and the gate would be NOR.
Why the other options are wrong
- (A) An OR gate gives 0 for the inputs 00; here the LED glows when both switches are open.
- (C) A NOR gate gives 1 only for 00; here the LED also glows when just one switch is closed.
- (D) An AND gate gives 1 when both inputs are 1; with both switches closed the LED is shorted and dark.
Key takeaway
The trap. Series switches feeding a lamp give AND; series switches across the lamp give NAND.
How toppers think. They test the row with both switches closed, which separates NAND from OR at once.
Remember. Lamp across series switches: NAND. Lamp across parallel switches: NOR.
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›