Home / Digital / NAND Gate – The Universal Gate

# NAND Gate

NAND gate is also called a universal gate. This means that any other gate can be represented as a combination of these gates.

Theoretically, a two inputs NAND gate can be implemented by cascading a two-input AND gate and a NOT gate (or inverter gate). See the image below.

As in the case of two-input AND gate, the same analysis can be done for the 3-input or more AND gates. As you can see, the X output is “0” only when all inputs are “1”.

## Truth tables for the NAND gate

Note: An interesting case of this type of gate. Like the NOT gate, on the first and last lines of the truth tables, the output X has the opposite value of the inputs. In other words: A NAND logic gate can be used to obtain the behavior of a NOT gate

Although a NAND gate seems to be the combination of two gates (one AND gate and one NOT gate), they are not. Actually, the NAND logic gate is not built by cascading an AND gate and a NOT gate, but it has an independent design.

We can create a NOT gate using a NAND gate. We do this by joining the inputs of the gate, as seen on the next image.

Analyzing the truth table of two-input NAND gate, we see that there are only two cases:

• When A = B = 0, I = 1
• When A = B = 1, I = 0

We can create a logic OR gate using NAND gates. We do this by joining the inputs of the gate, as seen on the next image.  In the same way, it is possible to create a NOR gate, putting a NAND gate at the output of the OR gate equivalent below.

TTL SN7400N – Quad NAND Gate Integrated Circuit

•
•
• 5
•
•
•
•
•
5
Shares
•
5
Shares
•
•
• 5
•
•
•
•