Spartan -6 LX150T Development Kit Hardware Co-Simulation Reference Design Tutorial

Similar documents
Spartan -6 LX150T Development Kit Hardware Co-Simulation Reference Design User Guide

Tutorial - Using Xilinx System Generator 14.6 for Co-Simulation on Digilent NEXYS3 (Spartan-6) Board

Avnet Speedway Design Workshop

Avnet Speedway Design Workshop

SATA Storage Duplicator Instruction on KC705 Rev Sep-13

ISim Hardware Co-Simulation Tutorial: Accelerating Floating Point FFT Simulation

Intro to System Generator. Objectives. After completing this module, you will be able to:

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 5 Embedded Chipscope Debugging

ISim Hardware Co-Simulation Tutorial: Accelerating Floating Point FFT Simulation

Creating the AVS6LX9MBHP211 MicroBlaze Hardware Platform for the Spartan-6 LX9 MicroBoard Version

Kintex-7: Hardware Co-simulation and Design Using Simulink and Sysgen

Virtex-6 FPGA ML605 Evaluation Kit FAQ June 24, 2009

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 1 Creating an AXI-based Embedded System

Xilinx ISE Synthesis Tutorial

English Japanese

Virtex 6 FPGA Broadcast Connectivity Kit FAQ

Spartan-6 & Virtex-6 FPGA Connectivity Kit FAQ

Avnet S6LX16 Evaluation Board and Maxim DAC/ADC FMC Module Reference Design

Spartan -6 LX9 MicroBoard Web Connectivity On Ramp Tutorial

AC701 Ethernet Design Creation October 2014

FPGA Co-Simulation of Gaussian Filter Algorithm Application Note

POWERLINK Slave Xilinx Getting Started User's Manual

ISim Hardware Co-Simulation Tutorial: Accelerating Floating Point Fast Fourier Transform Simulation

Spartan-6 LX9 MicroBoard Embedded Tutorial. Tutorial 2 Adding EDK IP to an Embedded System

Using Synplify Pro, ISE and ModelSim

