XOR Gate

Electronics Engineering

How It Works

An Exclusive-OR (XOR) gate is a fundamental digital logic building block that implements parity generation and binary modulo-2 addition. It outputs a logical TRUE (HIGH) state if and only if exactly one of its two input arguments is TRUE. When both inputs possess identical logic values (both 0 or both 1), the output resolves to logical LOW (0), making XOR gates indispensable in binary adders, parity checkers, and digital cryptography.

Governing Equation
$$ Y = A \oplus B = A \bar{B} + \bar{A} B \quad\vert\quad Y = 1 \iff (A \ne B) $$