Build a Computer from Scratch
summary
A tiny 8‑register, 8‑bit CPU is specified and implemented as a simulator that visualizes fetch‑decode‑execute steps, registers, flags (Z/N) and a stack. The instruction word is 16 bits (4‑bit opcode, 3‑bit register, 1‑bit mode, 8‑bit immediate); the demo implements push/pop stack calling convention, conditional jumps using Z/N flags, and simple macros for push/pop/call, and outlines porting the design to VHDL/FPGA for real hardware.
AI-written summary · about
chapters (20)
- 0:00Project introduction
- 1:27Why this question
- 2:51What is a computer
- 8:13Arithmetic logic unit
- 12:08CPU structure
- 13:53Instruction representation
- 25:51Fetch-decode-execute cycle
- 33:52Demo pause
- 34:14Variable assignment
- 41:51Von Neumann memory model
- 43:56Stack operation
- 50:10Push instruction
- 1:00:52Pop data retrieval
- 1:07:10Conditions and flags
- 1:18:49Loops and repeats
- 1:26:22Functions and calls
- 1:41:56Optimized function return
- 1:51:03Register management
- 1:54:08Stack Overflow and recursion
- 1:57:22Conclusion and resources
related talks
44mBuild Your 8‑Bit Computer from Scratch
33mBuild your 8-bit computer from scratch
47mBuild your 8-bit computer from scratch
43mBuild your 8‑bit computer from scratch
29mLet's Build a Computer!
01h 05mMegahertz, Gigahertz, Registers and Instructions: How does a CPU actually work?
01h 02mMegahertz, Gigahertz, Registers and Instructions: How does a CPU actually work?
16mBuild your own Open Hardware CPU in 25 minutes or less
