1.7 KiB
categories | tags | |||||
---|---|---|---|---|---|---|
|
|
NAND gate
A NAND gate is a logic gate that inverts the truth-conditions for AND
.
Diagram representing NAND gate:

The diagram below shows how the circuit models the truth conditions for NAND

This is the exact opposite to the truth-conditions for AND.
Transliterating the logic truth-table to the switch behaviour
We can now present a truth table for NAND along side that for AND:
A B Output
_ _ _____
f f t
t f t
f t t
t t f
A B Output
_ _ _____
t t t
t f f
f t f
f f f
We can see that it inverts the value of AND.
Significance of the NAND gate: functional completeness
Equipped with just a NAND we can represent every other possible logical condition within a circuit.
In practice, it is more efficient to use specific dedicated gates (i.e OR, AND, NOT etc) for the other Boolean connectives but in principle the same output can be achieved through NANDs alone.
When we add more NAND gates and combine them with each other in different ways we can create more complex output sequences and these too will have corresponding truth tables.