| INPUT |
OUTPUT
|
| A |
B |
A XOR B
|
| 0 |
0 |
0
|
| 0 |
1 |
1
|
| 1 |
0 |
1
|
| 1 |
1 |
0
|
The XOR gate (Exclusive OR) is a logic gate that outputs 1 (true) when exactly one of its inputs is 1 (true). That means that if both of its inputs are the same, the output will be 0 (false). The XOR gate does what is called an exclusive disjunction in logic.
Symbols
There are three symbols for the XOR gate:
|
|
|
| MIL/ANSI Symbol
|
IEC Symbol
|
DIN Symbol
|
XOR Gate Media
ANSI Symbol for an XOR Gate
Implementation of XOR gate using two pass gates. When B is high the inverted value of A passes through to the output and when B is low then A passes through to the output instead. The circuit uses 12 MOSFETs the 8 in the diagram plus another four to invert A and B
A picture of transmission gate logic implementation of an XOR gate
A three-gate representation of a XOR gate, with the logic (A NAND B) AND (A OR B).
A labelled MIL/ANSI symbol for an XOR gate. A and B are the inputs, Q is the output
A way of building an XOR gate from only NAND gates. This construction has a propagation delay 3 times that of a single gate and uses 4 gates.
A way of building an XOR gate from only NOR gates. This construction has a propagation delay 4 times that of a single gate and uses 5 gates- an alternative design has just 3, and uses the same number of gates.