Digital logic
Full adder and ripple-carry adder
Also called: full adder · ripple carry · carry in · multi-bit addition
Definition
A full adder adds three bits (A, B and a carry in) to give a sum and a carry out. Chaining n of them, each carry out feeding the next carry in, makes an n-bit ripple-carry adder.
Picture it
It is column addition from primary school, done in binary. The catch is speed: the top bit cannot settle until the carry has rippled through every column, so delay grows with width. Faster adders predict carries in advance.
The maths
S = A ⊕ B ⊕ C_in C_out = A·B + C_in·(A ⊕ B)
| Quantity | Unit | Symbol |
|---|---|---|
| ratio | dimensionless | 1 |
Worked example
Add 0110 (6) and 0111 (7) with a 4-bit ripple-carry adder. What is the result and the final carry?
- Bit 0: 0 + 1 = 1, carry 0
- Bit 1: 1 + 1 = 0, carry 1
- Bit 2: 1 + 1 + 1 = 1, carry 1
- Bit 3: 0 + 0 + 1 = 1, carry 0
- Result 1101 = 13, carry out 0
Answer1101 = 13, with no carry out.
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: Carry out of the top bit means unsigned overflow; signed overflow is detected differently.
- Misconception: A ripple-carry adder is correct but slow; its delay is proportional to the number of bits.