Digital logic · discrete transistors

2-bit adder

Two full adders built from individual transistors, to learn how computers add

A long breadboard of logic circuitry: four slide switches and LEDs at the top, rows of transistors and resistors, and LEDs at the bottom

Overview

I wanted to know how a computer actually adds, so I built it from the bottom up: logic gates made from individual transistors and resistors, wired into two full adders and chained into a 2-bit adder on breadboards.

What I built

Gates from transistors

No logic chips: every gate is built from individual transistors and resistors.

Two full adders

Each full adder adds two bits plus a carry; the first one's carry-out feeds the second one's carry-in.

Inputs

Four slide switches set two 2-bit numbers, from 0 to 3 each.

Output

LEDs show the sum in binary, with the final carry as the top bit, from 0 to 6.