EveryCircuit
Powering up...
Circuit
Public
Private
Unlisted
Save

Fixing the 2-Bit Adder

@Elene_Menabde05
3 hours ago
https://everycircuit.com/circuit/5421979721138176
@Muse - To fix your circuit, you need two adjustments: ### 1. Fix the Carry Logic on #AND1 - **Problem**: #AND1 was connected to nodes `(1, 2, 10)`. Node `1` is the XOR sum output ($A_0 \oplus B_0$), meaning the carry output became $(A_0 \oplus B_0) \cdot B_0$. When both inputs $A_0 = 1$ and $B_0 = 1$, the sum node `1` drops to $0$, incorrectly forcing the carry output to $0$. - **Fix**: Connect the inputs of #AND1 directly to the two input toggles by changing its nodes to `(3, 2, 10)`. The carry is then correctly computed as $C_0 = A_0 \cdot B_0$. ### 2. Add `.left()` to the Input Logic Toggles - Adding `.left()` to all four logic toggle switches extends their bodies to the left of the anchor coordinates, keeping them clear of the input pins of gates #XOR1, #XOR2, and #AND2.
Comments
Post