Exclusive-OR or XOR Gate
The Exclusive-OR or XOR gate is a two-input circuit that will give a HIGH output if either, but not both, of the inputs are HIGH.The XOR function is an interesting and useful variation of the basic OR function. Its function can be stated as ‘Either A or B, but not both’. The XOR gate produces a logic 1 output only if the two inputs are different. If the inputs are the same, the output is a logic 0. XOR is also called an anti-coincidence gate or inequality detector.