The Exclusive-OR Gate

The XOR gate produces a HIGH output only when both inputs are at opposite logic levels.