XOR gate
XOR gate truth table | ||
---|---|---|
Input | Output | |
A | B | A XOR B |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
In digital electronics, an XOR gate is a logic gate which produces an output of true when any of its inputs are true, but not both. A LOW (0) output results when all of the inputs to the gate are LOW or all of the inputs are HIGH (1); if any of the inputs are HIGH but not all, a high output results.
Logic
A two-input OR gate can be expressed in Boolean logic as , or .