![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exclusive OR & NOR gates (XOR / XNOR)
We have seen Exclusive OR gates before - XOR and XNOR gates were introduced in Module 3 (gates). As a review:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Input & Output A XOR gate (eXclusive-OR gate) has two (or more) inputs and one output. The XOR gate is sometimes called the difference gate - if the inputs are different, the output is 1; if the inputs are the same, the output is 0. The XNOR (eXclusive-NOR) is sometimes called the equivalence gate - the output is 1 if the inputs are the same, 0 if they are different (the inverse of the XOR). In theory, an XOR or XNOR gate can have any number of inputs (as long as it has at least two). In practice, we usually use 2-input XOR & XNOR gates. Symbols:
Truth Table & Equation:
Examples:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||