Nios® V Processor Reference Manual

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

4.3.11.2. Abstract Commands

Nios® V processor DM supports Access Register Command only (command.cmdtype = 0). You can determine that only Access Register abstract commands is supported by attempting them and then check the abstractcs.cmderr. Other abstract commands are not supported (abstractcs.cmderr = 2).

Debuggers execute abstract commands by writing them to command and check its completion by reading abstractcs.busy. If the debugger starts a new command while abstractcs.busy is set, abstractcs.cmderr becomes 1 (busy), the currently executing command continues without interruption, but any error generated from its execution is lost. After completion, abstractcs.cmderr indicates whether the command was successful. Commands may fail because the processor is not halted, not running, unavailable, or encounter an error during execution.

If the command takes arguments, the debugger must write them to the data registers before writing to command. If a command returns results, the results are placed in the data registers before abstractcs.busy is cleared.
Note: The Nios® V processor does not support abstract commands when hardware thread is not halted.
Figure 14. Behaviour of Abstract Commands