Home › Lessons › Digital logic › Full adder

Full adder

Digital logic · Beginner · about 10 minutes · part of Zen’s Electronics Design Mastery

A full adder adds three bits: A, B and the carry from the column to the right. Two half adders and an OR gate do it. Chain four of them and you can add 4-bit numbers.

Full adder: the circuit on the simulator's bench

Open this lesson in the labFree, in your browser, no account needed.

How it works

S = A ⊕ B ⊕ Cin  ·  Cout = A·B + Cin·(A ⊕ B)

ABCinCoutSbench
00000—
00101—
01001—
01110—
10001—
10110—
11010—
11111—

Flip the switches to try every row. “bench” fills in with what the chip actually did.

Switch 3 is Cin. Cout S is the 2-bit count of how many inputs are 1.

Try it on the bench

  1. Turn on all three switches: 1 + 1 + 1 = 11 in binary, so both lights come on.
  2. Count the ON switches in each row and compare with Cout S read as a binary number.

Parts on the bench

In the course

Zen’s Electronics Design Mastery, module “Digital Electronics”.

More on digital logic