An X-OR gate has the following truth table:
A | B | Y |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
It is represented by following logical relation
Build this gate using AND, OR, and NOT gates.
Explanation:-
XOR can be obtained by combining two NOT gates, two AND gates, and one OR gate. The logic relation for the given table is as follows:
Y1 can be obtained as output of AND gate I for which one input is of A through NOT gate and another input is of B. Y2 can be obtained as output of AND gate II for which one input is of A and other input id of B through NOT gate.
Now Y can be obtained as output from OR where Y1 and Y2 are inputs of OR gate
Thus the logic circuit of this relation is given below