Chapter 20
Debug
This chapter describes the operation of SiFive debug hardware, which follows
The RISC‑V
Debug Specification 0.11
. Currently only interactive debug and hardware breakpoints are sup-
ported.
20.1
Debug CSRs
This section describes the per-hart trace and debug registers (TDRs), which are mapped into
the CSR space as follows:
Table 92:
Debug Control and Status Registers
CSR Name
Description
Allowed Access Modes
tselect
Trace and debug register select
D, M
tdata1
First field of selected TDR
D, M
tdata2
Second field of selected TDR
D, M
tdata3
Third field of selected TDR
D, M
dcsr
Debug control and status register
D
dpc
Debug PC
D
dscratch
Debug scratch register
D
The
dcsr
,
dpc
, and
dscratch
registers are only accessible in debug mode, while the
tselect
and
tdata1-3
registers are accessible from either debug mode or machine mode.
SiFive FE310-G000 Manual: v3p2
© SiFive, Inc.
Page 104