![]() |
VOOZH | about |
Implementation of the XOR gate from the NOR gate is possible because the NOR gate is a Universal gate i.e., it can implement all other gates. The NOR gate gives the output 1 if all the inputs are 0. XOR gate is a logic gate that gives output 1 when several 1s are odd. In this article, we will explore the XOR gate, and NOR gate and implement the XOR gate from the NOR gate.
Table of Content
XOR gate is a logic gate that results in an output high with an odd number of high inputs. In other words, if the number of 1's is odd in the input then, the output of XOR is 1. XOR gate gives output 1 when all the inputs are different. The XOR is represented as ⊕.
In the above table if the inputs are different then the output is 1 otherwise 0.
We get the expression of XOR gate as sum of products of complement of first input with second input and first input with complement of second input. From the above truth table, the expression of XOR gate is:
A ⊕ B = A'B + AB'
NOR gate is logic gate which results output high when all the inputs are low. In other words, the output is 1 when all the inputs are 0. NOR is a universal gate. It is similar to the complement of OR gate.
The NOR gate with 2 input is called 2-input NOR gate. If both the input is low then, NOR gate gives high output. Alternatively, when both input is 0 then output is 1 for NOR gate.
From the above table the expression for 2-input NOR gate is:
A NOR B = A'B' = (A + B)'
We can get NOR gate in two ways. First, by putting a bubble in the output of OR gate. Second, by putting two bubbles in the input of AND gate.
The NOR gate with n-input is called n-input NOR gate. When all the inputs are low then output is high. In other words, all inputs are 0 then, output is 1.
If the inputs are A1, A2, ..., An then,
A1 NOR A2 NOR ...NOR An = (A1+ A2+ ... + An)'
Below is the logic diagram for n-input NOR gate.
Below is the logic diagram for implementation of XOR gate from NOR gate
To implement XOR gate from NOR gate we follow below steps
From the above discussion we can conclude that to implement XOR gate from NOR gate we require 5 NOR gates. In first NOR gate we connect both the inputs A and B. The expression for the XOR gate is given by A'B + AB' whereas the expression for the NOR gate is (A + B)'.