XOR Gate
The XOR gate, also known as an exclusive or gate, is used to indicate that the output occurs if and only if one of the two input events occurs and the other input event does not occur. An XOR gate can have only two inputs.
XOR Gate
Summary of Logic:
If one and only one input event is TRUE, the output is TRUE. If both input events are TRUE, the output is FALSE.
A truth table for an XOR gate follows. The Boolean equation for an XOR gate is T = (A *[~B]) + ([~A] * B).
A
B
Output
T
T
F
T
F
T
F
T
T
F
F
F
Example
A partial loss of power results if either Power Supply A or Power Supply B fails.
Fault Tree with an XOR Gate