RV32I with M: an assembler, a C subset, and single-cycle, multicycle and pipelined processors on their datapaths.
Beta 1.7.0-beta.2: Pico Full with loading onto a real Pico 2 (the Hardware tab), to be tested; board loading has not yet been tried on a real board. For teaching, use the stable release. Report problems on GitHub.
Microprocessor Architecture Visualizer for Interactive Learning, Execution, and Runtime Analysis
MAVILERA is an open-source educational platform for exploring microprocessor architecture through interactive simulation, visualization, and instruction execution. It runs entirely in your browser: no account, no installation, and no program or data is uploaded.
Laboratories
Each laboratory is a separate simulator. Open one to write a program and watch it run.
A SIMT core: warps, an active mask and divergent branches, cycle by cycle.
A 4 × 4 systolic array on the RISC-V processor's bus, driven by your program, cycle by cycle.
The simple-as-possible computer: five instructions on one bus, each stepped through six timing states.
Forty-three instructions, input and output ports, CALL and RET, stepped state by state.
The 32-bit ARM instruction set on single-cycle, multicycle and pipelined processors, with an Extended datapath.
The Intel 8086: segmented memory, the prefetch queue and interrupts, instruction by instruction and clock by clock.
A Raspberry Pi Pico 2 in the browser: Hazard3's RISC-V cores, their pipeline and the chip's devices, in real time.
Coming: MIPS · MOS 6502
Start learning
Choose a topic and take its steps in order. Each step opens a laboratory; where a step names a view, choose that view at the top of the laboratory.
How a computer works
A bus, a few registers and a controller, one clock state at a time.
Instruction sets
Write assembly, step it forwards and backwards, and watch the registers and memory change.
Datapaths and pipelining
One program on three processors, animated signal by signal.
- RISC-V · Single-cycle viewEvery instruction in one clock cycle on the datapath drawing.
- RISC-V · Multicycle viewThe controller's state diagram and the cycles each instruction takes.
- RISC-V · Pipelined viewFive stages with forwarding, stalls, flushes and branch prediction.
- RISC-V · Compare viewOne program run on the three processors and compared.
- Armv7 · Pipelined viewThe same ideas on the ARM pipeline: the hazard unit's forwarding, stalls and flushes.
Parallel hardware
Many processing elements, or many lanes, working on one task.