Spartan-6 LX9 MicroBoard Embedded Tutorial
Spartan-6 LX9 MicroBoard Embedded Tutorial
Tutorial 1
Creating an AXI-based Embedded System
Version 13.2.01
Spartan-6 LX9 MicroBoard Embedded Tutorial
Revision History
Version
13.2.01
Description
Initial release for EDK 13.2
Date
9/22/2011
Table of Contents
Revision History.............................................................................................................................. 2
Table of Contents ........................................................................................................................... 2
Table of Figures.............................................................................................................................. 2
Overview......................................................................................................................................... 3
Objectives ....................................................................................................................................... 3
Requirements ................................................................................................................................. 4
Software ...................................................................................................................................... 4
Hardware .................................................................................................................................... 4
Recommended Reading ............................................................................................................. 4
I. Create the Hardware Platform ..................................................................................................... 5
II. Understanding the System ......................................................................................................... 9
III. Compiling a Test Application Using SDK ................................................................................. 11
IV. Test the Generated System with the Test Application............................................................. 16
Getting Help and Support ............................................................................................................. 20
Table of Figures
Figure 1 - Hardware Platform ......................................................................................................... 3
Figure 2 - Project Location.............................................................................................................. 5
Figure 3 - Project Settings .............................................................................................................. 6
Figure 4 - New Source Wizard........................................................................................................ 6
Figure 5 - Board and System Selection .......................................................................................... 7
Figure 6 - Base System Builder Peripherals ................................................................................... 8
Figure 7 - System Assembly View .................................................................................................. 9
Figure 8 - Generate Top HDL Source........................................................................................... 10
Figure 9 - Export Hardware Design to SDK .................................................................................. 11
Figure 10 - Workspace Launcher ................................................................................................. 12
Figure 11 - Adding C Applications ................................................................................................ 12
Figure 12 - Creating a new Board Support Package .................................................................... 13
Figure 13 - SDK Project Explorer ................................................................................................. 14
Figure 14 - Linker Script Configuration ......................................................................................... 15
Figure 15 - Connect LX9 MicroBoard to host PC.......................................................................... 16
Figure 16 - COM Port Selection.................................................................................................... 16
Figure 17 - FPGA Programming ................................................................................................... 17
Figure 18 - Run Configurations..................................................................................................... 18
Figure 19 - STDIO Configuration .................................................................................................. 18
Figure 20 - Console View ............................................................................................................. 19
Page 2 of 20
Spartan-6 LX9 MicroBoard Embedded Tutorial
Overview
This is the first tutorial in a series of training material dedicated to introducing engineers to creating their
first embedded designs featuring the new AXI interface. These tutorials will cover all the required steps
for creating a complete MicroBlaze design in the Spartan-6 LX9 MicroBoard. While dedicated to this
platform, the information learned here can be used with any Xilinx FPGA.
The tutorial is divided into four main steps: creating the hardware platform, understanding what was
created, using SDK to compile a software application and testing the system on the FPGA. The test
application will reside in the attached LPDDR. Below is a block diagram of the hardware platform. The
General Purpose I/O (GPIO) core will be used for the LEDs on the board.
Figure 1 - Hardware Platform
Objectives
This tutorial demonstrates how to create an embedded hardware platform for MicroBlaze using the Xilinx
Platform Studio (XPS) Base System Builder (BSB). The lab will show:
How start Base System Builder from Project Navigator
How to generate a MicroBlaze embedded hardware platform
What files are generated
How to use the software environment (SDK) to test a simple application
Page 3 of 20
Spartan-6 LX9 MicroBoard Embedded Tutorial
Requirements
The following items are required for proper completion of this tutorial.
Software
The following software setup is required for this reference design:
WindowsXP 32-bit Service Pack 2
Xilinx
ISE WebPack
with the
EDK add-on
or
ISE Embedded Edition
version 13.2
Installed Silicon Labs CP210x USB-to-UART Bridge Driver (see
Silicon Labs CP210x USB-to-
UART Setup Guide,
listed in Recommended Reading, below)
Installation of the Spartan-6 LX9 MicroBoard XBD (for EDK 13.2) files (Available from Avnet:
http://em.avnet.com/s6microboard)
Hardware
The hardware setup used by this reference design includes:
Computer with a minimum of 300-900 MB (depending on O/S) to complete an XC6SLX9 design
1
Avnet Spartan-6 LX9 MicroBoard Kit
o
Avnet Spartan-6 LX9 MicroBoard
o
USB Extension cable (if necessary)
o
USB A-to-MicroB cable
Recommended Reading
Available from Avnet:
http://em.avnet.com/s6microboard
•
The hardware used on the Spartan-6 LX9 MicroBoard is described in detail in Avnet document,
Spartan-6 LX9 MicroBoard User Guide.
•
An overview of the configuration options available on the Spartan-6 LX9 MicroBoard, as well as
Digilent driver installation instructions can be found in the Avnet document,
Spartan-6 LX9
MicroBoard Configuration Guide.
•
Instructions on installing the Silicon Labs CP210x USB-to-UART drivers can be found in the
Avnet document,
Silicon Labs CP210x USB-to-UART Setup Guide.
Available from Xilinx:
http://www.xilinx.com/support/documentation/spartan-6.htm
•
Details on the Spartan-6 FPGA family are included in the following Xilinx documents:
o
Spartan-6 Family Overview (DS160)
o
Spartan-6 FPGA Data Sheet (DS162)
o
Spartan-6 FPGA Configuration User Guide (UG380)
o
Platform Studio Help (available in tool menu)
o
Platform Studio SDK Help (available in tool menu)
o
MicroBlaze Reference Guide v.13.2 (UG081)
o
Embedded System Tools Reference Manual v.13.2 (UG111)
1
Refer to
www.xilinx.com/ise/products/memory.htm
Page 4 of 20
Spartan-6 LX9 MicroBoard Embedded Tutorial
I. Create the Hardware Platform
We will use Base System Builder to create the MicroBlaze embedded system. The Wizard can quickly
create baseline systems for current development boards or for custom boards. The system will include a
timer, a UART, a GPIO controller for the LEDs, external DDR memory, and internal memory to store the
application.
1. Start
Xilinx ISE Project Navigator,
Start
Programs
Xilinx ISE Design Suite 13.2
ISE
Design Tools
Project Navigator
and create a new project:
File > New Project…
2. Set the
Project Location
to
C:\Xilinx\Embedded\
and the
Project Name
to
EDK_Tutorial.
Click
Next.
Figure 2 - Project Location
Page 5 of 20
评论