10
ML605/SP605 Hardware Tutorial
UG669 (v3.0) March 15, 2011
Executing the System
5.
Configure and exercise the MicroBlaze Processor Subsystem by launching the Xilinx
Microprocessor Debugger (XMD). Open a command shell with the proper ISE Design
tool and EDK environment settings.
Note:
To set environment variables, run the
settings32.bat
file located in the Xilinx
installation area. At the command prompt, type
C:\Xilinx\13.1\ISE_DS\settings32.bat
and
press
Enter
.
6.
Execute these commands to download the design and connect to the MicroBlaze
processor:
For ML605:
$
cd ML605_Embedded_Kit/ML605_System/ready_for_download
$
xmd
XMD%
fpga -f ise_top_download.bit
Note:
This command downloads the hardware bitstream into the FPGA but does not
download the software application.
XMD%
connect mb mdm
Note:
This command connects to the MicroBlaze debug module.
For SP605:
$
cd SP605_Embedded_Kit/SP605_System/ready_for_download
$
xmd
XMD%
fpga -f ise_top_download.bit
Note:
This command downloads the hardware bitstream into the FPGA but does not
download the software application.
XMD%
connect mb mdm
Note:
This command connects to the MicroBlaze debug module.
7.
XMD allows low-level visibility into the design. There are several useful XMD
commands to allow for the peeking and poking of registers and memory locations
within the system. For example, writes to and reads from the internal block RAM are
done as follows:
•
For ML605:
XMD%
mwr 0x62000000 0xDEADBEEF
XMD%
mrd 0x62000000
The value
0xDEADBEEF
should be returned:
62000000: DEADBEEF
As an example of register access, write to the GPIO register which outputs data to
the 8-bit GPIO LEDs on the ML605 board:
XMD%
mwr 0x81420000 0xAA
The value written to this register is now reflected in the GPIO LEDs. The next write
changes the LED display:
XMD%
mwr 0x81420000 0x55
Note:
A read from this register always returns
0x00000000
, as this is an output-only
register.