So I have had a request earlier about making a 3-input XOR and XNOR gate. And I have come up with two ways to get the results I wanted. What I wanted from the XOR gate was that the output was on as long as atleast one of the inputs were on. And for the XNOR it was only suposed to be on when all inputs where the same. This isn't exactly how a 3-input XOR and XNOR gate works. But it's what I was looking for, a 3-input gate that works as the 2-input, ie for XOR, when not all levers are the same, and for XNOR when all the levers are the same.
XOR
A B O A B C O
0 0 0 0 0 0 0
1 0 1 1 0 0 1
0 1 1 0 1 0 1
1 1 0 0 0 1 1
1 1 0 1
1 0 1 1
0 1 1 1
1 1 1 0
XNOR
A B O A B C O
0 0 1 0 0 0 1
1 0 0 1 0 0 0
0 1 0 0 1 0 0
1 1 1 0 0 1 0
1 1 0 0
1 0 1 0
0 1 1 0
1 1 1 1
Inga kommentarer:
Skicka en kommentar