v8.2 System Generator Audio Quick Start

Slides:



Advertisements
Similar presentations
© 2003 Xilinx, Inc. All Rights Reserved Course Wrap Up DSP Design Flow.
Advertisements

FPGA Configuration. Introduction What is configuration? – Process for loading data into the FPGA Configuration Data Source Configuration Data Source FPGA.
Integrated Circuits Laboratory Faculty of Engineering Digital Design Flow Using Mentor Graphics Tools Presented by: Sameh Assem Ibrahim 16-October-2003.
Section A A Step-By-Step Description of the System Generator Flow For a Colour Space Convertor In this section, a colour image stored as.
Midterm Project Presentation Bandpass Filter on FPGA Student Vitaly Zakharenko Supervisor Mony Orbach Semester Spring 2007 Duration single semester.
1 Performed By: Khaskin Luba Einhorn Raziel Einhorn Raziel Instructor: Rivkin Ina Spring 2004 Spring 2004 Virtex II-Pro Dynamical Test Application Part.
Page 1 Simplifying MSO-based debug of designs with Xilinx FPGAs.
Configurable System-on-Chip: Xilinx EDK
Altera’s Quartus II Installation, usage and tutorials Gopi Tummala Lab/Office Hours : Friday 2:00 PM to.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Implementation of DSP Algorithm on SoC. Mid-Semester Presentation Student : Einat Tevel Supervisor : Isaschar Walter Accompaning engineer : Emilia Burlak.
Foundation and XACTstepTM Software
Digital System Design EEE344 Lecture 1 INTRODUCTION TO THE COURSE
FPGA-Based Systems Design Flow in Action By: Ramtin Raji Kermani.
Time Division Multiplexing School of Physics and Astronomy Department of Particle Physics Elissavet Papadima 29/5/2014.
© 2011 Xilinx, Inc. All Rights Reserved Intro to System Generator This material exempt per Department of Commerce license exception TSU.
© 2011 Xilinx, Inc. All Rights Reserved This material exempt per Department of Commerce license exception TSU Xilinx Tool Flow.
Delevopment Tools Beyond HDL
Tutorial 2: Introduction to ISE 14.6 (revised by khw)
® ChipScope ILA TM Xilinx and Agilent Technologies.
Xilinx Programmable Logic Development Systems Foundation ISE version 3
© Copyright Xilinx 2004 All Rights Reserved 9 November, 2004 XUP Virtex-II Pro Development System.
Simulink ® Interface Course 13 Active-HDL Interfaces.
ISE. Tatjana Petrovic 249/982/22 ISE software tools ISE is Xilinx software design tools that concentrate on delivering you the most productivity available.
© 2003 Xilinx, Inc. All Rights Reserved Reading Reports Xilinx: This module was completely redone. Please translate entire module Some pages are the same.
© 2003 Xilinx, Inc. All Rights Reserved CORE Generator System.
Lecture #3 Page 1 ECE 4110– Sequential Logic Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.No Class Monday, Labor Day Holiday 2.HW#2 assigned.
Digital Radio Receiver Amit Mane System Engineer.
1 WORLD CLASS – through people, technology and dedication High level modem development for Radio Link INF3430/4431 H2013.
ASIC/FPGA design flow. FPGA Design Flow Detailed (RTL) Design Detailed (RTL) Design Ideas (Specifications) Design Ideas (Specifications) Device Programming.
Simulink ® Interface Course 13 Active-HDL Interfaces.
Xilinx and Nexys2 Tutorial Kartik Mohanram Dept. of Electrical and Computer Engineering Rice University, Houston, TX.
Xilinx Development Software Design Flow on Foundation M1.5
Lecture #3 Page 1 ECE 4110– Sequential Logic Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.No Class Monday, Labor Day Holiday 2.HW#2 assigned.
Spring Introduction  Today’s tutorial focuses on introducing you to Xilinx ISE and Modelsim.  These tools are used for Verilog Coding Simulation.
© 2003 Xilinx, Inc. All Rights Reserved For Academic Use Only Xilinx Design Flow FPGA Design Flow Workshop.
1 Introduction to Xilinx ISL8.1i Schematic Capture and VHDL 1.
Sequential Arithmetic ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
1 Introduction to Xilinx ISL8.1i & 11.1 Schematic Capture 1.
Interfaces to External EDA Tools Debussy Denali SWIFT™ Course 12.
Introduction to FPGA Created & Presented By Ali Masoudi For Advanced Digital Communication Lab (ADC-Lab) At Isfahan University Of technology (IUT) Department.
Lab:How to use SSG to build your security solution V1.0 Bob Yi Aug 4, 2008.
© 2011 Xilinx, Inc. All Rights Reserved This material exempt per Department of Commerce license exception TSU DSP Design Flow System Generator for DSP.
This material exempt per Department of Commerce license exception TSU Xilinx Tool Flow.
LAB1 Summary Zhaofeng SJTU.SOME. Embedded Software Tools CPU Logic Design Tools I/O FPGA Memory Logic Design Tools FPGA + Memory + IP + High Speed IO.
Lecture #3 Page 1 ECE 4110–5110 Digital System Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.HW#2 assigned Due.
Programmable Logic Training Course HDL Editor
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU FPGA Design with Xilinx ISE Presenter: Shu-yen Lin Advisor: Prof. An-Yeu Wu 2005/6/6.
Introductory project. Development systems Design Entry –Foundation ISE –Third party tools Mentor Graphics: FPGA Advantage Celoxica: DK Design Suite Design.
Sub-Nyquist Sampling Algorithm Implementation on Flex Rio
Final Presentation Final Presentation OFDM implementation and performance test Performed by: Tomer Ben Oz Ariel Shleifer Guided by: Mony Orbach Duration:
© 2005 Xilinx, Inc. All Rights Reserved This material exempt per Department of Commerce license exception TSU HDL Co-Simulation.
Tools - Design Manager - Chapter 6 slide 1 Version 1.5 FPGA Tools Training Class Design Manager.
This material exempt per Department of Commerce license exception TSU Xilinx On-Chip Debug.
© 2004 Xilinx, Inc. All Rights Reserved Adding a Processor System to an FPGA Design.
© 2003 Xilinx, Inc. All Rights Reserved Course Wrap Up DSP Design Flow.
Teaching Digital Logic courses with Altera Technology
ASIC/FPGA design flow. Design Flow Detailed Design Detailed Design Ideas Design Ideas Device Programming Device Programming Timing Simulation Timing Simulation.
Basic Xilinx Design Capture. © 2006 Xilinx, Inc. All Rights Reserved Basic Xilinx Design Capture After completing this module, you will be able.
How to use ISE Dept. of Info & Comm. Eng. Prof. Jongbok Lee.
Introduction to the FPGA and Labs
Lab 1: Using NIOS II processor for code execution on FPGA
Using Xilinx ChipScope Pro Tools
M1.5 Foundation Tools Xilinx XC9500/XL CPLD
Implementing VHDL Modules onto Atlys Demo Board
Xilinx ChipScope Pro Overview
Course Agenda DSP Design Flow.
AC701 Power Bus Reprogramming
ChipScope Pro Software
ChipScope Pro Software
Presentation transcript:

