XNOR gates are simply the opposite of XOR gates.
Y = A XNOR B
In programming it can be written as Y = A == B
XNOR Gate Truth Table
A | B | Y |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
XNOR Gates are just simplified combination of XOR and NOT gates.
XNOR From XOR and NOT Truth Table
A | B | P0 (A XOR B) | Y (NOT(A XOR B)) |
---|---|---|---|
0 | 0 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 |
Logic Gates: XNOR Gate