4-bit adder
A 4-bit adder adds two numbers from 0 to 15. It's one adder per bit, in a row, each passing its carry to the next: a ripple-carry adder. The switches are the two numbers in binary, worth 1, 2, 4 and 8, and the answer can reach 30 with the last carry.
How it works
- 01
Each number is four switches, worth 1, 2, 4 and 8. It starts at 5 + 6.
- 02
The lowest bits go into a half adder: nothing carries into the first column.
- 03
Every column after it is a full adder, taking the carry from the column before.
- 04
The carry ripples up the chain one adder at a time. Switch to slow motion and flip A1 to watch it move.
- 05
The digits are in hexadecimal, so 5 + 6 = 11 shows as b.