Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PRISM — Pico 2 RISC-V SimulatorNew to Visual Studio Code? Get it now.
PRISM — Pico 2 RISC-V Simulator

PRISM — Pico 2 RISC-V Simulator

Miguel Angel de Miguel

|
2 installs
| (0) | Free
RARS-style RISC-V step-by-step simulator and debugger for Raspberry Pi Pico 2 (RP2350), featuring an integrated ecall Mini-OS, bare-metal/SDK modes, interactive MMIO schematic board, and direct .UF2 firmware compilation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PRISM — Pico 2 RISC-V Simulator

PRISM — Pico 2 RISC-V Simulator

RARS-style interactive RISC-V (RV32IMAC + Zicsr) assembler, simulator, step-by-step debugger, MMIO board, and .UF2 firmware builder designed for the Raspberry Pi Pico 2 (RP2350 · Hazard3).


Key Features

  • Hybrid RARS + GNU gas Assembler (RV32IMAC + Zicsr + Zifencei): Supports .include, .globl / .global, .equ / .eqv (with or without comma), .rept / .endr, .macro / .end_macro / .endm, numeric local labels (1:, 1b, 1f), and full RISC-V pseudo-instructions.
  • Integrated RARS Mini-OS (in Simulation & Physical .UF2 Firmware):
    • With OS (pico2-os, default): Pre-initializes GP0..GP7 as outputs (0xD0000010) and GP8..GP15 as inputs (0xD0000005), enabling all RARS ecall system calls (PrintInt, PrintString, ReadInt, ReadString, Sleep, MidiOut, RandIntRange...) both in the simulator and on physical Pico 2 hardware via Build .UF2.
    • No OS (pico2-sdk / pico2-baremetal): Hardware-faithful register emulation of IO_BANK0, PADS_BANK0, and SIO, with educational runtime warnings if jal init is omitted.
  • Interactive Raspberry Pi Pico 2 MMIO Schematic Board:
    • Output Byte 0xD0000010 (GP7..GP0): 8 LEDs, symmetric 7-Segment Display, and WebAudio Piezo Buzzer (passive and muted by default).
    • Input Byte 0xD0000005 (GP15..GP8): 8 wired Pushbuttons / Switches with selectable Pull-Down (Active '1') / Pull-Up (Active '0') polarity and optional 4x4 Matrix Keypad.
  • Step-by-Step Debugging & Built-in Help (F1): Adjustable execution speed, Step (F7), Step Over (F10), Backstep / Undo (F8), editor-synced Breakpoints, inline double-click editing of registers and memory, and a searchable 6-tab reference manual via the Help button.

Quick Start

  1. Open any .s or .asm file and click the circuit-board icon in the top-right editor toolbar (or run PRISM: Open RISC-V / Pico 2 Simulator from the Command Palette).
  2. Click Assemble (F3) to assemble and load the active file. Check Folder (.globl) if your program links .globl subroutines across multiple .s files in the same folder.
  3. Step through instructions with Step (F7), undo with Back (F8), or run continuously with Run (F5).
  4. Click Build .UF2 to compile <filename>.uf2 ready to drag-and-drop onto a physical Raspberry Pi Pico 2.
  5. Press Help (F1) inside the simulator for the full searchable instruction, directive, ecall, and MMIO reference.

Pico 2 MMIO Summary

Address Register / Block Description
0xD0000000 SIO_BASE RP2350 Single-Cycle IO base address
0xD0000005 (offset 0x05) Input Byte (GP15..GP8) Read via lbu a0, 0x05(s0): bit 0 = GP8 … bit 7 = GP15
0xD0000010 (offset 0x10) Output Byte (GP7..GP0) Write via sb t0, 0x10(s0): drives GP0..GP7 (LEDs, 7-Seg, Buzzer)
0xD0000018 / 0x20 / 0x28 GPIO_OUT_SET / CLR / XOR Atomic bit set, clear, and toggle registers
0xD0000030 GPIO_OE Output enable mask (0x000000FF pre-configured in With OS mode)

Repository & License

  • Author: midemig
  • Source Code & Issues: github.com/midemig/PRISM
  • License: Apache License 2.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft