Specifications
Embedded System Tools Guide (EDK 6.2i) www.xilinx.com 185
UG111 (v1.4) January 30, 2004 1-800-255-7778
R
Chapter 13
Xilinx Microprocessor Debugger (XMD)
The Xilinx Microprocessor Debugger (XMD) is a tool that facilitates a unified GDB 
interface as well as a Tcl (Tool Command Language) interface for debugging programs and 
verifying systems using the PowerPC (Virtex-II Pro & Virtex4) or MicroBlaze 
microprocessors. It supports debugging user programs on different targets such as:
x PowerPC system on a hardware board
x Cycle-accurate PowerPC instruction set simulator
x Cycle-accurate MicroBlaze instruction set simulator
x MicroBlaze connected to opb_mdm (hardware debug core) on a board
x MicroBlaze system running xmdstub (ROM monitor) on a hardware board
XMD is used along with PowerPC and MicroBlaze GDB (powerpc-eabi-gdb & mb-
gdb) for debugging. powerpc-eabi-gdb and mb-gdb communicate with xmd using the 
GDB Remote TCP protocol and control the corresponding targets. In either case, GDB can 
connect to xmd running on the same computer or on a remote computer on the Internet.
The xmd Tcl interface can be used for command line control and debugging of the target as 
well as for running complex verification test scripts to test complete system.
XMD reads system files MHS and MSS to better understand the hardware system on 
which the program is debugged. The information is used to perform memory range test 
and determine Micrblaze-MDM connectivity for faster download speeds.
This chapter contains the following sections.
x “XMD Usage”
x “PowerPC Target”
x “PowerPC Simulator Target”
x “MicroBlaze MDM Target”
x “MicroBlaze Stub Target”
x “MicroBlaze Simulator Target”
x “XMD Internal Tcl Commands”










