SystemVerilogΒΆ

Building a custom SoC to run DOOM

This page describes the design of a custom SoC built for the sole purpose of running DOOM on a small FPGA: the Gowin Tang Nano 20K.
It includes a custom RISC-V CPU running a subset of the RV32 instruction set, with potential additional custom instructions that aid in the execution of of DOOM at full resolution and framerate of this FPGA. I refer to this custom instruction set as RV32doom.

When available, full details on the design of the CPU and the additional uncore components can be found in their respective pages linked below.

tiny-riscv: A small RV32E CPU

tiny-riscv is (true to its uninspired name) an attempt to build the smallest RISC-V core possible while maintaing roughly one Instruction per Cycle. It achieves this by supporting the base RV32E instruction set with a simple two stage pipeline. The implementation targets the FreePDK45nm standard cell library.

core_diagram A very simplified diagram of the core pipeline