Specifications

206 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 13: Xilinx Microprocessor Debugger (XMD)
R
Note: The number of PC hardware breakpoints, setting and clearing the breakpoints are
automatically managed by xmd when the “bps <addr> <hw>” and “bpr <addr>” commands are used.
For address breakpoint (catchpoints), currently users have to explicitly set the breakpoint using the
breakpoint ID and “xbreakpoint” command. The hardware breakpoint IDs for MicroBlaze are as
follows :
i
PC hardware breakpoint IDs - 0 to (No of PC BRK -1)
- For the example below, PC breakpoints are 0-3
i Read Addr/Data breakpoint IDs - Max PC BRK to Max PC BRK + (Read BRK *2)
- For the example below, Read Addr Breakpoint is 4 and Read Data Breakpoint
is 5.
- The Addr and Data breakpoints for Read or Write always co-exist. If the Addr
or Data part of the breakpoint has to beDont-Cares, you can currently set it
in XMD by setting the breakpoint to be at addr “0xFFFFFFFF”.
i Write Addr/Data breakpoint IDs - Max RD Addr/Data BRK + (Write BRK * 2)
- For the example below, Write Addr Breakpoint is 6 and Write Data Breakpoint
is 7
- The Addr and Data breakpoints for Read or Write always co-exist. If the Addr
or Data part of the breakpoint has to beDont-Cares, you can currently set it
in XMD by setting the breakpoint to be at addr “0xFFFFFFFF”.
$ xmd
Xilinx Microprocessor Debug (XMD) Engine
Xilinx EDK 6.2 Build EDK_Gm.9
Copyright (c) 1995-2002 Xilinx, Inc. All rights reserved.
XMD% mbconnect mdm
JTAG chain configuration
--------------------------------------------------
Device ID Code IR Length Part Name
1 05026093 8 XC18V04
2 0123e093 10 XC2VP4
Assuming, Device No: 2 contains the MicroBlaze system
Connected to the JTAG MicroBlaze Debug Module (MDM)
No of processors = 1
MicroBlaze Processor 1 Configuration :
-------------------------------------
Version............................2.00.a
No of PC Breakpoints...............4
No of Read Addr/Data Watchpoints...1
No of Write Addr/Data Watchpoints..1
Instruction Cache Support..........off
Data Cache Support.................off
JTAG MDM Connected to Mircoblaze 1
Connected to MicroBlaze "mdm" target. id = 0
Starting GDB server for "mdm" target (id = 0) at TCP port no 1234
XMD% mrd 0xC000 4
C000: 00000000
C004: 00000000
C008: 00000004
C00C: 00000000
XMD% rrd
r0: 00000000 r8: 00000000 r16: 00000000 r24: 00000000
r1: 00000540 r9: 00000000 r17: 00000000 r25: 00000000