ChipKraftChipKraft
Start Learning
ChipKraft/Exam Sheets/Ripple-Carry Adder

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.
  • C4 is the final carry or overflow indicator for unsigned addition.
StageCarry inSumCarry out
Bit 0C0S0C1
Bit 1C1S1C2
Bit 2C2S2C3
Bit 3C3S3C4

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.