v8.2 System Generator Audio Quick Start XUP Virtex-II Pro

Agenda Requirements Installation Getting Started Explore Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Prerequisites Understanding of the following topics Digital Logic Design Basics of VHDL or Verilog Digital Signal Processing Knowledge of the following software Mathworks Matlab/Simulink Software ISE Foundation

Required Tools Mathworks Software Matlab and Simulink Release R14.3 or R2006a Signal Processing Blockset Xilinx software (refer to online donation request form at www.xilinx.com/univ) v8.2 System Generator for DSP v8.2 ISE Foundation + latest service pack V8.2 Chipscope-Pro Hardware XUP Virtex-2 Pro Board + Power Supply + USB cable PC with sound card Audio PC cable (connect from headphone jack of PC to Line in of XUP board) Speakers or headphones Board Support Package Files Refer to XUPV2PRO_bsp.ppt in /bsp directory

Agenda Requirements Installation Getting Started Explore Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Installation Procedure Install ISE Foundation Install Chipscope-Pro Install Mathworks Software (Matlab/Simulink + Signal Processing Blockset) Download System Generator and run the executable to install System Generator for DSP Install the board support package files in the SysGen install path (see following slides)

System Generator Installation Double-click on Executable To install  Download to Temporary directory Run through setup

Board Support Package Installation Unzip plugins.zip into plugins directory in System Generator install path (ie. C:\MATLAB701\toolbox\xilinx\sysgen\) This installs BSP files for both JTAG co-simulation and standalone audio Refer to XUPV2PRO_bsp.ppt for more information Unzip plugins.zip from distribution in System Generator install path

