13 Jul 2026
Verification of Logic Gates Using NAND Gates
practical
ug-iv
electronics
logic-gates
nand
Experimental arrangement
Aim
To verify AND, OR, NOT, and XOR functions using NAND gates.
Apparatus
Digital logic trainer, IC 7400, regulated $5\,\text{V}$ supply, patch cords, and LED indicators.
Theory
The NAND operation is $Y=\overline{AB}$. Since a NAND gate can be combined to produce the basic operations, it is called a universal gate. NOT is obtained by joining the two inputs of one NAND gate. Further combinations give AND, OR, and XOR functions.
Observations
| $A$ | $B$ | AND | OR | XOR |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 |
NOT-gate observations: $A=0\Rightarrow Y=1$ and $A=1\Rightarrow Y=0$.
Result
The truth tables of AND, OR, NOT, and XOR are verified using NAND gates.
Precautions
- Use only the specified supply voltage for the IC.
- Connect the ground terminal before applying power.
- Do not leave CMOS or TTL inputs floating.
- Switch off power before changing patch cords.
Viva Questions
- Why is NAND universal? Any basic logic operation can be constructed from NAND gates alone.
- What is a floating input? It is an unconnected logic input whose state is undefined.
- What is XOR output for equal inputs? It is zero.
- Why are LEDs used? They give a direct indication of the logic output state.
Discussion