iolinked
iolinked · from the transistor up

Build a computer
from the transistor up

There's a computer under every piece of software you've ever run, and almost nobody sees how it actually works. This tutorial builds one from nothing. You start at a single switch — open or closed, nothing else. Then you wire switches into logic gates, and gates into an adder. You give the adder a memory, give the memory an address, and give the address a bus. Last, you give the whole thing a loop that fetches an instruction and obeys it. By the final chapter a real program is running on a machine you understand completely — because you built it, one decision at a time. Every idea here has a widget you can flip, wire and watch run — nothing is claimed without being shown working first.

01

Browse the course

three parts · 19 chapters · every diagram playable
Part I · 6 chapters

From switch to adder

One switch, then gates, then binary — up to an adder that genuinely counts.

Start here
Part II · 6 chapters

Memory & instructions

Bits that stay: registers, RAM, the bus, ROM — and instructions the machine can hold.

Open
Part III · 7 chapters

A living CPU

The fetch–execute loop, decisions, control, real CPUs — and talking to the outside world.

Open
02

Part I · From switch to adder

6 chapters · switches, gates, and numbers that count
computers — part I · from switch to adder
03

Part II · Memory & instructions

6 chapters · bits that stay, buses, ROM, instructions
computers — part II · memory & instructions
04

Part III · A living CPU

7 chapters · fetch–execute to the outside world
computers — part III · a living CPU