Nios® V Processor Reference Manual

ID 683632
Date 3/28/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.3.7.3. Debug Implementation

Assertion of haltreq bit send an asynchronous interrupt to the core logic. Core logic completes the instruction in W-stage. By the order of priority, instruction in M-stage, E-stage, D-stage or F-stage, takes the interrupt.
  • When there is a valid instruction in M-stage, the Program Counter writes to the Debug Program Counter.
  • If the instruction in M-stage is not valid, then instruction in E-stage can be interrupted and so on and so forth.
  • When there is no valid instruction in the pipe, the Program Counter for the next instruction to be executed writes to the Debug Program Counter.
For branches, the next Program Counter will depend on whether a branch was taken or not taken, and whether the prediction (if any) was correct or not.
Figure 3. Debug Module Block Diagram