All labs

Build a CPU

Start with switches and lamps. Build the parts that add, choose and remember, wire them into a processor, then write a program and watch it move through the machine you built.

Briefing

You start with nothing but switches and lamps. Each board you finish becomes a part you build the next one from: a gate, then an adder, then memory, until you have a processor — and the last board runs a program through the machine you built.

You'll learn to

  • Build XOR, an adder and a multiplexer from AND, OR and NOT
  • Explain how a circuit can add, choose and remember
  • Wire those parts into a working ALU and a tiny CPU
  • Trace a program as it moves through the datapath
0 of 9 steps done0%
Start: Logic gates
Before you build a CPUOptional warm-upTruth tables, binary, and why adding two bits needs two digits. About ten minutes.
  1. Exclusive OR

    Making a gate that does not exist

  2. Half adder

    Where arithmetic starts

  3. Full adder

    Adding a carry back in

  4. Multiplexer

    How a machine chooses

  5. The ALU

    Operations, plus a way to pick one

  6. Registers and memory

    Somewhere to put things

  7. Run a program

    Instruction, decode, control signals, result

  8. Real architectures

    What a genuine processor adds