RISC-V Debug Specification Standard
528
stars
1,574
commits
Python
primary language
Aug 26, 2026
updated
You may be looking for one of the following pre-built PDFs:
# Install docker and python3-sympy, if not installed already.
# Pull the latest RISC-V Docs container image:
docker pull riscvintl/riscv-docs-base-container-image:latest
git clone https://github.com/riscv/riscv-debug-spec.git
cd riscv-debug-spec
# Optionally, check out a specific revision:
# git checkout <rev>
git submodule update --init --recursive
cd build
make
There are two other interesting make targets:
make debug_defines creates a C header and implementation files containing
constants for addresses and fields of all the registers and abstract
commands, as well as function and structures used to decode register values.
An implementation of such decoder can be seen in debug_reg_printer.c/h.make chisel creates scala files for DM registers and abstract commands
with the same information.There are various ways to contribute to this spec. You can use a combination of them to get your idea across. Please note that pull requests will only be reviewed/accepted from RISC-V Foundation members.
Additional information can be found at https://github.com/riscv/debug-taskgroup
Python
85.2%
C
8.9%
Makefile
5.9%
RISC-V Debug Specification Standard
528
stars
1,574
commits
Python
primary language
Aug 26, 2026
updated
You may be looking for one of the following pre-built PDFs:
# Install docker and python3-sympy, if not installed already.
# Pull the latest RISC-V Docs container image:
docker pull riscvintl/riscv-docs-base-container-image:latest
git clone https://github.com/riscv/riscv-debug-spec.git
cd riscv-debug-spec
# Optionally, check out a specific revision:
# git checkout <rev>
git submodule update --init --recursive
cd build
make
There are two other interesting make targets:
make debug_defines creates a C header and implementation files containing
constants for addresses and fields of all the registers and abstract
commands, as well as function and structures used to decode register values.
An implementation of such decoder can be seen in debug_reg_printer.c/h.make chisel creates scala files for DM registers and abstract commands
with the same information.There are various ways to contribute to this spec. You can use a combination of them to get your idea across. Please note that pull requests will only be reviewed/accepted from RISC-V Foundation members.
Additional information can be found at https://github.com/riscv/debug-taskgroup
Python
85.2%
C
8.9%
Makefile
5.9%