Projects / Personal build during college

8-bit breadboard computer

A working 8-bit computer on breadboards, built from 74-series logic chips: clock, registers, ALU, RAM, program counter and an EEPROM-based control unit.

CompletedJul 2023 – Mar 2024

My part. Built and wired every module, debugged them one by one, programmed the EEPROMs from an Arduino, and ran test programs. The design follows Ben Eater's series.

Why I built it

I wanted to see what a CPU actually does on each clock edge, at the level of individual wires.

What's in it

Clock
555-timer clock with a step mode and a run mode
Bus
Shared 8-bit bus with tri-state buffers (74LS245)
Registers
A and B registers and an instruction register (74LS173)
ALU
Adds and subtracts
Memory
16 bytes of RAM, programmed with switches
Program counter
4-bit counter (74LS161)
Control
Microcode in EEPROMs turns each instruction into control signals
Output
Output register driving a 7-segment display

How it works

  • Built and tested each module on its own before connecting it to the bus.
  • Wrote Arduino sketches to program the EEPROMs: the microcode (including a version with flags) and the display decoder.
  • Stepped the clock by hand to watch values move between registers on the LEDs, then ran programs at speed.

Challenges

The program counter and ALU both needed rebuilding before they behaved. The photos below include the troubleshooting.

Result

It runs small programs: load, add, subtract and show the result on the display.