1.1.5. Other Gates

There are other logic gates that are made from the 3 basic gates. Their functions are commonly used and that is why they are represented as gates.

1.1.5.1. NAND Gate

It is the negated function of the AND gate.

Table 1.1 Truth table

a

b

c = a NAND b

0

0

1

0

1

1

1

0

1

1

1

0

../../_images/2000px-Nand-gate-en.png

Fig. 1.4 NAND Gate

1.1.5.2. NOR Gate

It is the negated function of the OR gate.

Table 1.2 Truth table

a

b

c = a NOR b

0

0

1

0

1

0

1

0

0

1

1

0

../../_images/1200px-NOR_ANSI_Labelled.svg.png

Fig. 1.5 NOR Gate

1.1.5.3. XOR Gate

If a and b are different the result is 1, otherwise 0.

Table 1.3 Truth table

a

b

c = a XOR b

0

0

0

0

1

1

1

0

1

1

1

0

../../_images/Xor-gate-en.svg.png

Fig. 1.6 XOR Gate

1.1.5.4. XNOR Gate

If a and b are different the result is 0, otherwise 1.

Table 1.4 Truth table

a

b

c = a XNOR b

0

0

1

0

1

0

1

0

0

1

1

1

../../_images/2000px-Xnor-gate-en.svg.png

Fig. 1.7 XNOR Gate