Hardware
Computer Logic - Exclusive OR (XOR) gate


The output of the XOR gate is a 1 if either but not both inputs are 1 and a 0 if the inputs are both 0 or both 1.
A B C
0
0
1
1
0
1
0
1
0
1
1
0
Truth Table
Click on the inputs to see how changing their logic state affects the output. All the possibilities are shown in the table called a 'Truth Table'.

In an ordinary OR gate the output can be 1 if both A and B are 1. The XOR does not do this.