# XOR Gate Truth Table

By Priyanshu Vaish|Updated : May 5th, 2022

In this article, we learn about the Exclusive-OR Gate (EX-OR). The XOR gate or Exclusive-OR gate is achieved by combining standard logic gates. Exclusive-OR gate is used extensively in error detection circuits, arithmetic logic circuits, and computational logic comparators.

The Exclusive OR gate gives the output only if its two inputs are not similar, namely if one of them is one (high) and the other is zero (low). Let us discuss the XOR gate in detail.

## What is the XOR Gate?

An XOR gate is a two-input single-output logic gate whose output is assumed to be HIGH(one) only when one of its inputs is HIGH(one). The logic symbol for a two-input XOR gate is shown below:

If input variables are represented by A and B, then the logical expression for output is

## What is the Truth Table of XOR Gate?

Practically three or more input XOR gate does not exist. But when more than two variables are XOR, a number of two input XOR gates are cascaded where the output is assumed to be '1' when the odd number of input variables is '1'.
That is why the XOR gate is known as the odd number of 1's detector in the input.

## Application of XOR gate

The most important application of the XOR gate is in "parity generation and detection". Hence, it is also known as the "staircase switch". The switching circuit of the XOR gate is shown

The EX-OR gate follows both commutative and associative law.

## Enable and disable inputs

For an XOR Gate
For control = 0;

 A Control Y 0 0 0 1 0 1

Thus, the EX-OR gate acts as a buffer for controlled input of logic '0'.
For control = 1;

 A Control Y 0 1 1 1 1 0

Thus, the XOR gate acts as an inverter for logic '1' control input.

## Properties of XOR Gate

The internal diagram of the EXOR or XOR gate is as follows:

Accelerate your GATE preparations with BYJU'S Exam Prep and get unlimited access to all structured live courses and mock tests:

### Online Test Series for ESE and GATE

All the Best

#DreamStriveSucceed

write a comment

## FAQs

• The XOR gate is used extensively in digital data processing circuits and is known as the Exclusive-OR gate. The XOR gate has a high output only when an odd number of inputs are high. For example, for the two input XOR gates, the output will be high when the set of input is either 01 or 10.

• The ability of the XOR gate to compare two logic levels and give an output dependent upon the input condition is advantageous in many computational circuits. Though it is not a basic logic gate, its versatility and usefulness have made it into a standard logic gate.

• XOR gate (sometimes called as EOR, EXOR, and pronounced as the Exclusive OR) is the digital logic gate that results in true (either 1 or HIGH) output when the number of true inputs is the odd count. An XOR gate implements the exclusive OR that is a true output result if one of the inputs of the gate inputs is true.

• The 2-input XOR gate is also recognized as the Inclusive-OR gate because when both inputs, say A and B, are set to logic one(high), the output appears as "0" or low that is, in the XOR function, the logic output "1" is achieved only when either A = " 1″ or B = " 1″ but not both together at the same point.

• An exclusive OR gate (XOR gate) is the digital logic gate implemented using the transistors to act as an electronic switch used in implementing Boolean functions. It is built by combining standard logic gates such as the common NAND and NOR gates in order to produce the more complex function of this gate.

### Related Posts

GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com