Arithmetic Circuits · 6 min read
4-Bit Ripple-Carry Adder Logic
Full-adder equations, carry propagation, 4-bit ripple-carry adder output, and carry-lookahead comparison.
Full-adder equations
A full adder adds A, B, and carry-in Cin.
Sum = A ⊕ B ⊕ Cin
Cout = AB + ACin + BCin
The carry equation can also be written as Cout = (A ⊕ B)Cin + AB, which separates carry propagation from carry generation.
4-bit ripple carry
For A3A2A1A0 + B3B2B1B0 + Cin, connect four full adders in series:
- The carry out of bit 0 becomes the carry in to bit 1.
- The carry out of bit 1 becomes the carry in to bit 2.
- The carry out of bit 2 becomes the carry in to bit 3.
C4is the final carry or overflow indicator for unsigned addition.
| Stage | Carry in | Sum | Carry out |
|---|---|---|---|
| Bit 0 | C0 | S0 | C1 |
| Bit 1 | C1 | S1 | C2 |
| Bit 2 | C2 | S2 | C3 |
| Bit 3 | C3 | S3 | C4 |
Exam caveat
A ripple-carry adder is simple but slow for many bits because C4 cannot finish before intermediate carries propagate. Carry-lookahead logic reduces this delay using generate Gi = AiBi and propagate Pi = Ai ⊕ Bi. The sum is still Si = Pi ⊕ Ci.
Practice XOR, AND, and OR combinations in the Expression Lab.