XOR
The XOR gate (sometimes EOR gate or EXOR gate) is a digital logic gate that implements an exclusive or; that is, a high output (1), if one and only one, of the inputs to the gate is high. If both inputs are low (0) or both are high, a low (0) output results.
XOR Symbol
Example for XOR
XOR gate truth table
A | B | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |