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.

RV32I with M: an assembler, a C subset, and single-cycle, multicycle and pipelined processors on their datapaths.

Documentation

A SIMT core: warps, an active mask and divergent branches, cycle by cycle.

Documentation

A 4 × 4 systolic array on the RISC-V processor's bus, driven by your program, cycle by cycle.

In RISC-V

The simple-as-possible computer: five instructions on one bus, each stepped through six timing states.

Documentation

Forty-three instructions, input and output ports, CALL and RET, stepped state by state.

Documentation

The 32-bit ARM instruction set on single-cycle, multicycle and pipelined processors, with an Extended datapath.

Documentation

The Intel 8086: segmented memory, the prefetch queue and interrupts, instruction by instruction and clock by clock.

Documentation

A Raspberry Pi Pico 2 in the browser: Hazard3's RISC-V cores, their pipeline and the chip's devices, in real time.

Documentation

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.

  1. SAP-1Five instructions stepped through their fetch and execute states, with the control word of every state.
  2. SAP-2More instructions, input and output ports, and subroutines with CALL and RET.

Instruction sets

Write assembly, step it forwards and backwards, and watch the registers and memory change.

  1. RISC-V · ISA viewRV32I with the M extension: the encoding of every instruction, and a C subset compiled to assembly.
  2. Armv7 · Instructions viewConditional execution, the flags N, Z, C and V, and R15 as the program counter.

Datapaths and pipelining

One program on three processors, animated signal by signal.

  1. RISC-V · Single-cycle viewEvery instruction in one clock cycle on the datapath drawing.
  2. RISC-V · Multicycle viewThe controller's state diagram and the cycles each instruction takes.
  3. RISC-V · Pipelined viewFive stages with forwarding, stalls, flushes and branch prediction.
  4. RISC-V · Compare viewOne program run on the three processors and compared.
  5. 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.

  1. NPUA systolic array driven by a RISC-V program: where the cycles go when the work is offloaded.
  2. GPULanes running one instruction stream: the active mask and divergent branches.