The XOR gate (Exclusive OR) is a logic gate that outputs 1 (true) when exactly one of its inputs is 1 (true).
INPUT | OUTPUT | |
A | B | A XOR B |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
That means that if both of its inputs are the same, the output will be 0 (false). The XOR gate does what is called an exclusive disjunction in logic.
There are three symbols for the XOR gate:
MIL/ANSI Symbol | IEC Symbol | DIN Symbol |
This article uses material from the Wikipedia Simple English article XOR gate, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki Simple English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.