XOR Gate
![XOR Gate Symbol](xor-gate/xor-gate-symbol.gif)
![Boolean Expression](xor-gate/xor-gate-boolean-expression.gif)
The XOR (Exclusive OR) gate configuration is extremely simple to spot, however if you are new to it, then you might as well stare at the circuit diagram for a few minutes because in digital electronics you come across this all the time. Almost all textbooks have it, and it even turns up in GCSE exams masquerading as a question. Let us assume that they give you the logic circuit diagram and your task is to build a Boolean expression that describes this circuit. In addition, you should also simplify it to the standard well-known form for XOR gates.
XOR Truth Table
A | B | C | D | Q |
0 | 0 | 1 | 0 | 0 |
0 | 1 | 1 | 1 | 1 |
1 | 0 | 1 | 1 | 1 |
1 | 1 | 0 | 1 | 0 |
Boolean Implementation
![Intermediate Terms](xor-gate-boolean-implementation/xor-gate-intermediate-terms.gif)
This circuit is a straightforward implementation of the XOR function utilising the NAND, AND, and OR gates. We first write down the boolean expressions for the intermediate terms.
![Using De Morgan's Theorem](xor-gate-boolean-implementation/xor-gate-using-de-morgans-theorem.gif)
We start by substituting for the C and D terms in Q, and notice that there is that familiar De Morgan term that we can substitute for as well.
![Implementation](xor-gate-boolean-implementation/xor-gate-boolean-implementation.gif)
We open up the brackets, and end up making a longer expression.
![Rules](xor-gate-boolean-implementation/boolean-rules.gif)
Luckily, we can use these Boolean rules to simplify the expression, and after simplification, we end up with 0's in the formula. However, we can eliminate them as they are part of the OR function.
![Boolean Expression](xor-gate-boolean-implementation/xor-gate-boolean-expression.gif)
Therefore, we end up with the famous XOR identity.
This Article Continues...
Boolean AlgebraDe Morgan's Theorem
XOR Gate
EXOR Gate
XNOR Gate
Example 1 Questions and Answers
Example 2 Questions and Answers