Nios® V Processor Reference Manual

ID 683632
Date 1/27/2025
Public
Document Table of Contents

3.3.8. RISC-V based Debug Module

The Nios® V/m processor architecture supports a RISC-V based debug module that provides on-chip emulation features to control the processor remotely from a host PC. PC-based software debugging tools communicate with the debug module and provide facilities, such as the following features:

  • Reset Nios® V processor core and timer module
  • Download programs to memory
  • Start and stop execution
  • Set software breakpoints and watchpoints
  • Analyze registers and memory

You can interact with the Debug Host (e.g., laptop), which is running a debugger (e.g., gdb). The debugger communicates with a Debug Translator (e.g., OpenOCD) to communicate with Debug Transport Hardware (e.g., Intel FPGA Download Cable). The Debug Transport Hardware connects the Debug Host to the Nios V processor’s Debug Transport Module (DTM). The DTM provides access to the Debug Module (DM) using the Debug Module Interface (DMI).

Every Nios® V processor has a single hart, which is controlled by a single DM. DMs provide reset/halt control of the Nios® V processor. Abstract commands provide access to GPRs. Additional registers are accessible through abstract commands or the Program Buffer. In addition to register access, the Program Buffer also allows the debugger to execute arbitrary instructions and access memory.

The Nios® V processor implements a Trigger Module. When trigger conditions are met, the processor halts and informs the debug module that it has halted.
Figure 6. Nios V Processor Debug System Overview