What if the AND answer is reversed?
Imagine a school rule:
โYou may enter unless you are wearing a red shirt AND red shoes.โ
If both are red, entry is refused. Every other combination is allowed.
The NAND gate performs AND first, then reverses the answer.
Imagine a school rule:
โYou may enter unless you are wearing a red shirt AND red shoes.โ
If both are red, entry is refused. Every other combination is allowed.
A NAND gate has two inputs and one output.
It first checks whether both inputs are 1. It then reverses that result.
The NAND symbol looks like an AND gate with a small circle on its output.
The small circle means NOT. It reverses the AND result.
Compare the NAND outputs with the AND truth table. Every output is reversed.
| A | B | X |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
The inputs are labelled A and B. The output is labelled X.
This means X is the opposite of A AND B.
A NAND gate receives A = 1 and B = 0. What is the output X?
A = 1 and B = 1 gives X = 1.
AND gives 1, then NAND reverses it to X = 0.