Drive XOR using either
NAND gates or NOR gates.
From Digital Basics section we know the equations for XOR and NAND gates. The equations are also shown below.
Table below lists truth tables of NAND
, NOR
and XOR
.
Input A | Input B | NAND | NOR | XOR |
---|---|---|---|---|
0 | 0 | 1 | 1 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 0 | 0 |
First Lets drive XOR gate using only NAND gates.