Identify the logic gate given in the circuit:
- Option A: NAND-gate
- Option B: AND gate
- Option C: NOR gate
- Option D: OR- gate
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: . By De Morgan's theorem, the inverse of an AND is the OR of the inverses:
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.
Approach. Write the Boolean expression for the output and simplify it with De Morgan's theorem.
Step 1: Expression for the output
The inputs of the last gate are and , and the gate is a NAND, so
Step 2: Simplifying
By De Morgan's theorem the inverse of the AND is the OR of the inverses:
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. .
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 ›