background image

MicroBlaze Microcontroller Ref Des User Guide

www.xilinx.com

4

UG133 January 7, 2005

Getting Started

R

Getting Started

System Requirements

The following software must be installed on your PC to utilize this reference design:

Windows 2000 SP2/Windows XP

EDK 6.3 or later (Must be the same version as ISE)

ISE 6.3i or later

To download the completed reference design, the following hardware is required:

Xilinx Spartan-3 Evaluation Board. For information on the evaluation board, see 

http://www.xilinx.com/products/spartan3/s3boards.htm

.

Xilinx Parallel Cable used to program and debug the device

Serial Cable for connection to the RS232 UART via HyperTerminal

The next sections of this document will discuss:

Downloading the reference design and test application

Launching Xilinx Platform Studios (XPS)

Downloading the Reference Designs

Go to the MicroBlaze lounge at 

http://www.xilinx.com/microblaze_mcu_refdes1

.

Download the reference design, starting with the MB_MCU_RefDes1.zip archive.

Downloading the Design and Launching XPS

1.

Go to the MicroBlaze lounge at 

http://www.xilinx.com/microblaze_mcu_refdes1

 and 

download the “MB_MCU_RefDes1.zip” archive.

2.

On the target drive, unzip “MB_MCU_RefDes1.zip”. This will automatically create a 
subdirectory for the project “MB_MCU_RefDes1.zip”. Assuming that the Xilinx 
Platform Studio (XPS) has been installed, launch XPS at this time using 
Start>Programs>Xilinx Platform Studio>Xilinx Platform Studio

3.

Once in XPS, select the menu option File>Open Project

4.

Using the browser, navigate to where the project exists and double-click on 
System.xmp.

The system showing the prebuilt MicroBlaze Microcontroller Reference System 
configuration is shown in 

Figure 2-2

.

Summary of Contents for MicroBlaze

Page 1: ...R MicroBlaze Microcontroller Reference Design User Guide v1 3 1 UG133 v1 3 1 January 7 2005...

Page 2: ...cribed herein other than circuitry entirely embodied in its products Xilinx provides any design code or information shown or described herein as is By providing the design code or information as one p...

Page 3: ...The following table shows the revision history for this document Version Revision 7 22 04 1 0 Initial Xilinx release 8 27 04 1 1 Edited content imported new images 11 19 04 1 2 Reconfigured book adde...

Page 4: ...the Design and Launching XPS 4 Updating and Generation Hardware Files 5 Downloading Design Files to the FPGA 6 Selecting a Software Application to Run When the FPGA is Configured 6 Loading the Calcul...

Page 5: ...ontroller configurations from which an engineer can choose The soft microcontroller features and peripherals in the FPGA may be used without modification or may be modified and customized using the Xi...

Page 6: ...ce specific information on Xilinx device characteristics including readback boundary scan configuration length count and debugging http support xilinx com xlnx xweb xil_publications_index jsp Problem...

Page 7: ...connected Square brackets An optional entry or parameter However in bus specifications such as bus 7 0 they are required ngdbuild option_name design_name Braces A list of items from which you must cho...

Page 8: ...peripherals This guide is provided as an aid in getting started and learning how to use the Xilinx Embedded Development Kit EDK tools It does this through examples which show how multiple software im...

Page 9: ...esign includes an Internal Block RAM memory an RS232 UART 4 GPIO blocks and a JTAG_UART used for software debugging This configuration utilizes approximately 50 of a Spartan 3 XC3S200 device Applicati...

Page 10: ...onfigured as output ports to drive the 7 segment LEDs on the board 8 bit GPIO configured as input ports to read onboard dip switches 3 bit GPIO configured as input ports to read push buttons JTAG_UART...

Page 11: ...st application Launching Xilinx Platform Studios XPS Downloading the Reference Designs Go to the MicroBlaze lounge at http www xilinx com microblaze_mcu_refdes1 Download the reference design starting...

Page 12: ...pplication can run any number of Software Applications When the Base System Wizard is used to create a Hardware System it also will create a simple Software Application to test the selected Hardware f...

Page 13: ...tstream This will configure the MicroBlaze Microcontroller program and Data memory with the software application already pre loaded This means that as soon as the FPGA has been successfully configured...

Page 14: ...f the PC On the PC using hyperterminal make certain that the bit rate is set for 57600 bps on the serial port 3 Turn on the power on to the Spartan 3 Evaluation Board 4 In XPS to make sure that the EL...

Page 15: ...w1 ON Sw0 ON Where Word 1 is 1 and Word 0 is 3 Add 3 1 4 Sub 3 1 2 Mult 3 1 3 Each time one of the Push Button switches is pressed the result should be displayed in decimal on the 7 Seg display and it...

Page 16: ...over it Verify that this is the case for microblaze_0_bootloop Project TestApp and Project Calculator_App If any are set please Right click and confirm that Mark to Initialize BRAMs is not checked If...

Page 17: ...select Tools Software Debugger to open the GDB interface Source Window 2 Choose TestApp from the User Application window 3 In GDB select the File Target Settings to display the Target Selection dialog...

Page 18: ...ram repeat the procedure in section Loading the TestApp Software Application with XMD_STUB Start with step 1 and choose Calculator_App in step 5 instead of TestApp See Running the Calculator_App progr...

Reviews: