Xilinx MicroBlaze Reference Manual page 97

32-bit soft processor
Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

It is possible to configure trace to halt the processor when the trace buffer becomes full or
when the cycle count overflows. This allows continuous trace of the entire program flow,
albeit not in real time due to the time required to read the trace buffer.
The debug registers used to configure and control tracing, and to read the Embedded Trace
Buffer, are listed in
The DBG_CTRL Value indicates the value to use in the MDM Debug Register Access Control
Register to access the register, used with MDM software access to debug registers.
Table 2-48: MicroBlaze Program Trace Debug Registers
Register Name Size (bits)
Trace Control
Trace Command
Trace Status
1
Trace Data Read
1. This register is not available when C_DEBUG_EXTERNAL_TRACE is set
Trace Control Register
The Trace Control Register (TCTRLR) is used to define the trace behavior. This register is a
write-only register. Issuing a read request has no effect, and undefined data is read.
31
Reserved
Table 2-49: Trace Control Register (TCTRLR)
Bits
Name
21:6
Tracepoint
5:4
Level
3
Full Halt
MicroBlaze Processor Reference Guide
UG984 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
Table
2-48.
MDM
DBG_CTRL
Command
22
0110 0001
4C215
4
0110 0010
4C403
18
0110 0011
4C611
18
0110 0110
4CC11
22 21
Figure 2-31: Trace Control Register
Change corresponding breakpoint or watchpoint to a tracepoint
Trace compression level:
00 = Complete trace, not available with
01 = Program flow
10 = Program flow and cycle count
11 = Reserved
Debug Halt on full trace buffer or cycle count overflow
www.xilinx.com
Chapter 2: MicroBlaze Architecture
R/W
Value
Set tracepoints, trace compression level
W
and optionally stored trace information
Command to clear trace buffer, start or
W
stop trace, and sample number of
current buffer items
R
Read the sampled trace buffer status
Read the oldest item from the
R
Embedded Trace Buffer
Tracepoint
Description
C_DEBUG_EXTERNAL_TRACE
Description
6
5
4
3
2
1
0
↑ ↑ ↑ ↑
Level
FH SPC SL
SR
Reset Value
0
00
0
97
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents