- Joined
- Jun 29, 2013
- Messages
- 72
- Reaction score
- 23
We have OR, AND, and NOT gates, but a XOR gate is sadly missing, leading us to have to construct one out of other gates which is somewhat annoying and consumes a lot of space.
For anyone who doesn't know what a XOR gate does, it sends a signal when one and ONLY one signal to it is active. All signals off, all on, or more than one on -> no signal.
My probably unclear to someone not already familiar with logic truth table:
Also, some suggestions on how to implement this:
For anyone who doesn't know what a XOR gate does, it sends a signal when one and ONLY one signal to it is active. All signals off, all on, or more than one on -> no signal.
My probably unclear to someone not already familiar with logic truth table:
Code:
01
001
110
XORs will change state whenever an input changes state. Implementation should be to take the inputs and add them, and if it is odd, output true
The true on one-only is not the important bit. The important bit is that any input may toggle the output. When one input changes in your example, the output would change to false. This extended definition of XOR is more useful than your limited definition.
Last edited: