The XOR gate.
The exclusive OR or XOR gate is similar to a two input OR gate. The output of an XOR gate is logic 1 only when one input or the other input is high and is 0 when neither input is high and when both inputs are high. There may be only two inputs. The circuit symbol for a XOR gate is
The Boolean algebra equivalent is
X = A B
The truth table of a XOR gate is
A
B
X
0
1