Skip to content

Build a CPU (RISC-V)

Build a RISC-V RV32I simulator: register file, instruction decoding (R/I/S/B/U/J formats), ALU + load/store + branch + jump execution, calling convention, syscalls, and the fetch-decode-execute loop. Same architecture as Spike, QEMU's RISC-V mode.

advancedFree3 hours10 lessons
Start learningor sign up to track progress

Curriculum

Loading reference solution…
Build a CPU (RISC-V)