XOR Gate

XOR Gate Symbol Boolean Expression

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

ABCDQ
00100
01111
10111
11010

Boolean Implementation

Intermediate Terms

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

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

We open up the brackets, and end up making a longer expression.

Rules

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

Therefore, we end up with the famous XOR identity.

This Article Continues...

Boolean Algebra
De Morgan's Theorem
XOR Gate
EXOR Gate
XNOR Gate
Example 1 Questions and Answers
Example 2 Questions and Answers