XOR Gate
 
XOR Gate Truth Table
Input Output
A B
0 0 0
0 1 1
1 0 1
1 1 0
Select An Input Value

 

The X in the XOR gate stands for "exclusive."  This means that the output from this gate will be a 1 ONLY when one or the other of the inputs is a 1.   Notice in the truth table that the output is a 0 if both the inputs are 1 or 0.   In other words, this is an either-or gate.

Select an input combination from the pull-down selector and view the resulting output.

The X in the XOR gate stands for "exclusive."  This means that the output from this gate will be a 1 ONLY when one or the other of the inputs is a 1.   Notice in the truth table that the output is a 0 if both the inputs are 1 or 0.   In other words, this is an either-or gate.

Select an input combination from the pull-down selector and view the resulting output.

(c) Shilpa Sayura Foundation 2006-2017