MicroBlaze Processor Reference Guide
135
UG081 (v14.7)
Debug Interface Description
Debug Interface Description
The debug interface on MicroBlaze is designed to work with the Xilinx Microprocessor Debug
Module (MDM) IP core. The MDM is controlled by the Xilinx Microprocessor Debugger (XMD)
through the JTAG port of the FPGA. The MDM can control multiple MicroBlaze processors at the
same time. The debug signals are grouped in the DEBUG bus. The debug signals on MicroBlaze are
listed in
Trace Interface Description
The MicroBlaze core exports a number of internal signals for trace purposes. This signal interface is
not standardized and new revisions of the processor may not be backward compatible for signal
selection or functionality. It is recommended that you not design custom logic for these signals, but
rather to use them via Xilinx provided analysis IP. The trace signals are grouped in the TRACE bus.
The current set of trace signals were last updated for MicroBlaze v7.30 and are listed in
The Trace exception types are listed in
. All unused Trace exception types are reserved.
Table 3-15:
MicroBlaze Debug Signals
Signal Name
Description
VHDL Type
Direction
Dbg_Clk
JTAG clock from MDM
std_logic
input
Dbg_TDI
JTAG TDI from MDM
std_logic
input
Dbg_TDO
JTAG TDO to MDM
std_logic
output
Dbg_Reg_En
Debug register enable from
MDM
std_logic
input
Dbg_Shift
1
1. Updated for MicroBlaze v7.00: Dbg_Shift added and Debug_Rst included in DEBUG bus
JTAG BSCAN shift signal from
MDM
std_logic
input
Dbg_Capture
JTAG BSCAN capture signal
from MDM
std_logic
input
Dbg_Update
JTAG BSCAN update signal
from MDM
std_logic
input
Debug_Rst
Reset signal from MDM, active
high. Should be held for at least
1
Clk
clock cycle.
std_logic
input
Table 3-16:
MicroBlaze Trace Signals
Signal Name
Description
VHDL Type
Direction
Trace_Valid_Instr
Valid instruction on trace port.
std_logic
output
Trace_Instruction
1
Instruction code
std_logic_vector (0 to 31)
output
Trace_PC
Program counter
std_logic_vector (0 to 31)
output
Trace_Reg_Write
Instruction writes to the register file
std_logic
output
Trace_Reg_Addr
Destination register address
std_logic_vector (0 to 4)
output
Trace_MSR_Reg
Machine status register
std_logic_vector (0 to 14)
2
output
Trace_PID_Reg
Process identifier register
std_logic_vector (0 to 7)
output