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.

Flip any switch: the digits on the right add up as you go.

How it works

  1. 01

    Each number is four switches, worth 1, 2, 4 and 8. It starts at 5 + 6.

  2. 02

    The lowest bits go into a half adder: nothing carries into the first column.

  3. 03

    Every column after it is a full adder, taking the carry from the column before.

  4. 04

    The carry ripples up the chain one adder at a time. Switch to slow motion and flip A1 to watch it move.

  5. 05

    The digits are in hexadecimal, so 5 + 6 = 11 shows as b.

Every circuit in the library