Corona (MAXREFDES12#) Nexys 3 Quick Start Guide

Agenda. Introduction FPGA DSP platforms Design challenges New programming models for FPGAs

Avnet Zynq Mini Module Plus Embedded Design

Basic Xilinx Design Capture. Objectives. After completing this module, you will be able to:

AC701 Ethernet Design Creation June 2014

Spartan-6 and Virtex-6 FPGA Embedded Kit FAQ

Configuring the Xilinx Spartan-6 LX9 MicroBoard

ISE Design Suite Software Manuals and Help

Spartan-6 LX9 MicroBoard Embedded Tutorial. Lab 6 Creating a MicroBlaze SPI Flash Bootloader

Xilinx ISE8.1 and Spartan-3 Tutorial (Prepared by Kahraman Akdemir based on Professor Duckworth's Tutorials updated September 2006)

Virtex-6 FPGA Connectivity Kit

AccelDSP tutorial 2 (Matlab.m to HDL for Xilinx) Ronak Gandhi Syracuse University Fall

Xilinx ISE8.1 and Spartan-3 Tutorial EE3810

Corona (MAXREFDES12#) ZedBoard Quick Start Guide

Carmel (MAXREFDES18#) LX9 MicroBoard Quick Start Guide

SATA-IP Device Demo Instruction on AC701 Rev Apr-14

Tutorial: ISE 12.2 and the Spartan3e Board v August 2010

Virtex-6 FPGA Connectivity Kit

and 32 bit for 32 bit. If you don t pay attention to this, there will be unexpected behavior in the ISE software and thing may not work properly!

System Ace Tutorial 03/11/2008

Tutorial: Image Filtering, System Generator Matlab/Simulink

KC705 Si5324 Design October 2012

Fresno (MAXREFDES11#) ZedBoard Quick Start Guide

Sundance Multiprocessor Technology Limited. Capture Demo For Intech Unit / Module Number: C Hong. EVP6472 Intech Demo. Abstract

Sundance Multiprocessor Technology Limited. Capture Demo For Intech Unit / Module Number: C Hong. EVP6472 Intech Demo. Abstract

AC701 Built-In Self Test Flash Application April 2015

ECE 491 Laboratory 1 Introducing FPGA Design with Verilog September 6, 2004

SP605 MIG Design Creation

Hardware In The Loop (HIL) Simulation for the Zynq-7000 All Programmable SoC Author: Umang Parekh

MAXREFDES43# ZedBoard Quick Start Guide

Introducing the Spartan-6 & Virtex-6 FPGA Embedded Kits

VCU110 GT IBERT Design Creation

PlanAhead Software Tutorial

Introduction. About this tutorial. How to use this tutorial

UCT Software-Defined Radio Research Group

SP605 Built-In Self Test Flash Application

ML605 Built-In Self Test Flash Application

Programming Xilinx SPARTAN 3 Board (Simulation through Implementation)

TLL5000 Electronic System Design Base Module

Building Combinatorial Circuit Using Behavioral Modeling Lab

MAXREFDES44# MicroZed Quick Start Guide

Fremont (MAXREFDES6#) Nexys 3 Quick Start Guide

DPM Demo Kit User s Manual Version: dpm_dk_um_1_0_1.doc

Figure 1 TCL Used to Initialize PS

SP605 Standalone Applications

Campbell (MAXREFDES4#) Nexys 3 Quick Start Guide

As CCS starts up, a splash screen similar to one shown below will appear.

Using Serial Flash on the Xilinx Spartan-3E Starter Board. Overview. Objectives. Version 8.1 February 23, 2006 Bryan H. Fletcher

Getting Started Guide

ML605 Built-In Self Test Flash Application

KC705 PCIe Design Creation with Vivado August 2012

SP605 MultiBoot Design

SP605 GTP IBERT Design Creation

Accelerating System Designs Requiring High-Bandwidth Connectivity with Targeted Reference Designs

SOFTWARE DEFINED RADIO

TOE1G-IP Two-Port Demo Instruction

KC705 Ethernet Design Creation October 2012

Implementing a Verilog design into the UWEE CPLD Development Board Using Xilinx s ISE 7.1i Software: A Tutorial

Design and Verify Embedded Signal Processing Systems Using MATLAB and Simulink

Nexys 2/3 board tutorial (Decoder, ISE 13.2) Jim Duckworth, August 2011, WPI. (updated March 2012 to include Nexys2 board)

FMC-IMAGEON VITA Pass-Through Tutorial

Creating a Processor System Lab

ELEC 4200 Lab#0 Tutorial

Cover TBD. intel Quartus prime Design software

Integrated Workflow to Implement Embedded Software and FPGA Designs on the Xilinx Zynq Platform Puneet Kumar Senior Team Lead - SPC

Adding the ILA Core to an Existing Design Lab

SP601 Standalone Applications

Chapter 5. Hardware Software co-simulation

Building an Embedded Processor System on Xilinx NEXYS3 FPGA and Profiling an Application: A Tutorial

Santa Fe (MAXREFDES5#) MicroZed Quick Start Guide

Tutorial on FPGA Design Flow based on Xilinx ISE WebPack and ModelSim. ver. 2.0

Hierarchical Design Using Synopsys and Xilinx FPGAs

SP605 GTP IBERT Design Creation

Vivado Design Suite User Guide

MicroBlaze Tutorial on EDK 10.1 using Sparatan III E Behavioural Simulation of MicroBlaze System

Transcription:

Spartan -6 LX150T Development Kit H/W Co-Simulation Reference Design Tutorial Spartan -6 LX150T Development Kit Hardware Co-Simulation Reference Design Tutorial Version 1.0

Revision History Version Description Date 0.8 Preliminary. Apr. 01, 2010 Branched off from IVK EDK Reference Design User Guide. 1.0 Xilinx ISE Design Suite 12.2 Update Sep. 07, 2010-1 -

Table of Contents Revision History... - 1 - Table of Contents... - 2 - Table of Figures... - 3 - Introduction... - 4 - Requirements... - 4 - Software... - 4 - Hardware... - 4 - Setup... - 5 - Connecting the Xilinx Platform Cable USB-II JTAG programming cable... - 5 - Connecting the Ethernet Cable... - 6 - Connecting the 12V Power Supply... - 6 - Ethernet NIC Configuration...- 7 - What is Xilinx System Generator?... - 12 - What is Hardware Co-Simulation?...- 13 - What is the Avnet Spartan-6 LX150T Hardware Co-Simulation Compilation Target?... - 14 - How do I install the Avnet Spartan-6 LX150T Hardware Co-Simulation Compilation Target? - 15 - Using Hardware Co-Simulation to Validate a 5x5 Video Filter Kernel... - 16 - For more information... - 26 - - 2 -

Table of Figures Figure 1 Setup - Connecting the Xilinx Platform Cable USB-II... - 5 - Figure 2 Setup - Connecting the Ethernet Cable... - 6 - Figure 3 Setup Connecting the 12V power supply...- 6 - Figure 4 Network Connections Local Area Connection Properties... - 7 - Figure 5 Accessing the NIC manufacturer s configuration GUI... - 8 - Figure 6 Flow Control Auto... - 9 - Figure 7 Flow Control Generate & Respond...- 9 - Figure 8 Speed & Duplex Auto... - 10 - Figure 9 Jumbo Frames Enabled... - 11 - Figure 10 Xilinx System Generator design example...- 12 - Figure 11 Hardware Co-Simulation... - 13 - Figure 12 Hardware Co-Simulation Compilation Targets...- 14 - Figure 13 Hardware Co-Simulation Installation Contents of directory... - 15 - Figure 14 Hardware Co-Simulation Installation Executing setup.m script... - 15 - Figure 15 5x5 Video Filer Kernel Opening the model...- 16 - Figure 16 5x5 Video Filer Kernel Selecting the Avnet S6-LX150T target... - 17 - Figure 17 5x5 Video Filer Kernel Generating... - 18 - Figure 18 5x5 Video Filer Kernel Hardware Co-Simulation Library... - 18 - Figure 19 5x5 Video Filer Kernel Instantiating the Hardware Co-Simulation block... - 19 - Figure 20 5x5 Video Filer Kernel Basic Configuration...- 20 - Figure 21 5x5 Video Filer Kernel Ethernet Configuration... - 21 - Figure 22 5x5 Video Filer Kernel JTAG Configuration... - 22 - Figure 23 5x5 Video Filer Kernel Starting Co-Simulation... - 23 - Figure 24 5x5 Video Filer Kernel Initialization Phase...- 24 - Figure 25 5x5 Video Filer Kernel Co-Simulation Results... - 25 - Figure 26 xldoc System Generator Help System... - 26 - Figure 27 PDF Documentation System Generator Book List... - 27 - - 3 -

Introduction Xilinx System Generator provides hardware co-simulation, making it possible to incorporate a design running in an FPGA directly into a Simulink simulation. Hardware Co-Simulation compilation targets automatically create a bitstream and associate it to a block. When the design is simulated in Simulink, results for the compiled portion are calculated in hardware. This allows the compiled portion to be tested in actual hardware and can speed up simulation dramatically. The Avnet hardware co-simulation compilation targets provide co-simulation support for Avnet boards using a raw Ethernet connection (called Point-to-point Ethernet in Xilinx System Generator). Point-to-point Ethernet co-simulation provides a straightforward high-performance co-simulation environment using a direct, point-to-point Ethernet connection between a PC and FPGA platform. Requirements The software and hardware requirements for this kit are described in the following sections. Software The software required to use and run the demonstrations is: WindowsXP 32-bit Xilinx ISE Design Suite 12.2 : DSP Edition or System Edition 1 MathWorks software Release 2009b: Hardware The additional hardware required to run these demonstrations is: Computer with a minimum of 950 MB to complete a design 2 Xilinx Spartan -6 LX150T PCI Express Development Kit 12V AC/DC adapter Xilinx Platform Cable USB II (or equivalent) Ethernet cable 1 All Xilinx Service Packs are available at www.xilinx.com/download 2 Refer to www.xilinx.com/ise/products/memory.htm - 4 -

Setup Perform the following steps to setup the hardware for running hardware co-simulation. Connecting the Xilinx Platform Cable USB-II JTAG programming cable Connect the USB-B end of the cable to the Xilinx Platform Cable USB-II. Connect the flat cable to the Spartan-6 LX150T development board s J9 connector as shown in Figure 1. J9 : JTAG Figure 1 Setup - Connecting the Xilinx Platform Cable USB-II - 5 -

Connecting the Ethernet Cable Connect the Ethernet cable into the Spartan-6 LX150T carrier board s J1 connector as shown in Figure 2. Connect the other end of the end of the Ethernet cable to the PC. J1 : Ethernet Figure 2 Setup - Connecting the Ethernet Cable Connecting the 12V Power Supply Plug in the 12V power adapter to the local AC power. Ensure that the power switch SW11 is in the off position. Plug the 12V power jack into the Spartan-6 LX150T carrier board s J16 connector. Turn on the power by switching the SW11 to the ON position. SW11 : Power ON/OFF Switch J16 : Power Connector Figure 3 Setup Connecting the 12V power supply - 6 -

Ethernet NIC Configuration To achieve the maximum bandwidth during hardware co-simulation, your NIC (Network Interface Card) must be configured properly. Not all NIC manufacturers display their configuration GUI the same way. For this reason, several examples will be shown on how to configure the NIC settings. To configure the settings of your NIC, perform the following steps: 1) From the Start menu, select Control Panel, then select Network Connections 2) Right-click on your Local Area Connection, then select Properties. Figure 4 Network Connections Local Area Connection Properties - 7 -

3) Click on the Configure button to access the NIC manufacturer s configuration GUI Figure 5 Accessing the NIC manufacturer s configuration GUI - 8 -

4) Xilinx recommends setting Flow Control to Auto a. Under the Advanced tab, select Flow Control and select Auto as shown below Figure 6 Flow Control Auto b. If you don t have any Auto choice available, as shown in the following examples, then select Generate & Respond Figure 7 Flow Control Generate & Respond - 9 -

5) Xilinx recommends setting Speed & Duplex to Auto a. Under the Advanced tab, select Speed & Duplex and select Auto as shown in the first example. This setting could also be found in the Link Speed tab as shown in the second example. Figure 8 Speed & Duplex Auto - 10 -

6) For boards which support 1Gbps bandwidth, enabling the Jumbo Frames setting is strongly recommended to maximize the bandwidth usage Figure 9 Jumbo Frames Enabled - 11 -

What is Xilinx System Generator? System Generator is a DSP design tool from Xilinx that enables the use of The Mathworks model-based design environment Simulink for FPGA design. Previous experience with Xilinx FPGAs or RTL design methodologies is not required when using System Generator. Designs are captured in the DSP friendly Simulink modeling environment using a Xilinx specific blockset. All of the downstream FPGA implementation steps including synthesis and place and route are automatically performed to generate an FPGA programming file. 3 Figure 10 Xilinx System Generator design example For more information on Xilinx System Generator, consult the dedicated page on the Xilinx web site: http://www.xilinx.com/ise/optional_prod/system_generator.htm 3 Excerpt from System Generator for DSP Getting Started Guide, Release 10.1.3 September, 2008-12 -

What is Hardware Co-Simulation? System Generator provides accelerated simulation through hardware co-simulation. System Generator will automatically create a hardware simulation token for a design captured in the Xilinx DSP blockset that will run on one of over 20 supported hardware platforms. This hardware will co-simulate with the rest of the Simulink system to provide up to a 1000x simulation performance increase. 4 Figure 11 Hardware Co-Simulation 4 Excerpt from System Generator for DSP Getting Started Guide, Release 10.1.3 September, 2008-13 -

What is the Avnet Spartan-6 LX150T Hardware Co- Simulation Compilation Target? The Avnet Spartan-6 LX150T hardware co-simulation compilation target provides co-simulation support for the Avnet Spartan-6 LX150T Base Kit using either of the following connections: JTAG connection raw Ethernet connection (called Point-to-point Ethernet in Xilinx System Generator) Point-to-point Ethernet co-simulation provides a straightforward high-performance co-simulation environment using a direct, point-to-point Ethernet connection between a PC and FPGA platform. Once installed, this compilation target will appear in the Xilinx System Generator token as shown below Figure 12 Hardware Co-Simulation Compilation Targets - 14 -

How do I install the Avnet Spartan-6 LX150T Hardware Co-Simulation Compilation Target? The Avnet Spartan-6 LX150T Hardware Co-Simulation Compilation Target does not ship with the Xilinx software and must therefore be installed. In order to install this plug-in, open Matlab and change directory to the following location: {Installation directory}\hwcosim_installation\ You should see something like the following: Figure 13 Hardware Co-Simulation Installation Contents of directory Type the setup command which will call the setup.m script. This will install the hardware cosimulation compilation target for each of the supported Avnet boards. Figure 14 Hardware Co-Simulation Installation Executing setup.m script - 15 -

Using Hardware Co-Simulation to Validate a 5x5 Video Filter Kernel This section assumes that the hardware has been correctly setup: JTAG connected to the S6-LX150T carrier s J9 connector Ethernet connected to the S6-LX150T carrier s J1 connector Refer to the Getting Started Guide [Ref 1] for information on setting up the IVK hardware. If the demo fails to run, see the Error! Reference source not found. Appendix. Now that the hardware co-simulation target is installed, we will demonstrate how to use it to validate a 5x5 video filter kernel. Open Matlab and change directory to the following directory: {XILINX}\ISE_DS\ISE\\sysgen\examples\shared_memory\hardware_cosim\conv5x5_video where {XILINX} is the location where Xilinx was installed (ie. C:\Xilinx\12.2) Open the conv5x5_video_ex.mdl model. Figure 15 5x5 Video Filer Kernel Opening the model - 16 -

Double-click on the System Generator block and select one of the Avnet Hardware Co-Simulation compilation targets as show below Figure 16 5x5 Video Filer Kernel Selecting the Avnet S6-LX150T target - 17 -

Click on Generate to build the design for hardware co-simulation this will take a while, so be patient Figure 17 5x5 Video Filer Kernel Generating When the build process completes, a hardware co-simulation block will appear in a new conv5x5_video_ex_hwcosim_lib.mdl library. Do not close the hwcosim library. Click on the OK button in the Compilation status dialog box. Figure 18 5x5 Video Filer Kernel Hardware Co-Simulation Library - 18 -

Open the conv5x5_video_testbench.mdl model and drag the conv5x5_video_ex hwcosim block into the testbench model as show below Figure 19 5x5 Video Filer Kernel Instantiating the Hardware Co-Simulation block - 19 -

Double-click on the conv5x5_video_ex hwcosim block, select the Basic tab, and set the Clock source to Free running Figure 20 5x5 Video Filer Kernel Basic Configuration - 20 -

If you are using JTAG hardware co-simulation, skip this step and proceed to the next page. If you are using the Point-to-Point Ethernet hardware co-simulation, you need to configure the Ethernet connection. Select the Ethernet tab, and select your PC s Ethernet connection from the Host interface drop down list. Figure 21 5x5 Video Filer Kernel Ethernet Configuration - 21 -

Select the Configuration tab, and select your Xilinx JTAG cable from the available choices. The default Auto Detect is also a valid choice that will automatically detect your JTAG cable. Figure 22 5x5 Video Filer Kernel JTAG Configuration Click OK to close the conv5x5_video_ex hwcosim parameters dialog blox. - 22 -

Press the play button to start the hardware co-simulation Figure 23 5x5 Video Filer Kernel Starting Co-Simulation - 23 -

The simulink model will first download the bitstream via JTAG, then it will establish a link with the FPGA design via Ethernet or JTAG. Figure 24 5x5 Video Filer Kernel Initialization Phase - 24 -

The model will run the FPGA in the loop co-simulation until the user stops the simulation. Figure 25 5x5 Video Filer Kernel Co-Simulation Results - 25 -

For more information For more information on Xilinx System Generator hardware co-simulation, consult the System Generator documentation. This documentation can be accessed in two ways: From MATLAB, type the xldoc command to launch the System Generator Help System Figure 26 xldoc System Generator Help System - 26 -

From the Windows Start Menu, select Programs => Xilinx ISE 12.1 Design Suite => DSP Tools => Documentation click on the Xilinx System Generator Manual to access an index of all System Generator documents Figure 27 PDF Documentation System Generator Book List - 27 -

References All documentation supporting the Spartan-6 Industrial Video Processing Kit is available on the Avnet Design Resource Center (DRC): http://www.em.avnet.com/spartan6video 1. Getting Started with the Spartan-6 Industrial Video Processing Kit http://www.em.avnet.com/spartan6video Support Files & Downloads 2. Spartan-6 Industrial Video Processing Kit Reference Designs User Guide http://www.em.avnet.com/spartan6video Support Files & Downloads 3. Avnet Spartan-6 LX150T Development Kit Hardware User Guide http://www.em.avnet.com/spartan6lx150t-dev Support Files & Downloads 4. Avnet FMC-IMAGEOV Hardware User Guide http://www.em.avnet.com/fmc-image Support Files & Downloads 5. Avnet FMC-DVI Hardware User Guide http://www.em.avnet.com/fmc-dvi Support Files & Downloads 6. Avnet LCD Interface (ALI) Specification, Version 1.00 http://www.em.avnet.com/spartan6video Support Files & Downloads - 28 -