How a CPU works, built from one transistor up
Start with a single switch. By episode 12 you will understand how a real processor remembers, counts, decides and runs programs. Plain language, no prior knowledge.
Start with episode 1Play it yourselfThe series
EP 01From Sand to Switch: the Transistor and the Logic Gate
A chip holds billions of tiny switches.
EP 02Coming soonBuilding an Adder from Gates
A gate only answers yes or no, so how does a chip add five plus three? We count in binary, add by hand, and then build the half adder, the full adder and a chain of them out of nothing but gates.
EP 03Coming soonMemory: the Latch, the Flip-Flop, the Register
The adder gets the answer right, then instantly forgets it.
EP 04Coming soonThe Clock
Every flip-flop on the chip waits for the same beat.
EP 05Coming soonMemory Addresses and the Program Counter
A phone has billions of memory slots and an app needs just one.
EP 06Coming soonInstructions and Decoding
An instruction is just a number in memory.
EP 07Coming soonJumps and Loops
Straight-line programs run once and stop.
EP 08Coming soonOutput
A CPU that cannot show its answer is not much use.
EP 09Coming soonA Real Program
Time to put it all together.
EP 10Coming soonFunctions and the Stack
Copying the same code everywhere wastes memory.
EP 11Coming soonInterrupts
Constantly polling a button wastes time.
EP 12Coming soonFrom Our CPU to a Real One: pipelines, caches, billions of transistors
The series finale.
Now build it yourself
Every episode has a matching chapter in the free Build a CPU from scratch game. Watch Episode 1, then wire the same gates in Chapter 1, and keep going until you have built and programmed a whole 8-bit computer, breadboard by breadboard. It runs in your browser, on a phone too.
Play Build a CPUPlay it yourself in the free CPU simulator
Build the switch, watch the electrons, see exactly how a CPU works. Free, and it runs in your browser (desktop). Everything you see in these episodes, you can play with.
Open the simulatorSubscribe on YouTube