University of Toronto ECE532 Digital Hardware Module m01 Building a MicroBlaze System in XPS Version for EDK 8 2 02i as of January 6 2007 Acknowledgement This module is derived from a Xilinx lab given at the University of Toronto EDK workshop in November 2003 Many thanks to Xilinx for allowing us to use and modify their material Goals Use Xilinx tools to build and debug a basic MicroBlaze system This will consist of a MicroBlaze processor memory and a UART Understand basic concepts of the Xilinx Embedded Development Kit EDK which includes tools such as Xilinx Platform Studio XPS and processor IP Explore some concepts used when programming in an embedded processor environment such as where a program is loaded how it is loaded what gets added to it runtimes etc and how to interact with it Use some software debugging tools in an embedded processor environment Get an idea of how to find various useful documentation Requirements You ll need access to The Xilinx EDK 8 2 02i and ISE 8 2 03i software with IP Update 3 Either the Xilinx Virtex II Multimedia Board or the Xilinx XUP Virtex II Pro Development System About 15MB of disk space for the project files at least 12MB plus some to spare Preparation You should have a quick look at the following documents There are links from the UofT EDK page to the Xilinx site for the Xilinx documents and the link for the Training Lecture is there as well see Tools Documentation Resources and Access You can also find the Xilinx documents in your EDK install directory Some are online at Xilinx but others are only available in your installation If you are running XPS already you can use the menu link Help EDK Online Documentation Note Some of the activity in this module does not require hardware and can be done later such as examining various files If time is running short it is best to leave these steps till later and focus on the steps that actually use the hardware The steps in this module assume you are running it in the Microprocessor lab on the PCs 1 University of Toronto ECE532 Digital Hardware Module m01 Building a MicroBlaze System in XPS Background The Base System Builder BSB a wizard in XPS can help you build your first system quickly and easily XPS uses the Xilinx Integrated Software Environment ISE tools to synthesize place and route the hardware design GNU tools are provided in the EDK and are used within XPS to build the software for the embedded system Setup If you are working with the Xilinx Multimedia Board you should have the following hardware in your kit Xilinx Virtex II Multimedia Board Xilinx Parallel Cable 4 including an adapter for taking power from a PS 2 port USB to RS 232 adapter cable and driver CD which may be necessary even on Windows XP check here for installation instructions RJ 15 to DB 9 adapter for use in the labs AC adapter If you are using the Xilinx XUP Virtex II Pro Development System your kit should include Xilinx XUP Virtex II Pro Development System Board Documentation and driver CD Digilent VDEC1 video decoder board USB A B Cable USB to RS 232 adapter cable AC adapter Step by step Setting up the Hardware Connections For the Xilinx Virtex II Multimedia Board Please be very careful when setting up the hardware so as not to break the connectors Do not power on the board until a TA has verified your hardware setup If you are using the Xilinx XUP Virtex II Pro Development System Board skip to the next subsubsection 1 Place the development board on the table such that you can read the Xilinx insignia in the bottom right hand corner 2 Attach the flying leads cable to the Parallel Cable IV pod such that the red JTAG SERIAL lead is furthest away from you and the pod is faced so you can read the labels The leads provide a JTAG connection that is used for downloading FPGA configurations and debugging 3 Connect the cable from the pod to the parallel cable from the computer and the smaller lead to the adapter dangling from the back of the computer The smaller lead provides power to the pod The status light on the pod should now be lit orange 2 University of Toronto ECE532 Digital Hardware Module m01 Building a MicroBlaze System in XPS 4 At the top left hand corner of the Ultragizmo board there are two grey cables labeled CON and D Unplug the CON cable and connect it to the serial cable adapter Plug the other end of the serial cable into the connector located at the top left hand side of the board just below the power switch This will be used for your UART connection Note you need two connections to your board to do this lab First you need a programming connection for configuring the FPGA This is done using JTAG over either the Parallel Cable IV or the USB connection to the XUPV2P board Second you need a communications connection for interacting with the designs you instantiate on the FPGA For instance the standard input and standard output of the MicroBlaze in most of your designs will be connected to the serial port on the Multimedia or XUPV2P board In other words printf and scanf will run over the serial port It s for this connection that you need the serial cable connected to the CON port 5 Plug one end of the power supply into the power bar and the other into the jack located in the top left hand corner just above the power switch 6 Get a TA to check your connections You can then turn on the power switch ON and OFF are marked The green LEDs near the power switch should be illuminated Many other LEDs will be flashing including the System ACE Error LED this is expected and perfectly okay For the Xilinx XUP Virtex II Pro Development System Board Please be very careful when setting up the hardware so as not to break the connectors Do not power on the board until a TA has verified your hardware setup If you are using the Xilinx Virtex II Multimedia Board consult the last subsubsection 1 Place the development board on the table such that you can read the Xilinx insignia in the bottom right hand corner 2 Connect the USB cable to the socket on the right side of the board towards the upper edge This provides the JTAG connection that is used for downloading FPGA configurations and for debugging 3 Connect the other end of the USB cable to the PC 4 At the top left hand corner of the Ultragizmo board there are two grey cables labeled CON and D Unplug the CON cable and connect it to the serial cable adapter Plug the other end of the serial cable into the connector located at the bottom right hand corner of the board towards the
View Full Document