L0 L1 L2 L3 L4
Hardware Logic • Level 02

Level 2: Universal Gates & Combinational Logic

Minimum NAND/NOR realizations table, functional completeness, XOR/XNOR behavioral analysis, staircase switch logic, and NIMCET PYQs.

NAND/NOR Table
1-2-3-4-5 Trick
XOR: 4 NAND
XNOR: 4 NOR
Staircase Logic
NIMCET 2023 Real Pattern
NIMCET 2027 Mastery Roadmap — Boolean Algebra
Level 0: Foundation (Passed)
Level 1: Simplification (Passed)
Level 2: Universal Gates (Current)
Level 3: Canonical Forms (SOP/POS)
Level 4: K-Maps & Minimization

1. Minimum NAND / NOR Realization Table

The single most frequently tested memory matrix in NIMCET Computer Awareness

NAND aur NOR gates ko Universal Gates kaha jata hai kyunki inki madad se kisi aur gate ke bina koi bhi digital circuit implement kiya ja sakta hai. Exam me circuit diagrams banane ka time nahi hota — ye memory table direct answer nikalwati hai:

Target Logic Gate Minimum NAND Gates Required Minimum NOR Gates Required Symmetric Pattern Rule
NOT Gate $\mathbf{1}$ $\mathbf{1}$ Tie input: $\overline{A \cdot A} = \overline{A + A} = A'$
AND Gate $\mathbf{2}$ $\mathbf{3}$ NAND needs 2 (NAND + NOT); NOR needs 3
OR Gate $\mathbf{3}$ $\mathbf{2}$ NOR needs 2 (NOR + NOT); NAND needs 3
XOR Gate ($A \oplus B$) $\mathbf{4}$ $\mathbf{5}$ Super Hot Topic! $4$ NAND, $5$ NOR
XNOR Gate ($A \odot B$) $\mathbf{5}$ $\mathbf{4}$ Exact reverse of XOR: $5$ NAND, $4$ NOR
AIR 1 Symmetric Memory Trick:
• NAND column reads: 1, 2, 3, 4, 5 (for NOT, AND, OR, XOR, XNOR).
• NOR column reads: 1, 3, 2, 5, 4 (AND & OR swap, XOR & XNOR swap!).
Immediate Demonstration

Question: Minimum NAND gates required for $AB + A\bar{B}C + A\bar{B}\bar{C}$ (NIMCET 2022 & 2015)

1. Pehle expression ko simplify karo:
$A\bar{B}C + A\bar{B}\bar{C} = A\bar{B}(C + \bar{C}) = A\bar{B}(1) = A\bar{B}$.
2. Ab expression bana: $AB + A\bar{B} = A(B + \bar{B}) = A(1) = \mathbf{A}$.
3. Pure expression ka final output sirf input line $A$ hai! Isme kisi logic operation ya gate ki zaroorat hi nahi hai.
Minimum NAND Gates Required = 0! (Exact option in NIMCET 2022).

2. Functional Completeness & Behavioral Gates

Exam vocabulary traps: "Inhibited by Low" and "Staircase Switch"

3. Official NIMCET PYQs Showcase (Interactive)

Practice universal gates and gate behavior questions
NIMCET 2015 & 2022 Official Topic: Minimum NAND Realization
The minimum number of NAND gates required to realize the Boolean expression $AB + A\bar{B}C + A\bar{B}\bar{C}$ is:
A $3$
B $2$
C $1$
D $0$
Correct Answer: Option (D) 0

Simplify: $AB + A\bar{B}(C + \bar{C}) = AB + A\bar{B} = A(B + \bar{B}) = A$.
Kyunki expression reduce hokar seedha $A$ ban jata hai, koi gate lagane ki zaroorat nahi hai. Gate count = 0.
NIMCET 2023 Official Topic: Staircase Switch Behavior
A staircase light is controlled by two switches, one at the top and the other at the bottom of the stairs. The light can be turned ON or OFF by either of the switches. The logic gate representing this behavior is:
A XOR gate
B AND gate
C OR gate
D NAND gate
Correct Answer: Option (A) XOR gate

In a staircase wiring system, toggling either switch inverts the lamp state. Output is 1 if inputs are different ($01$ or $10$), and 0 if inputs are identical ($00$ or $11$). This matches the truth table of an XOR gate.
NIMCET 2017 Official Topic: Functional Completeness
Which of the following logic gates is/are functionally complete?
I. NAND   II. NOR   III. XOR
A I only
B I and II only
C II and III only
D I, II and III
Correct Answer: Option (B) I and II only

NAND aur NOR universal gates hain aur functionally complete hote hain. XOR alone is not functionally complete because it cannot produce inversion without an external constant 1 input.

4. Minimum Gate Calculator & Visualizer

Select any standard logic function to view required NAND and NOR gates count
Universal Gate Count Assistant
Select target gate to inspect required universal gate counts and circuit logic.