Agenda Requirements Software Installation Getting Started Explore Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Open Audio Design Refer to Matlab Help for more information  Browse to \design directory Double-click on audio.mdl to open Simulink model Refer to Matlab Help for more information

audio.mdl (do not change file name) Audio Design Overview audio.mdl (do not change file name) SysGen token controls simulations & Implementations User design (reverb example) 16 KHz Mono wave File input source 16 KHz processed Audio output Don’t change the names on The gateway in/out blocks (see XUPV2PRO_bsp.ppt in /bsp directory)

User Design Reverb Example Select user design In hierarchy Reverb algorithm Consists of adders And delays

Agenda Requirements Installation Getting Started Three Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Three Use Models Simulate a System Generator design in Simulink Hardware-in-the-Loop Quickly test design in hardware using the JTAG connection on the XUP board Full Deployment Standalone design that will operate with Audio CODEC on the XUP board

Agenda Requirements Installation Getting Started Three Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Simulink Simulation Simulate the algorithm and verify operation Simulate design (reverb) in Simulink using yabu_sample_16_mono.wav audio input file Double-click audio.wav in project directory and listen to processed output on PC speakers

Simulink System Period Double-Click on the System Generator Token Set to 41.66 ns (24 MHz) clock rate. Set to Tsysclk*1500 (16KHz), where Tsysclk is set to 1/24MHz in Matlab workspace. Refer to XUPV2P_bsp.ppt in /bsp directory for more information

Simulate Design Set the simulation (simulation  Configuration Options) start/stop time to capture 80456 audio samples (size of input wave file) Listen to audio.wav after simulation is complete Start the simulation

Agenda Requirements Installation Getting Started Explore Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Hardware-in-the-Loop Quickly verify algorithm in FPGA by establishing communication between Simulink and target board Select JTAG co-simulation board support package via the System Generator token Click “Generate” in System Generator token to create a new JTAG co-simulation Simulink block representing implemented design System Generator generates HDL from design and adds JTAG interface circuitry System Generator invokes ISE to create bitstream System Generator generates a hardware block that represents FPGA hardware model of design Connect hardware block in design and simulate in Simulink Bitstream is downloaded to FPGA via JTAG download cable Simulink transmits sample to FPGA for processing via Simulink sources FPGA transmits processed signals to Simulink User can view processed samples using available Simulink sinks

JTAG Co-Simulation Block Generate Hardware JTAG Co-Simulation Block Select XUPV2PRO JTAG co-simulation BSP  Double-click SysGen token Select target directory JTAG co-sim Block generated Set system rate to 16 KHz Click Generate button FPGA implementation may take several minutes

See audio_hwcosim.mdl for solution Complete Design See audio_hwcosim.mdl for solution Double-click on HW co-sim block and set download cable to Platform USB Add and connect HW Co-sim block to the design Wave file called audio_jtagcosim.wav in completed example

Perform JTAG Co-Simulation Board should be Connected and Powered Up Set the simulation (simulation  Configuration Options) start/stop time to capture 8046 audio samples (size of input audio wave file) Start the simulation Listen to audio_jtagcosim.wav after simulation is complete

Agenda Requirements Installation Getting Started Explore Use Models Simulink Simulation Hardware-in-the-loop Verification Full Deployment Appendix

