background image

Getting Started with the MicroBlaze Development Kit - Spartan-3E 1600E Edition

 

UG258 (v1.3) November 30, 2007

www.xilinx.com

Xilinx is disclosing this Document and Intellectual Property (hereinafter “the Design”) to you for use in the development of designs to operate 
on, or interface with Xilinx FPGAs. Except as stated herein, none of the Design may be copied, reproduced, distributed, republished, 
downloaded, displayed, posted, or transmitted in any form or by any means including, but not limited to, electronic, mechanical, 
photocopying, recording, or otherwise, without the prior written consent of Xilinx. Any unauthorized use of the Design may violate copyright 
laws, trademark laws, the laws of privacy and publicity, and communications regulations and statutes.

Xilinx does not assume any liability arising out of the application or use of the Design; nor does Xilinx convey any license under its patents, 
copyrights, or any rights of others. You are responsible for obtaining any rights you may require for your use or implementation of the Design. 
Xilinx reserves the right to make changes, at any time, to the Design as deemed desirable in the sole discretion of Xilinx. Xilinx assumes no 
obligation to correct any errors contained herein or to advise you of any correction if such be made. Xilinx will not assume any liability for the 
accuracy or correctness of any engineering or technical support or assistance provided to you in connection with the Design.

THE DESIGN IS PROVIDED “AS IS” WITH ALL FAULTS, AND THE ENTIRE RISK AS TO ITS FUNCTION AND IMPLEMENTATION IS 
WITH YOU. YOU ACKNOWLEDGE AND AGREE THAT YOU HAVE NOT RELIED ON ANY ORAL OR WRITTEN INFORMATION OR 
ADVICE, WHETHER GIVEN BY XILINX, OR ITS AGENTS OR EMPLOYEES. XILINX MAKES NO OTHER WARRANTIES, WHETHER 
EXPRESS, IMPLIED, OR STATUTORY, REGARDING THE DESIGN, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
FOR A PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT OF THIRD-PARTY RIGHTS.

IN NO EVENT WILL XILINX BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT, EXEMPLARY, SPECIAL, OR INCIDENTAL DAMAGES, 
INCLUDING ANY LOST DATA AND LOST PROFITS, ARISING FROM OR RELATING TO YOUR USE OF THE DESIGN, EVEN IF YOU 
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE TOTAL CUMULATIVE LIABILITY OF XILINX IN CONNECTION 
WITH YOUR USE OF THE DESIGN, WHETHER IN CONTRACT OR TORT OR OTHERWISE, WILL IN NO EVENT EXCEED THE 
AMOUNT OF FEES PAID BY YOU TO XILINX HEREUNDER FOR USE OF THE DESIGN. YOU ACKNOWLEDGE THAT THE FEES, IF 
ANY, REFLECT THE ALLOCATION OF RISK SET FORTH IN THIS AGREEMENT AND THAT XILINX WOULD NOT MAKE AVAILABLE 
THE DESIGN TO YOU WITHOUT THESE LIMITATIONS OF LIABILITY.

The Design is not designed or intended for use in the development of on-line control equipment in hazardous environments requiring fail-
safe controls, such as in the operation of nuclear facilities, aircraft navigation or communications systems, air traffic control, life support, or 
weapons systems (“High-Risk Applications”). Xilinx specifically disclaims any express or implied warranties of fitness for such High-Risk 
Applications. You represent that use of the Design in such High-Risk Applications is fully at your risk.

© 2006-2007 Xilinx, Inc. All rights reserved. XILINX, the Xilinx logo, and other designated brands included herein are trademarks of Xilinx, 
Inc. All other trademarks are the property of their respective owners.

R

www.BDTIC.com/XILINX

Summary of Contents for MIcroBlaze Development Spartan-3E 1600E Kit

Page 1: ...R Getting Started with the MicroBlaze Development Kit Spartan 3E 1600E Edition UG258 v1 3 November 30 2007 www BDTIC com XILINX ...

Page 2: ...E AND AGREE THAT YOU HAVE NOT RELIED ON ANY ORAL OR WRITTEN INFORMATION OR ADVICE WHETHER GIVEN BY XILINX OR ITS AGENTS OR EMPLOYEES XILINX MAKES NO OTHER WARRANTIES WHETHER EXPRESS IMPLIED OR STATUTORY REGARDING THE DESIGN INCLUDING ANY WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE TITLE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS IN NO EVENT WILL XILINX BE LIABLE FOR ANY CONSEQUEN...

Page 3: ...2007 Revision History The following table shows the revision history for this document Version Revision 08 22 06 1 0 Initial Xilinx release 11 06 06 1 1 Updated command code in the Generating the MFS Image section of Chapter 3 4 24 07 1 2 Updated for EDK 9 1i 11 30 07 1 3 Updated for EDK 9 2 01i www BDTIC com XILINX ...

Page 4: ...Getting Started with the MicroBlaze Development Kit Spartan 3E 1600E Edition UG258 v1 3 November 30 2007 www xilinx com www BDTIC com XILINX ...

Page 5: ...are Installation 7 Demo Description and Configuration Mode Settings 7 Demo Description 7 Configuration Mode Settings 9 Executing the Demos 9 Chapter 2 MicroBlaze Development Kit BlueCat Linux Reference System Introduction 11 Hardware Specifics 12 Block Diagram 12 Address Map 12 System Configuration 13 Software Applications 14 Executing the BlueCat Linux Reference System 14 Generating the Bitstream...

Page 6: ...2 Getting Started with the MicroBlaze Development Kit Spartan 3E 1600E Edition www xilinx com UG258 v1 3 November 30 2007 R www BDTIC com XILINX ...

