XOR Gate

 

Home NOT Gate AND Gate OR Gate XOR Gate Half-Adder Full Adder SR Flip Flop

XOR Gate Truth Table
xxor.gif (2500 bytes) 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.