Universal gates
Table of contents
Introduction
Universal gates are gates which can be used to implement all other gates. This is useful as manufacturers only need to produce 1 type of universal gate to be able to use all other gates.
The universal gates are NOR and NAND. This page will show you how to implement AND, OR and NOT gates using universal gates. The AND, OR and NOT gates are basic gates that are commonly used and are very important.
NOR gate
The NOR gate is the opposite of the OR gate. It is like an OR gate followed by a NOT gate.
Implementing NOT gate
A NOT gate can be implemented by passing the same input into both inputs of the NOR gate.
Implementing OR gate
An OR gate can be implemented by passing the output of NOR to the NOT gate implemented earlier.
Implementing AND gate
Since the NOR gate outputs true only when both inputs are 0, an AND gate can be implemented by inverting the inputs to a NOR gate.
NAND gate
The NAND gate is the opposite of the AND gate. It is like an AND gate followed by a NOT gate.
Implementing NOT gate
Similarly to NOR, a NOT gate can also be implemented by joining the inputs of a NAND gate.
Implementing OR gate
The only time the NAND gate output is 0 is when both inputs are 1. Therefore, by inverting the inputs of a NAND gate, an OR gate can be implemented.
Implementing AND gate
The AND gate is simply the output of a NAND gate inverted.