Xilinx MicroBlaze Spartan-3E 1600E Edition Getting Started
Hide thumbs Also See for MicroBlaze Spartan-3E 1600E Edition:

Advertisement

Quick Links

Getting Started with the
MicroBlaze Development Kit -
Spartan-3E 1600E Edition
UG258 (v1.0) June 29, 2006
R

Advertisement

Table of Contents
loading

Summary of Contents for Xilinx MicroBlaze Spartan-3E 1600E Edition

  • Page 1 Getting Started with the MicroBlaze Development Kit - Spartan-3E 1600E Edition UG258 (v1.0) June 29, 2006...
  • Page 2 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.
  • Page 3 Revision History The following table shows the revision history for this document. Version Revision 06/29/06 Initial Xilinx release. Getting Started with the MicroBlaze Development Kit - Spartan-3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 4 Getting Started with the MicroBlaze Development Kit - Spartan-3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 5: Table Of Contents

    Software Platform Settings ..........22 Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 6 Configuring the Web Server and Web Client ....... . . 31 Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 7: Preface: About This Guide

    Chapter 3, “MicroBlaze Development Kit Web Server 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.
  • Page 8: Online Document

    Figure 2-5 in the Virtex-4 Red text location in another document User Guide. Go to http://www.xilinx.com Blue, underlined text Hyperlink to a website (URL) for the latest speed files. Getting Started with the MicroBlaze Development Kit - Spartan3E Edition www.xilinx.com...
  • Page 9: Chapter 1: Microblaze Development Kit - Getting Started

    The development kit includes reference systems and demonstrations. These are included on the Development Kit Reference CD as well as pre-loaded in the Xilinx Platform Flash, SPI Flash, and StrataFlash on the development board. Please read the remainder of the document for specific details on these resources.
  • Page 10: Quick Start Information

    This is recommended for users familiar with Xilinx products. For a user that is new to Xilinx products, it is recommended that the user read the rest of this document as it contains more detailed information and instructions on the resources included in this development kit.
  • Page 11: Development Kit Reference Cd

    Development Kit Reference CD The development kit includes a resource CD that contains useful materials for expediting the creation of embedded designs using Xilinx platforms. The necessary directory structure and files representing the reference systems are included in ZIP files, which can be copied and unzipped.
  • Page 12: Demo Description And Configuration Mode Settings

    Hello World Demo. The PROM files for these demos can be found on the following Spartan-3E Web page link: http://www.xilinx.com/sp3e1600e SP3E1600E_HelloWorld Demo This is a simple demonstration that exercises a few of the board features. The demo will flash the LEDs and read the DIP and pushbutton switches.
  • Page 13: Configuration Mode Settings

    Platform Flash PROM Web Server Demo SPI Serial Flash PROM µClinux Demo BPI-Up StrataFlash PROM Not Applicable JTAG Downloaded from host via USB-JTAG port Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 14: Executing The Demos

    Demo Description and Configuration Mode Settings Executing the Demos Position the SP3E1600E board so the SPARTAN-3E and XILINX logos are oriented upright. Make sure the power switch, located in the upper left corner of the board, is in the off position.
  • Page 15: Introduction

    Details for obtaining the FLASH code images and the procedure for how to re-program the FLASH memory can be found on the following Spartan-3E Web page link: http://www.xilinx.com/sp3e1600e Hardware Specifics This reference system targets the Spartan-3E 1600E Edition development board. The system uses the MicroBlaze processor with cache turned on for both the instruction cache (I-cache) and the data cache (D-cache).
  • Page 16: Block Diagram

    Hardware Specifics Block Diagram Xilinx Spartan-3E FPGA OPB UART Lite OPB Ethernet OPB INTC MicroBlaze Processor OPB Bus IXCL DXCL MCH OPB DDR OPB EMC OPB Timer External StrataFlash Memory Memory (DDR) UG258_02_01_062306 Figure 2-1: Block Diagram Address Map The address map for the IP cores in the reference system is given in Table 2-1.
  • Page 17: System Configuration

    /TestApp_Memory/src/TestApp_Memory.c and /TestApp_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. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 18: Executing The Reference System

    MicroBlaze, the following steps are followed: A serial cable from the COM port of the PC to the DTE serial port on the board is connected. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 19 The µClinux image into DDR memory at the starting location 0x22000000 is downloaded using the command: dow -data image.bin 0x22000000 Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 20 DCHP request will time out; however this is not an error. The message to the HyperTerminal is shown below: # Jan 1 00:01:03 dhcpcd[33]: timed out waiting for a valid DHCP server response UG258_02-03_062606 Figure 2-3: µClinux Boot-Up Screen Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 21: Executing Uclinux Commands

    The user will login as is done from the HyperTerminal using the login username of root and the passwd of root. The basic ftp commands work for transferring files. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 22 Figure 2-5 The location of the example index.html in the µClinux file system is /home/httpd/index.html UG258_02_05_062806 Figure 2-5: Spartan-3E 1600E Edition Sample Web Page Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 23: Chapter 3: Microblaze Development Kit Web Server Reference System

    Details for obtaining the flash memory files and the procedure for how to re-program the flash memory can be found on the following Spartan-3E Web page link: http://www.xilinx.com/s3e1600e Hardware Specifics This reference system targets the Spartan-3E 1600E Edition development board. The system uses the MicroBlaze processor with a cache turned on for both the instruction cache (I-cache) and the data cache (D-cache).
  • Page 24: Block Diagram

    Hardware Specifics Block Diagram Xilinx Spartan-3E FPGA OPB UART Lite OPB Ethernet OPB GPIO OPB INTC MicroBlaze Processor OPB Bus IXCL DXCL MCH OPB DDR OPB EMC OPB Timer External StrataFlash Memory Memory (DDR) UG258_03_01_062606 Figure 3-1: Web Server Reference System Block Diagram...
  • Page 25: System Configuration

    /WebPage directory. The server receives requests at port 80. Every request is processed, and replies are sent by the server to the client. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 26: Operations Performed By The Web Server

    Software Platform Settings The EDK contains software library support for networking and memory file systems. The Web server design uses the lwIP TCP/IP stack, the Xilinx MicroKernel (XMK) operating system, and the XilMFS library. To view the library settings for the Web server design, the following steps are followed: To open the Software Platform Settings dialog box, select Software →...
  • Page 27 XilMFS libraries are used in the design and that XilKernel is selected. The OS and library settings are shown in Figure 3-2. UG258_03_02_062306 Figure 3-2: OS & Library Settings Table in Software Platform Settings Dialog Box Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 28 Under the xilkernel menu, note that the stdout and stdin attributes are set to the UART Lite instance name in the project. Also, note that the interrupt controller instance name is specified for the sysintc_spec attribute. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 29 This must be specified for MicroBlaze processor systems. UG258_03_05_062606 Figure 3-5: System Timer Menu Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 30 Add/Delete List of Parameter-Values box, shown in Figure 3-7. Note that the table has the Ethernet_MAC instance with a default MAC address of 01-02-03-04-05-06. UG258_03_07_062306 Figure 3-7: Ethernet Instance Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...
  • Page 31: Executing The Web Server Reference System

    To generate the system netlist and bitstream, follow these steps: Open the Web server project in XPS. Generate the bitstream by selecting Hardware → Generate Bitstream in XPS. Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 32: Generating The Mfs Image

    -cvbfs ../WebServer/image.mfs 600 404.html index.html logoV2005.gif webserverpdf.pdf After the command executes, the following text will appear in the EDK shell window: mfsgen Xilinx EDK 8.1.02 EDK_I.20.4 Copyright (c) 2004 Xilinx, Inc. All rights reserved. 404.html 710 index.html 1838 logoV2005.gif 1148 webserverpdf.pdf 50979...
  • Page 33: Running The Web Server Demonstration

    Download the MFS image into DDR memory using the following command: dow -data image.mfs 0x23000000 Download the Web server executable file using the following command: dow executable.elf Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition UG258 (v1.0) June 29, 2006 www.xilinx.com...
  • Page 34 ################################################################## # Xilinx lwIP TCP/IP Demo Application (Web Server) # XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" # SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR # XILINX DEVICES. # (c) Copyright 2005 Xilinx, Inc.
  • Page 35: Configuring The Web Server And Web Client

    HyperTerminal stating that Web server is accepting connections. This text will appear similar to the following: ################################################################## # Xilinx lwIP TCP/IP Demo Application (Web Server) # Web Server is now configured and accepting connections. ################################################################## MAC Address: 01-02-03-04-05-06 IP Address : 1.2.3.4...
  • Page 36 Executing the Web Server Reference System UG258_03_10_062306 Figure 3-10: Web Server Reference System Web Page Getting Started with the MicroBlaze Development Kit - Spartan3E 1600E Edition www.xilinx.com UG258 (v1.0) June 29, 2006...

Table of Contents