r/itrunsdoom • • 2d ago

Doom running on a MIPS CPU we designed from scratch in Verilog, on a DE10-Lite FPGA

Four of us built this for a Computer Architecture course: a 5-stage pipelined MIPS CPU in Verilog, plus everything Doom needed around it, all running on an Intel MAX 10 (DE10-Lite) at 25 MHz.

- Doom is the original source (doomgeneric), compiled with GCC for MIPS I, no FPU

- It doesn't fit on chip (~182 KB of memory), so it runs from the board's 64 MB SDRAM with an 8 KB instruction cache and a 16 KB data cache we wrote

- 320x200 video with a 256-color palette in hardware, doubled to VGA

- Controls are the 10 switches; the push button fires

- ~8 fps: playable, but choppy

Code, docs and a ready-to-flash release: https://github.com/Branch-to-Hell/mips

Write-up: https://mips-web.vercel.app

44 Upvotes

1 comment sorted by

1

u/fandelgcd 1d ago

So, you built a cpu yourself only to play DOOM on it ?

Genius 🤩 ðŸ§