Table of Digital Logic Gates and Their Properties

 

 

 

Gate

Description

Truth Table

AND Gate

The AND gate is a logic gate that gives an output of '1' only when all of its inputs are '1'.  Thus, its output is '0' whenever at least one of its inputs is '0'. Mathematically, Q = A · B.

A B Output Q
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate

The OR gate is a logic gate that gives an output of '0' only when all of its inputs are '0'. Thus, its output is '1' whenever at least one of its inputs is '1'. Mathematically, Q = A + B.

A B Output Q
0 0 0
0 1 1
1 0 1
1 1 1
NOT Gate

The NOT gate is a logic gate that gives an output that is opposite the state of its input.  Mathematically, Q = A.

A Output Q
0 1
1 0
NAND Gate

The NAND gate is an AND gate with a NOT gate at its end. Thus, for the same combination of inputs, the output of a NAND gate will be opposite that of an AND gate. Mathematically, Q = A · B.

A B Output Q
0 0 1
0 1 1
1 0 1
1 1 0
NOR Gate

The NOR gate is an OR gate with a NOT gate at its end. Thus, for the same combination of inputs, the output of a NOR gate will be opposite that of an OR gate. Mathematically, Q = A + B.

A B Output Q
0 0 1
0 1 0
1 0 0
1 1 0

EXOR Gate

The EXOR gate (for 'EXclusive OR' gate) is a logic gate that gives an output of '1' when only one of its inputs is '1'.

A B Output Q
0 0 0
0 1 1
1 0 1
1 1 0