Systems · 2026
Y86 Lab
Write Y86-64 assembly in the browser, run it on pipelined and sequential Verilog CPUs, and step through every cycle with each hazard explained.
- Outcome
- Runs your own assembly on real Verilog hardware and explains every stall, bubble, forward, and misprediction in plain language, cycle by cycle.
- Stack
- Node.js + Express, React + Vite
- Status
- Active
- ISA
- Y86-64 (CS:APP)
- CPUs
- PIPE (5-stage) + SEQ, in Verilog
- Toolchain
- Assembler, disassembler, reference sim
- Simulation
- Icarus Verilog → VCD trace
Overview
A browser lab for the CPUs from the Y86-64 Processor project, rebuilt as two byte-addressed Verilog designs that share stage modules: the five-stage PIPE pipeline and the single-cycle SEQ processor from CS:APP. You write assembly in an editor with autocomplete and hover docs; a yas-compatible assembler builds the program, Icarus Verilog runs it on both CPUs, and the Express backend maps the VCD waveform back into per-cycle state. A Step view shows what each stage holds, which instructions advance, stall, or become bubbles, and which values are forwarded, with an explanation generated from the CPU’s own hazard and forwarding signals. A timeline draws the pipeline staircase across the whole run, and a Performance tab compares PIPE and SEQ on cycles, CPI, and run time and breaks down where the pipelined cycles go. Both CPUs are cross-checked against a reference simulator, with seeded fuzzing of the pipeline.