Full Deployment Implement an algorithm in hardware that includes the interface to the Audio CODEC on the XUP board Select the audio board support package via the System Generator token Enter the correct Simulink System Period to enable a 24MHz clock rate Specify the target directory Click generate in token to generate the bitstream that configures the FPGA System Generator generates HDL from design System Generator synthesizes HDL to generate .ngc netlist System Generator merges design NGC with Wrapper NGC during translate phase of implementation System Generator generates standalone bitstream User downloads bitstream to FPGA and verifies operation Connect download cable and power up board Connect audio cable between PC sound card headphone jack and line-in jack on XUP board Connect speakers to amp out jack of XUP board Invoke impact and configure FPGA Play audio wave file and listen to processed audio output If operation not successful, use Chipscope-Pro to debug interface

Generate Bitstream Standalone Hardware  Select the XUP V2PRO Bitstream SysGen generates HDL and automatically invokes ISE tools to generate bitstream  Select target directory FPGA clock must correspond to DCM output frequency in Top-level wrapper ISE status information displayed Set the simulink system period to 1/24MHz Click Generate to generate bitstream

Sample Rates Ignore warning message System Generator design data Rate is 16KHz, but clocked at 24MHz in hardware Refer to XUPV2P_bsp.ppt in /bsp directory for more information

iMPACT Programmer Provided with ISE Foundation Configure FPGA iMPACT Programmer Provided with ISE Foundation Connect cables (audio, headphones, standard USB cable for configuration, power) Power up board Invoke standalone IMPACT programmer and configure FPGA Start  Programs  Xilinx ISE 8.2i  Accessories  iMPACT Refer to ISE Software Manuals at www.xilinx.com/support Listen to processed audio generated from XUP Virtex-II Pro board

Chipscope-Pro Chipscope-Pro Cores have been inserted in the wrapper Useful for verifying on-chip operation Chipscope-Pro Cores have been inserted in the wrapper ILA (integrated logic analyzer) cores are connected to the AC97 controller Captures signals using internal FPGA Block Memory ICON core connects ILA cores to internal FPGA JTAG circuitry Trigger conditions and captured signals are communicated via JTAG Chipscope Analyzer software Download bitstream via JTAG Set trigger conditions and view captured results Refer to /chipscope directory for more information

Analyzing the Implemented Results Appendix B Analyzing the Implemented Results

Analyzing the Implemented Design Useful to review various report files to debug warning and error messages Design has removed due to load-less nets Design does not fit into device Design does not meet timing Etc. System Generator must inform ISE software how fast design needs to run System Generator generates an XCF (XST constraints file) that contains timing information

See xflow_results in target directory Warnings and Errors See xflow_results in target directory System Generator .NGC netlist file Contains timing constraints generated from SysGen Top-level wrapper constraints Merged netlist containing wrapper file And SysGen design

Design Size What if design is too big for the target device? Analyze FPGA resource utilization Refer to the map report <design> .mrp generated in the xflow directory Additional information

Design Timing What if my design does not meet timing? Analyze global clock signals Refer to the place & route report <design> .par generated in the xflow directory Analyze global timing results

Timing Analysis How can I view detailed timing information? Start  Programs  Xilinx ISE  Accessories  Timing Analyzer Timing Constraint Detailed path information from Source to destination

Where are the design Constraints? System Generator generates a pre-synthesis constraints file (XCF) with timing constraints Period Constraint ( specified by user according to DCM clock output frequency in wrapper) Multicycle Path Constraints if design has multiple rates Full deployment BSP includes UCF Period Constraint for system clock (100 MHz on XUP board) Pin location constraints Constraints from both files are merged into PCF (physical constraints file) during implementation Detailed information on timing constraints can be found in the online software manuals www.xilinx.com/support

User Constraints File The BSP contains pin locations and timing constraints for the XUP board System Clock location on XUP board Clock period constraint Pin locations of AC97 CODEC interface signals

XST Constraints File The XCF file contains timing constraints as specified in the System Generator Design FPGA clock period specified in System Generator Token (corresponds to DCM output clock frequency in wrapper file)