Page 7: ...at Linux Reference System Additional Resources To search the database of silicon and software questions and answers or to create a technical support case in WebCase see the Xilinx website at http www xilinx com support Conventions This document uses the following conventions An example illustrates each convention Typographical The following typographical conventions are used in this document Conve...

Page 8: ...ngdbuild option_name design_name Braces A list of items from which you must choose one or more lowpwr on off Vertical bar Separates items in a list of choices lowpwr on off Vertical ellipsis Repetitive material that has been omitted IOB 1 Name QOUT IOB 2 Name CLKIN Horizontal ellipsis Repetitive material that has been omitted allow block block_name loc1 loc2 locn Convention Meaning or Use Example ...

Page 9: ...Kit Reference Designs website http www xilinx com products boards s3e1600e reference_designs htm The demo systems are also pre loaded in the Xilinx Platform Flash and the Intel StrataFlash on the development board Please read the remainder of the document for specific details on these resources The reference systems included in this kit require the use of a computer installed with the following so...

Page 10: ...ing the following Board power supply Download cable host to target Null modem serial cable host to target Cross over ethernet cable host to target Detailed instructions of how to accomplish these tasks are found later in this document Step 3 Choose the reference system or demonstration of choice Demonstrations are located in the Xilinx Platform Flash and the Intel StrataFlash on the development bo...

Page 11: ...em and documentation can be directly downloaded from the following Xilinx Spartan 3E Development Kit Reference Designs website http www xilinx com products boards s3e1600e reference_designs htm Software Installation The development kit includes the required design software to work with the reference systems To use the reference system provided for this kit both software packages are required to be...

Page 12: ...ng on the MiroBlaze soft processor Refer to the BlueCat Linux Reference System chapter for details and instructions on how to run the BlueCat Linux demo The BlueCat Linux image is not loaded into the Intel StrataFlash PROM Note The μClinux image is pre loaded into the Intel Strata Flash PROM using the BPI Up configuration mode Therefore for booting the system using the the Lynuxworks Bluecat Linux...

Page 13: ...osition the SP3E1600E board so the SPARTAN 3E and XILINX logos are oriented upright 2 Make sure the power switch located in the upper left corner of the board is in the off position 3 Plug the power supply adapter cable into the SP3E1600E board Plug in the power supply to AC power 4 Ensure that the configuration jumpers are set to Master Serial mode as shown in Table 1 2 for the Hello World Demo 5...

Page 14: ... Flow control None 6 Turn on the SP3E1600E board s main power switch If the configuration jumpers are set to Master Serial mode then the Hello World Demo will automatically start 7 To restart or load another demo set the configuration jumpers to the proper settings for the desired demo and depress the PROG pushbutton or simply power cycle the main power switch a The selected demo will load from th...

Page 15: ... downloading and running the BlueCat Linux kernel demonstration are By using a debugger such as XMD provided as part of the EDK tools and downloading the image file directly into DDR through the MicroBlaze Debug Module Once the Flash is re programmed with the BlueCat linux image then By powering up from the Intel StrataFlash PROM with the FPGA configuration mode pins set to BPI up mode By depressi...

Page 16: ... kernel See Table 2 1 for the address map of the system Block Diagram The system is shown in Figure 2 1 Address Map The address map for the IP cores in the reference system is given in Table 2 1 X Ref Target Figure 2 1 Figure 2 1 Block Diagram UG258_2_1_110507 MicroBlaze Processor MPMC Xilinx Spartan 3E FPGA XPS UARTLITE XPS GPIO EXTERNAL MEMORY DDR XPS ETHERNETLITE XPS GPIO XPS GPIO XPS TIMER XPS...

Page 17: ...e block of main memory resides between 0x20000000 and 0x21FFFFFF and are accessed via the XCL Port Interface Modules PIM of the Multi ported Memory Controller MPMC More information about the MMU the Instruction Cache and Data Cache can be found in the MicroBlaze Processor Reference Guide XPS Ethernetlite Configuration The BlueCat Linux RTOS requires that the XPS Ethernet has the interrupts be set ...

Page 18: ...pp_Peripheral src TestApp_Peripheral c respectively The executable files for these tests are located under the project root directory as TestApp_Memory executable elf and TestApp_Peripheral executable elf respectively A BlueCat Linux ready MicroBlaze system and BlueCat Linux kernel are provided in this reference system This basic BlueCat Linux implementation is built using the BlueCat Linux versio...

Page 19: ...ectory to the ready_for_download directory cd ready_for_download impact batch s3e1600e_bclinux cmd Downloading the BlueCat Linux Kernel Before the BlueCat Linux demonstration can be executed a serial communications utility such as HyperTerminal must be set up To configure the HyperTerminal and run the BlueCat Linux demonstration on MicroBlaze the following steps are followed 1 A serial cable from ...

Page 20: ...kdi 1 In XPS Debug Launch XMD is selected 2 In the XMD command window the directory to the project s bclinux_images directory is changed as follows cd bclinux_images The Bluecat Linux image into DDR memory at the starting location 0x20000000 is downloaded using the command dow data standalone kdi 0x20000000 Note This step could take several minutes to download the BlueCat Linux image to the memory...

Page 21: ... read only except for the var directory and its sub directories New directories can be created under the var directory using the mkdir command Files under the var directory structure can be created or edited using the vi editor Text files can be viewed using the cat command This BlueCat Linux kernel was built with networking support enabled therefore it supports several network utilities when conn...

Page 22: ...sued The result on a HyperTerminal of the configuration settings for the eth0 Ethernet and lo Local Loopback ports are as shown in Figure 2 4 To ping a remote computer at IP address 1 2 3 9 from the development board this example command string ping c 4 1 2 3 9 is used to ping the remote computer 4 times To telnet from a networked computer to the board issue the command telnet 1 2 3 4 All of the L...

Reviews: