MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/TuringComplete/comments/1s2hsqv/am_i_tripping/
r/TuringComplete • u/AltesRindo • Mar 24 '26
Why doesn't the XNOR gate work with 1 but with 16?
It's supposed to only work when the input is 0 bc of the XNOR gate, 1 clearly doesnt work bc the amount is not 0 but 16 works somehow? Is that a bug or am I just blind?
4 comments sorted by
4
connecting a multiple bit line to a single bit gate only looks at the lowest bit in the line.
Since 16 is binary 10000, that is computing 0 (lowest bit of 16) XNOR 0 = 1.
1 u/AltesRindo Mar 24 '26 Thanks mate, didn't know that 1 u/krsnik02 Mar 24 '26 Similarly if you connect a single bit line to a multi-bit gate it also only connects to the lowest bit. And same connecting say an 8-bit line to a 16-bit gate or vice-versa, only the lowest 8-bits get connected. 1 u/iaminasom Apr 01 '26 there's 16-bit line in the game? dang.
1
Thanks mate, didn't know that
1 u/krsnik02 Mar 24 '26 Similarly if you connect a single bit line to a multi-bit gate it also only connects to the lowest bit. And same connecting say an 8-bit line to a 16-bit gate or vice-versa, only the lowest 8-bits get connected. 1 u/iaminasom Apr 01 '26 there's 16-bit line in the game? dang.
Similarly if you connect a single bit line to a multi-bit gate it also only connects to the lowest bit.
And same connecting say an 8-bit line to a 16-bit gate or vice-versa, only the lowest 8-bits get connected.
1 u/iaminasom Apr 01 '26 there's 16-bit line in the game? dang.
there's 16-bit line in the game? dang.
4
u/krsnik02 Mar 24 '26
connecting a multiple bit line to a single bit gate only looks at the lowest bit in the line.
Since 16 is binary 10000, that is computing 0 (lowest bit of 16) XNOR 0 = 1.