xor means exclusive or, ie a OR b, excluding the case when both are true. but what about xnor, what is the meaning of the word exclusive here? why exclusive nor, instead of not- exclusive or nxor?
Name:
Anonymous2012-05-18 6:34
With 2 input pins and 1 output pin you construct 16 different types of gates. Using just three of these gates, AND, OR and XOR, one can construct the 13 others. Your XNOR is one of these 13, and just a convenience. However may be critical to implement it in hardware or CPU, if your application relies heavily on it.
Protip: In C, using the operator ?: and !, you can easily construct these 16 different operators.
AND x?y:0
OR x?1:y
XOR x?!y:y
XNOR x?y:!y but NXOR would be a better name for this.