CS137-lecture-20210223 #
DeMorgan’s Theorem #
Theorem 1: \(\neg(x \cdot y) = \neg x + \neg y\)
Theorem 2: \(\neg(x + y) = \neg x \cdot \neg y\)
Steps to convert to all NAND gates:
-
Replace each NOT gate with its equivalent NAND gate. Connecting the inputs of a NAND gate makes a NOT gate.
-
Place two NOT gates on each of signals going into the final OR.
-
Replace each AND NOT combo with a NAND gate.