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

Comments on 3+3 doesn’t show 6

Parent

3+3 doesn’t show 6

+3
−0

I have a problem which I don’t understand how to solve. I have this 2-bit adder, but when I select A1AO to be (11)2 3 and B1BO to be (11)2 3 and run it on Logisim it doesn’t show me 6. Instead it shows me 4.

How can I fix it?

hi

hi

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

A more common full-adder implementation (1 comment)
Free schematics editor (1 comment)
Post
+8
−0

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

2 comment threads

Bottom line: **never use XOR gates with more than 2 inputs if you want to avoid misunderstandings**. ... (1 comment)
Logisim option (1 comment)
Logisim option
a concerned citizen‭ wrote over 3 years ago

Logisim has an option for the XOR gates in their properties, regarding Multiple-Input Behaviour, but it's either the "one true only", or "an even number of true".