Idea · Oct 10, 2026

Build Your Own RISC-V Emulator That Boots

A staged course project where students write an RV32IMA emulator in TypeScript or C, add a UART, timer and traps, and finish by booting a provided mini-kernel and shell in the browser.

What it would do

Inspired by browser projects that embed whole machines (v86, Pyodide) in a page, this assignment walks students up the stack one checkpoint at a time. Week 1: registers, memory and the RV32I decoder, verified against the official riscv-tests suite. Week 2: the M and A extensions plus a disassembler and single-step debugger view. Week 3: memory-mapped UART and CLINT timer, CSRs, and machine-mode traps and interrupts. Week 4: run a provided tiny kernel (a cooperative scheduler with a shell, a few hundred lines of C cross-compiled ahead of time) and get a prompt in an xterm.js terminal. Stretch goals include Sv32 paging, a simple disk device, or a JIT for hot basic blocks. Every checkpoint has an autograder that runs instruction-level conformance tests and compares UART output against golden traces.

Key features

  • Four checkpoints, each autograded by riscv-tests conformance and golden UART traces
  • Built-in step debugger: registers, CSRs, disassembly and memory view
  • Memory-mapped UART and timer devices with interrupt delivery
  • Provided cross-compiled mini-kernel and shell as the final boot target
  • Stretch tracks: Sv32 virtual memory, block device, basic-block JIT

More in Systems & Hardware

In-Band

A browser lab that simulates a 1970s telephone trunk with DTMF, MF and 2600 Hz supervision tones, so students can seize a trunk with a blue box and then see that the same flaw (control mixed with data) is behind SQL injection and prompt injection.

Systems & HardwareTeaching toolMediumOct 13, 2026

Build Your Own Static Recompiler

A staged compilers assignment in which students translate CHIP-8 (then a small 6502 subset) ROMs ahead of time into WebAssembly, using their own interpreter as the oracle that proves every recompiled program behaves identically.

Systems & HardwareClass assignmentLargeOct 12, 2026

Fork Count

Paste a short fork/exec/wait/printf snippet and see every process it creates, every possible output interleaving, and which outputs are impossible, with auto-generated 'how many times is hello printed?' quizzes.

BuiltSystems & HardwareProduct for a businessOct 9, 2026

Program Alarm 1202

A playable simulation of the Apollo Guidance Computer's priority Executive during the lunar landing: you fly the descent while a faulty radar switch steals cycles, and you watch Margaret Hamilton's restart design shed low-priority jobs so landing guidance survives.

BuiltSystems & HardwareProduct for a businessOct 8, 2026

All 39 ideas in Systems & Hardware →