The MDM V debug registers are listed and described in the following table. These registers are accessible using the debug register access functionality via the AXI4-Lite interface or by the external debugger via JTAG using the internal or external BSCAN.
All implemented Debug Module, Core, and Trigger registers from the RISC-V External Debug Support, Version 1.0.0-rc3, are listed here.
Attempting to access the unimplemented Core registers dscratch0 and dscratch1
results in an Illegal Instruction exception in debug mode, when complete illegal
instruction exceptions are enabled (MicroBlaze V
parameter C_ILL_INSTR_EXCEPTION
= 2).
Address (hex) | Register Name | Remark |
---|---|---|
Debug Module (DM) Registers | ||
04 | data0 | |
10 | dmcontrol |
The bits ackunavail, setkeepalive, and clrkeepalive have no effect. |
11 | dmstatus | Read-only bits:
The bits anynonexistent and allnonexistent can only be set if the number of cores (harts) is not 1, 2, 4, 8, 16, or 32. |
12 | hartinfo | Read-only value 0 |
14 | hawindowsel | Read-only value 0 |
15 | hawindow | Size: 1 - 32 bits depending on C_MB_DBG_PORTS
|
16 | abstractcs | Read-only fields:
|
17 | command | |
18 | abstractauto | Read-only value 0 |
19 | confstrptr0 | Read-only value 0 |
1d | nextdm | Read-only value 0 |
20 | progbuf0 | |
38 | sbcs | Exists when C_DBG_MEM_ACCESS > 0 |
39 | sbaddress0 | Exists when C_DBG_MEM_ACCESS > 0 |
3c | sbdata0 | Exists when C_DBG_MEM_ACCESS > 0 |
40 | haltsum0 | |
70 | custom0 | Exists
when C_USE_UART >
0 |
71 | custom1 | Exists
when C_USE_UART >
0 |
Core Registers | ||
7b0 | dcsr | Read-only fields:
The field prv and the bit ebreaku are
implemented when the MicroBlaze
V parameter The bit ebreaks is implmented when the
MicroBlaze V parameter
The bits ebreakm, stepie, cause, and step are always implemented. |
7b1 | dpc | |
Trigger Registers | ||
7a0 | tselect | 0 - 15: 8 breakpoints, 4 write triggers, 4 read triggers |
7a1 | tdata1 |
The u bit is implemented when the MicroBlaze V parameter |
7a2 | tdata2 | Instruction or data access address |
7a4 | tinfo | Read only value 0005 (hex) |