Chapter 1: Q6E (page 2)
Prove that the NAND gate is universal by showing how to build the AND, OR, and NOT functions using a two-input NAND gate.
Short Answer
According to DeMorgan’s law, the complement of the OR of two values is equal to the AND of their complements and the complement of the AND of two values is equal to the OR of their complements.
Using this law, the AND function for two values X and Y can be built as
The OR function can be built as.
The NOT function can be built as.