INPUTA B |
OUTPUTA XNOR B | |

0 | 0 | 1 |

0 | 1 | 0 |

1 | 0 | 0 |

1 | 1 | 1 |

The **XNOR gate** is a digital logic gate that impliments logical equality - it behaves according to the truth table to the right. A HIGH output (1) results if both of the inputs to the gate are the same. If one but not both inputs are HIGH (1), a LOW output (0) results.

## Symbols[]

There are two symbols for XNOR gates: the 'military' symbol and the 'rectangular' symbol. For more information see Logic Gate Symbols

## Hardware description and pinout[]

XNOR Gates are basic logic gates, and as such they are recognised in TTL and CMOS ICs. The standard, 4000 series, CMOS IC is the 4077, which includes four independent, two-input, XNOR gates. The pinout diagram is as follows:

1 Input A1 2 Input B1 3 Output Q1 4 Output Q2 5 Input B2 6 Input A2 7 V |

This device is available from most semiconductor manufacturers such as Philips. It is usually available in both through-hole DIL and SOIC format. Datasheets are readily available in most Datasheet Databases.

## Alternatives[]

If no specific XNOR gates are available, one can be made from five NAND gates in the configuration shown below. In fact, any logic gate can be made from combinations of only NAND gates or only NOR gates.

## More Than Two Inputs[]

Unlike AND/NAND and OR/NOR, the IEC symbol for an XNOR gate cannot be used as a base for producing wider XNOR functions simply by adding inputs, as this does not produce a logic function that matches common electronics industry usage. See XOR Gate for additional details.