Nios® V Processor Reference Manual

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

3.3.8.1.1. Reset/Halt/Run Control

In the Nios® V processor, the Debug Module tracks 3 conceptual bits of state:
  • halt request
  • resume ack
  • hart reset
In the dmstatus register, the debugger can observe the state of resume ack in dmstatus.*resumeack, and the state of halted, running, and havereset signals in dmstatus.*halted, dmstatus.*running, and dmstatus.*havereset.

Reset processor

Debug Module controls a global reset signal, dmcontrol.ndmreset (non-debug module reset), which can reset, or hold in reset, every component in the platform, except for the Debug Module and Debug Transport Modules. The debugger can reset the processor by asserting dmcontrol.ndmreset, through the ndm_reset_in and dbg_reset_out signals. Refer to Reset and Debug Signals about how to connect the reset signals. Next, check the reset status using dmstatus.*havereset bit field.

Halt processor

When the processor comes out of reset and dmcontrol.haltreq are set, the hart immediately halt and enter Debug Mode (halted state). Next, check the halted status using dmstatus.*halted bit field.

Resume processor

To resume the processor’s execution, debugger writes 1 to dmcontrol.resumereq. Next, check the resume status using dmstatus.*resumeack bit field. After that, dmstatus.*running is set to 1 indicating the processor is running in normal execution.