Back to course

Derived Logic Gates: NAND and NOR (Universal Gates)

Digital Logic Systems: From Zero to Hero

7. Derived Logic Gates: NAND and NOR (Universal Gates)

NAND and NOR gates are crucial because they are universal gates, meaning any other logic gate (AND, OR, NOT, XOR, XNOR) can be constructed solely using one type of universal gate.

1. The NAND Gate (NOT-AND)

  • Function: The inverse of the AND operation.
  • Symbol: AND symbol followed by a bubble.
  • Equation: $Y = \overline{A \cdot B}$
ABA • BY = $\overline{A \cdot B}$
0001
0101
1001
1110

2. The NOR Gate (NOT-OR)

  • Function: The inverse of the OR operation.
  • Symbol: OR symbol followed by a bubble.
  • Equation: $Y = \overline{A + B}$
ABA + BY = $\overline{A + B}$
0001
0110
1010
1110

Universality of NAND

  • NOT using NAND: Connect both inputs of a NAND gate together.
  • AND using NAND: NAND gate followed by a NOT (NAND).
  • OR using NAND: $\overline{(\overline{A}) \cdot (\overline{B})}$ (using De Morgan's Law, covered next).

This universality makes NAND (and NOR) gates highly valuable in integrated circuit (IC) manufacturing.