Skip to content

RISC-V Debug Support for our PULP RISC-V Cores

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.SiFive
Notifications You must be signed in to change notification settings

weicaiyang/riscv-dbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

RISC-V Debug Support for PULP Cores

This module is an implementation of a debug unit compliant with the RISC-V debug specification v0.13.1. It is used in the Ariane and RI5CY cores.

Implementation

We use an execution-based technique, also described in the specification, where the core is running in a "park loop". Depending on the request made to the debug unit via JTAG over the Debug Transport Module (DTM), the code that is being executed is changed dynamically. This approach simplifies the implementation side of the core, but means that the core is in fact always busy looping while debugging.

Features

The following features are currently supported

  • Parametrizable buswidth for XLEN=32 XLEN=64 cores
  • Accessing registers over abstract command
  • Program buffer
  • System bus access (only XLEN)
  • DTM with JTAG interface

These are not implemented (yet)

  • Trigger module
  • Quick access using abstract commands
  • Accessing memory using abstract commands
  • Authentication

Tests

We use OpenOCD's RISC-V compliance tests, our custom testbench in tb/ and riscv-tests/debug.

About

RISC-V Debug Support for our PULP RISC-V Cores

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.SiFive

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SystemVerilog 65.3%
  • C 21.1%
  • Makefile 4.6%
  • Assembly 2.9%
  • Tcl 1.9%
  • Shell 1.8%
  • Other 2.4%