Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

83%
+8 −0
Q&A 3+3 doesn’t show 6

For the benefit of later readers, I thought I would explain why the original circuit "didn't work" and how exactly the "correct" circuit differs from the original circuit. The issue is the 3-input...

posted 3y ago by Elliot Alderson‭

Answer
#1: Initial revision by user avatar Elliot Alderson‭ · 2021-08-10T11:48:46Z (over 3 years ago)
For the benefit of later readers, I thought I would explain why the original circuit "didn't work" and how exactly the "correct" circuit differs from the original circuit.

The issue is the 3-input XOR gate in the original circuit. The behavior of an XOR gate with more than 2 inputs is not precisely defined. Some people assume that a 3-input gate acts as `F = A xor B xor C`, which is the implementation in your "correct" circuit. However, some people define the XOR function as "1 and only 1", regardless of the number of inputs. If you used Logisim to simulate this circuit you discovered that Logisim defaults to the latter definition. As I recall, you can change the behavior of the gate in Logisim, but the default is "1 and only 1".

So, when all three inputs are 1 the Logisim default XOR will provide an output of 0. If you use two 2-input XOR gates the output will be 1, which is what you want in this case.