Visible to Intel only — GUID: omp1629599824221
Ixiasoft
Visible to Intel only — GUID: omp1629599824221
Ixiasoft
2.3.8.4. Abstract Commands in Debug Mode
Nios® V/m processor implements Access Register abstract command. The Access Register command allows read-write access to the processor registers including GPRs, CSRs, FP registers and Program Counter. The Access Register also allows program execution from program buffer. The debugger executes Access Register commands by writing into Abstract Command (command) register using the Access Register command encoding.
Bit Field | |||||||||||||||
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
cmdtype | 0 | aarsize | aarpostincrement | postexec | transfer | write | |||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
regno |
Field | Role |
---|---|
cmdtype | Determine command type 0 : Indicates Access Register command. |
aarsize | Specifies size of register access 2: Access the lowest 32 bit of register 3: Access the lowest 64 bit of register 4: Access the lowest 128 bit of register |
aarpostincrement | 0: No effect 1: regno is incremented after successful register access |
postexec | 0: No effect 1: Execute program in program buffer |
transfer | Acts in conjunction with write field. 0: Ignore value in write field 1: Execute operation specified by write field. |
write | 0: Copy data from register 1: Copy data to register |
regno | Register address to be accessed. |
Field | State | |
---|---|---|
cmderr[10:8] | 0 | No error |
1 | Busy | |
2 | Command not supported | |
3 | Exception - from program buffer instruction | |
4 | Command not executed because hart unavailable, or not in correct state to execute command. | |
5 | Abstract command failed due to bus error | |
6 | RSVD | |
7 | Command failed for other reasons. |
Avalon® memory-mapped interface implement the Register Access using request/response bus with Debug Module being the initiator and core being the responder. Address bus carries the register ID.