Skip to content

Install SimRV

For normal use, download the latest release archive from GitHub Releases. The release provides RV32 and RV64 simulator binaries for an x86-64 Linux host.

Portable archive

The portable archive contains a fully static musl-linked binary. It does not need the host's glibc or libstdc++ runtime and is intended for Ubuntu 22.04+ and comparable current Linux distributions.

tar -xzf SimRV-rv64-linux-x86_64-vVERSION.tar.gz
./SimRV --version

Use the RV32 archive when the simulator itself must model XLEN=32. The host is still x86-64; RV32 and RV64 describe the guest architecture.

Hello samples

The release also includes SimRV-hello-samples-vVERSION.tar.gz. It contains prebuilt RV32 and RV64 hello images plus the assembly source, linker script, and Makefile used to build them:

tar -xzf SimRV-hello-samples-vVERSION.tar.gz
./SimRV-rv64-linux-x86_64-vVERSION.bin --cli \
  -b -m SimRV-hello-samples-vVERSION/build-rv64/hello.bin

The RV32 image is at SimRV-hello-samples-vVERSION/build-rv32/hello.bin. These paths match the output directories produced by the sample Makefile.

The same archive can be rebuilt from examples/hello/ in the source tree.

Build from source

Source builds require a C++23 compiler, CMake, and Ninja. Configure the target width explicitly:

cmake --preset rv64-release
cmake --build --preset rv64-release

# Or build the strict RV32 target:
cmake --preset rv32-release
cmake --build --preset rv32-release

The executable is build/rv64-release/SimRV or build/rv32-release/SimRV.

Choose the next guide