DSP Development Kit, Stratix III Edition Getting Started User Guide

Similar documents
Cyclone III Development Kit User Guide

DSP Development Kit, Stratix II Edition Getting Started User Guide

Arria GX Development Kit Getting Started User Guide

DSP Development Kit, Stratix & Stratix Professional Edition Getting Started User Guide

PCI Express Development Kit, Stratix II GX Edition Getting Started User Guide

Cyclone III FPGA Starter Kit User Guide

MAX V CPLD Development Kit User Guide

Using MicroC/OS-II RTOS with the Nios II Processor Tutorial Preliminary Information

Video Input Daughter Card Reference Manual

MasterBlaster Serial/USB Communications Cable User Guide

DSP Builder Handbook Volume 1: Introduction to DSP Builder

Clock Control Block (ALTCLKCTRL) Megafunction User Guide

Nios II Development Kit Getting Started User Guide

Floating Point Inverse (ALTFP_INV) Megafunction User Guide

altshift_taps Megafunction User Guide

DSP Builder Handbook Volume 1: Introduction to DSP Builder

Avalon Streaming Interface Specification

Transceiver Signal Integrity Development Kit, Stratix IV GT Edition User Guide

My First FPGA Design Tutorial

Floating Point Multiplier (ALTFP_MULT) Megafunction User Guide

USB BitJetLite Download Cable

Memory-Based Multiplier (ALTMEMMULT) Megafunction User Guide

DSP Development Kit, Stratix II Edition

CoreCommander. User Guide. System Level Solutions, Inc. (USA) Murphy Avenue San Martin, CA (408)

Floating Point Square Root (ALTFP_SQRT) Megafunction User Guide

lpm_compare Megafunction User Guide

Exercise 1 In this exercise you will review the DSSS modem design using the Quartus II software.

Floating Point Compare. Megafunction User Guide (ALTFP_COMPARE) 101 Innovation Drive San Jose, CA

SERDES Transmitter/Receiver (ALTLVDS) Megafunction User Guide

Remote Drive. Quick Start Guide. System Level Solutions, Inc. (USA) Murphy Avenue San Martin, CA (408) Version : 0.1.

Using the Serial FlashLoader With the Quartus II Software

ByteBlaster II Download Cable User Guide

DSP Builder Release Notes and Errata

PCI High-Speed Development Kit, Stratix Professional Edition

Floating Point Square Root (ALTFP_SQRT) Megafunction User Guide

Supporting Custom Boards with DSP Builder

lpm_rom Megafunction User Guide

altmult_accum Megafunction User Guide

Board Update Portal based on Nios II Processor with EPCQ (Arria 10 GX FPGA Development Kit)

Using the Nios Development Board Configuration Controller Reference Designs

Nios Development Kit, Stratix Edition

Quartus. Installation & Licensing for Windows. Version 7.0. Altera Corporation 101 Innovation Drive San Jose, CA (408)

DSP Builder Release Notes

lpm_shiftreg Megafunction

RAM-Based Shift Register (ALTSHIFT_TAPS) IP Core User Guide

FFT MegaCore Function User Guide

Cyclone Device Handbook, Volume 2

DSP Builder Release Notes and Errata

Color Space Converter

Arria 10 FPGA Development Kit User Guide

Error Correction Code (ALTECC_ENCODER and ALTECC_DECODER) Megafunctions User Guide

Nios Soft Core. Development Board User s Guide. Altera Corporation 101 Innovation Drive San Jose, CA (408)

Nios Embedded Processor Development Board

Nios II Embedded Design Suite 6.1 Release Notes

DDR and DDR2 SDRAM Controller Compiler User Guide

ByteBlaster II Download Cable User Guide

Debugging Nios II Systems with the SignalTap II Logic Analyzer

CHAPTER 1 Introduction of the tnano Board CHAPTER 2 tnano Board Architecture CHAPTER 3 Using the tnano Board... 8

DDR & DDR2 SDRAM Controller Compiler

DSP Design Flow User Guide

DSP Builder Release Notes and Errata

UTOPIA Level 2 Slave MegaCore Function

DDR & DDR2 SDRAM Controller

Introduction to the Altera SOPC Builder Using Verilog Design

Nios II Custom Instruction User Guide Preliminary Information

DDR & DDR2 SDRAM Controller Compiler

DSP Builder. DSP Builder v6.1 Issues. Error When Directory Pathname is a Network UNC Path

ByteBlaster II Parallel Port Download Cable

Simple Excalibur System

University Program 3 Kit

For Quartus II Software. This Quick Start Guide will show you how to set up a Quartus

Introduction to the Altera SOPC Builder Using Verilog Designs. 1 Introduction

DDR & DDR2 SDRAM Controller

lpm_mult Megafunction User Guide

DDR & DDR2 SDRAM Controller Compiler

LED Matrix Board. Reference Manual. System Level Solutions, Inc. (USA) Murphy Avenue San Martin, CA (408)

Arria 10 FPGA Development Kit User Guide

NIOS II Processor Booting Methods In MAX 10 Devices

MAX II/MAX IIZ Development Board

Excalibur Solutions DPRAM Reference Design

24K FFT for 3GPP LTE RACH Detection

Using the Serial FlashLoader with the Quartus II Software

MAX 10 User Flash Memory User Guide

Arria 10 SoC Development Kit User Guide

Table 1 shows the issues that affect the FIR Compiler v7.1.

SignalTap II with Verilog Designs. 1 Introduction. For Quartus II 13.1

PCI Express Compiler. System Requirements. New Features & Enhancements

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 7: VHDL and DE2 Board. Name: Date:

FPGAs Provide Reconfigurable DSP Solutions

System-on-a-Programmable-Chip (SOPC) Development Board

AN 547: Putting the MAX II CPLD in Hibernation Mode to Achieve Zero Standby Current

System Console User Guide

AN 370: Using the Serial FlashLoader with the Quartus II Software

Quartus. Installation & Licensing for PCs. Version 6.0. Altera Corporation 101 Innovation Drive San Jose, CA (408)

FIR Compiler MegaCore Function User Guide

Altera Double Data Rate Megafunctions

Nios II Embedded Design Suite 7.1 Release Notes

Design Verification Using the SignalTap II Embedded

Cyclone III FPGA Starter Board Reference Manual

Practical Hardware Debugging: Quick Notes On How to Simulate Altera s Nios II Multiprocessor Systems Using Mentor Graphics ModelSim

Transcription:

DSP Development Kit, Stratix III Edition Getting Started User Guide 101 Innovation Drive San Jose, CA 95134 www.altera.com Document Version: 1.1 Document Date: August 2008 P25-36268-01

Copyright 2008 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device designations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Altera products are protected under numerous U.S. and foreign patents and pending applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services. UG-01040-1.1

Contents Chapter 1. About This Kit Introduction............................................................................ 1 1 Kit Features............................................................................ 1 1 Chapter 2. Getting Started Introduction............................................................................ 2 1 Before You Begin........................................................................ 2 1 Check the Kit Contents................................................................ 2 1 Inspect the Board..................................................................... 2 2 Hardware Requirements............................................................... 2 2 Software Requirements................................................................ 2 3 References.............................................................................. 2 3 Chapter 3. Software Installation Introduction............................................................................ 3 1 Installing the DSP Development Kit CD-ROM............................................... 3 1 Installing the Altera Complete Design Suite DVD............................................ 3 2 Installing MathWorks MATLAB/Simulink CD-ROM........................................ 3 3 Installing the USB Blaster Driver.......................................................... 3 3 Licensing Considerations................................................................. 3 4 Chapter 4. DSP Development Kit Hardware Setup Introduction............................................................................ 4 1 Requirements........................................................................... 4 1 Powering up the Board................................................................... 4 1 Configuring the FPGA................................................................... 4 6 Chapter 5. Factory Designs Understanding the Factory Design......................................................... 5 1 Exercising the A/D and D/A Converter Performance Test.................................... 5 2 Configuring the Board................................................................... 5 2 Collecting Data Using the SignalTap II Logic Analyzer....................................... 5 3 Analyzing the Data in the MATLAB Software............................................... 5 4 Conclusion............................................................................. 5 6 Appendix A. Programming the Flash Device Overview............................................................................. A 1 Creating a Flash File.................................................................... A 1 Parallel Flash Loader Instantiation........................................................ A 3 Programming the Flash Device........................................................... A 3 Restoring the Factory Design to the Flash Device........................................... A 5 Additional Information Revision History................................................................... About 1 How to Contact Altera.............................................................. About 1 Typographic Conventions........................................................... About 2 August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

iv Contents DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

1. About This Kit Introduction Kit Features Welcome to the Altera DSP Development Kit, Stratix III Edition. This kit provides a platform for experimenting with Digital Signal Processing using Altera s design environment and intellectual property. Included are a Data Conversion High-Speed Mezzanine Card (HSMC), a full-featured field-programmable gate array (FPGA) development board, hardware and software development tools, documentation, and accessories needed to begin DSP development. The DSP Development Kit, Stratix III Edition, contains: A Data Conversion HSMC a prototyping platform that allows you to develop high-performance digital signal processing (DSP) designs. Key features of the Data Conversion HSMC include two high-speed analog-to-digital (A/D) converters, a dual digital-to-analog (D/A) converter, and a Stereo Audio coder/decoder (CODEC). f For detailed information about the components and interfaces included on the Data Conversion HSMC, and about their locations on the board, refer to the Data Conversion HSMC Reference Manual. A Stratix III Development Board a hardware platform with integrated USB-Blaster and EP3SL150 FPGA to support the Data Conversion HSMC. The board also provides power for the Data Conversion HSMC. f For information about setting up and powering up the Stratix III development board, refer to the Stratix III Development Kit User Guide. For detailed information about the components and interfaces included on the Stratix III development board, and about their locations on the board, refer to the Stratix III Development Board Reference Manual. Quartus II Software, Development Kit Edition (DKE) The Quartus II software (available on the DVD) integrates in nearly any design environment, with interfaces to industry-standard EDA tools. The kit includes: Quartus II DKE Software with limited license MegaCore IP Library Nios II Embedded Design Suite ModelSim Altera Edition DSP Builder August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

1 2 Chapter 1: About This Kit Kit Features 1 The Quartus II DKE Software license allows you to use the product for 12 months. After 12 months, you must purchase a renewal subscription to continue using the software. For more information, refer to the Altera website at www.altera.com. DSP Development Kit, Stratix III Edition CD-ROM This CD-ROM includes several designs for exercising the Data Conversion HSMC. In addition, the following documentation is included: Design files for the boards included in the kit Data Conversion HSMC Reference Manual Stratix III Development Board Reference Manual MathWorks MATLAB and Simulink CD-ROM This CD-ROM contains third-party tools that are used in conjunction with DSP Builder as part of Altera s DSP development flow. MATLAB is a high-level technical computing language environment for algorithm development, data visualization, data analysis, and numerical computation. Simulink provides an interactive graphical environment and a customizable set of block libraries that let you accurately design, simulate, implement, and test signal processing systems. 1 A 30-day license for MATLAB/Simulink is included as part of the DSP Development Kit, Stratix III Edition. To obtain the personal license password and for more information, visit MathWorks at www.mathworks.com/products/connections/trials/altera.shtml DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

2. Getting Started Introduction f This user guide familiarizes you with the contents of the kit and guides you through the DSP Development Kit, Stratix III Edition setup. Using this guide, you can do the following: Inspect the contents of the kit Install the Altera Development Suite Tools Set up licensing Install the DSP Development Kit, Stratix III Edition CD-ROM Set up, power up, and verify correct operation of the kit hardware Configure the Stratix III FPGA Find and use the tutorials Set up and run included application examples and demonstrations For complete details about the development board, refer to the Stratix III Development Board Reference Manual. For complete details about the Data Conversion HSMC, refer to the Data Conversion HSMC Reference Manual. Before You Begin Check the Kit Contents Before using the kit or installing the software, check the kit contents and inspect the board to verify that you received all of the items listed in this section. If any of the items are missing, contact Altera before you proceed. The DSP Development Kit, Stratix III Edition contains the following items: Data Conversion High Speed Mezzanine Card (HSMC) Stratix III development board with an EP3SL150F1152C2N Stratix III device Altera Complete Design Suite DVD containing: Quartus II Software MegaCore IP Library Nios II Embedded Software Design Tools ModelSim-Altera Web Edition simulation package DSP Builder August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

2 2 Chapter 2: Getting Started Before You Begin Inspect the Board DSP Development Kit, Stratix III Edition CD-ROM, which includes: Reference designs for DSP application Design examples Data Conversion HSMC Reference Manual Stratix III Development Board Reference Manual DSP Development Kit, Stratix III Edition Getting Started User Guide (this document) Device data sheets and tutorials Schematic and board design files MathWorks MATLAB and Simulink CD-ROM SLP-50 anti-aliasing filter from Mini-Circuits SMA cables for interconnecting the devices on board USB cable for downloading designs Power supply and adapters for North America, Europe, the United Kingdom, and Japan Place the board on an anti-static surface and inspect it to ensure that it has not been damaged during shipment. c Without proper anti-static handling, the Stratix III development board can be damaged. Verify that all components are on the board and appear intact. 1 In typical applications with the Stratix III development board, a heatsink is not necessary. However, under extreme conditions the board may require additional cooling to stay within operating temperature guidelines. You may wish to perform power consumption and thermal modeling to determine whether your application requires additional cooling. f For more information about power consumption and thermal modeling, refer to AN 358: Thermal Management for FPGAs. Hardware Requirements The Quartus II software has some minimum system requirements. Otherwise, the Stratix III development kit provides all of the hardware needed to use the board. f For Quartus II requirements, refer to the Quartus II Installation & Licensing for Windows Manual. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 2: Getting Started 2 3 References Software Requirements This kit requires the following software: Windows XP operating system. Quartus II software (as provided with the kit or subsequent version downloaded from the Altera website). MathWorks MATLAB and Simulink DSP system design and modeling tools provided on the MathWorks MATLAB and Simulink Evaluation CD-ROM. This software is required to create hardware description language (HDL) designs that use blocks from DSP Builder. f Refer to the Quartus II Installation & Licensing for Windows Manual for further information on the Quartus II system software requirements, especially heeding the following: A web browser, Microsoft Internet Explorer version 5.0 or later or Firefox version 2.0 or later. You must have a web browser to register the Quartus II software and request license files. Refer to Licensing Considerations on page 3 4. Version 2.0 or later of the.net framework. 1 If you receive an Application Error message when launching the demo application, install version 2.0 or later versions of the.net framework. Some Windows versions do not have runtime DLL for the.net application. The.NET framework application can be downloaded from the following location: www.microsoft.com/download. References For other related information, refer to the following websites: For additional HSMCs available for purchase: www.altera.com/products/devkits/kit-daughter_boards.jsp For the Stratix III device documentation: www.altera.com/literature/lit-stx3.jsp For the Stratix III reference designs: www.altera.com/products/devices/stratix-fpgas/stratix-iii/st3-index.jsp For estore if you want to purchase devices: www.altera.com/buy/devices/buy-devices.html For Stratix III OrCAD symbols: www.altera.com/support/software/download/pcb/pcb-pcb_index.html For Stratix III Filter Lab: Search for filter lab on www.altera.com and look for Stratix III Filter Lab. For Nios II 32-bit embedded processor solutions: www.altera.com/technology/embedded/emb-index.html August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

2 4 Chapter 2: Getting Started References DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

3. Software Installation Introduction The instructions in this section explain how to install the following: DSP Development Kit, Stratix III Edition CD-ROM Altera Complete Design Suite DVD, including: Quartus II DKE Software MegaCore IP Library Nios II Embedded Design Suite ModelSim-Altera Edition DSP Builder MathWorks MATLAB and Simulink Software CD-ROM 1 Before starting the installation, verify that you have complied with the conditions described in Software Requirements on page 2 3. Installing the DSP Development Kit CD-ROM The DSP Development Kit, Stratix III Edition CD-ROM contains the following items: Reference designs for DSP application Design examples Data Conversion HSMC Reference Manual Stratix III Development Board Reference Manual DSP Development Kit, Stratix III Edition Getting Started User Guide (this document) Device data sheets and tutorials Schematic and board design files To install the Stratix III Development Kit CD-ROM, perform the following steps: 1. Insert the Stratix III Development Kit CD-ROM into the CD-ROM drive. 1 The CD-ROM should start an auto-install process. If it does not, browse to the CD-ROM drive and double-click on the setup.exe file. 2. Follow the on-screen instructions to complete the installation process. The installation program copies the DSP Development Kit, Stratix III Edition files to the computer hard disk and creates a Programs > Altera > DSP Development Kit, Stratix III Edition <version#> Windows Start menu shortcut. Use this shortcut to launch the development kit graphical user interface (GUI). August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

3 2 Chapter 3: Software Installation Installing the Altera Complete Design Suite DVD When the installation is complete, the DSP Development kit, Stratix III Edition installation program creates the directory structure shown in Figure 3 1, where <path> is the DSP Development Kit, Stratix III Edition installation directory. Figure 3 1. DSP Development Kit, Stratix III Edition Installed Directory Structure <path> The default Windows installation directory is C:\altera\<version#>\kits. stratixiii_3sl150_dsp board_design_files demos documents examples factory_recovery Table 3 1 lists the file directory names and a description of their contents. The default Windows installation directory is C:\altera\<version#>\kits. Table 3 1. Installed Directory Contents Directory Name board_design_files demos documents examples factory_recovery Description of Contents Contains schematic, layout, assembly, and bill of material board design files. Use these files as a starting point for a new prototype board design. Contains unsupported demonstration files for various use with the development board and/or HSMC. Contains the development kit documentation. Contains the sample design files for the DSP Development Kit, Stratix III Edition. Contains programming files for use with the development kit board to return it back into the factory default status. Installing the Altera Complete Design Suite DVD The Quartus II software is the primary FPGA development tool used, along with the MATLAB software, to create the reference designs used in this development kit. Additionally, you may want to install the Nios II Embedded Design Suite found in the Altera Complete Design Suite DVD. The Nios II soft-core embedded processor runs on Altera FPGAs. Some of the reference designs included in this development kit use the Nios II processor. To install the Quartus II software, perform the following steps: 1. Insert the Altera Complete Design Suite DVD into the DVD drive. 2. Click Install subscription package on the startup screen. Follow the on-screen instructions and accept all default settings. 3. Next, you can install the DSP Builder software by clicking the Install button for the software, which is located in the Install additional software section on the startup screen. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 3: Software Installation 3 3 Installing MathWorks MATLAB/Simulink CD-ROM 1 If you plan to use the DSP Builder, install the MathWorks MATLAB and Simulink CD-ROM first. Also, because the MathWorks software trial licence is valid only for 30 days, only install the MathWorks MATLAB/Simulink CD-ROM when you are ready to use the DSP Builder, the Simulink software for DSP development, or the factory designs in Chapter 5, Factory Designs. 4. After installing the DSP Builder software, request and install a license to enable it. f For information about obtaining a license file, refer to Licensing Considerations on page 3 4. Installing MathWorks MATLAB/Simulink CD-ROM To install MathWorks software, perform the following steps: 1. Before installing, make sure that you have your Personal License Password (PLP) available. To obtain the 30-day evaluation license and for more information, visit MathWorks at www.mathworks.com/products/connections/trials/altera.shtml. 2. If it is running, close the MATLAB/Simulink software. 3. Insert MathWorks MATLAB and Simulink CD-ROM. The MathWorks Installer automatically starts, displaying the Welcome to The MathWorks Installer dialog box. 4. In the dialog box, choose Install and click Next. 5. Enter your name, company name, and PLP in the License Information dialog box and click Next. 6. Review the software licensing agreement. If you agree with the terms, turn on Yes and click Next. 7. Select Typical or Custom installation (for any user-specific selections) and click Next. 8. Click Install. 9. Click Finish. Installing the USB Blaster Driver The Stratix III development board includes integrated USB-Blaster circuitry for FPGA programming. However, for the host computer and development board to communicate, you must install the USB-Blaster driver on the host computer. To download the USB-Blaster driver, go to the Altera support site at www.altera.com/support/software/drivers/dri-index.html. To install it, go to www.altera.com/support/software/drivers/usb-blaster/dri-usbblaster-xp.html. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

3 4 Chapter 3: Software Installation Licensing Considerations Licensing Considerations Before using the Quartus II software and DSP Builder, you must request a license file from the Altera website at www.altera.com/licensing and install it on your computer. When you request a license file, Altera emails you a license.dat file that enables the software. To obtain a license, perform the following steps: 1 If you already have a Fixed PC or FloatNet Quartus II subscription, you can use that software instead of the Quartus II DKE software. However, you may still need to follow these instructions to obtain a license for the DSP Builder software if you do not already have one. 1. Go to the Altera website at www.altera.com/support/licensing/lic-choose.html. 2. Under Development Kit Licenses Request, click Licenses for RoHS-Compliant Kits. 3. Follow the on-screen instructions to request your license. You will receive a license file through email. 4. Before installing your license, close the following software if it is running on your computer: Quartus II software MAX+PLUS II software LeonardoSpectrum synthesis tool Synplify software ModelSim simulator Precision RTL Synthesis Software 5. To install your license, refer to the Specifying the License File section in Quartus II Installation & Licensing for Windows Manual, which is included with the kit. 1 You will also receive a time-limited license for the DSP Builder software. This license is a perpetual license with free software upgrades for the first 180 days. After 180 days, you must purchase a renewal subscription for access to future software upgrades. For more information, refer to the Altera website at www.altera.com. 1 You need your network identification card (NIC) ID and the kit serial number to license the Quartus II software. Your network interface card (NIC) ID is a 12-character hexadecimal number that uniquely identifies your computer. You can find the NIC ID for your card by typing ipconfig/all at a command prompt. Your NIC ID is the number on the physical address line. The kit serial number is an 11-digit code of the form 3S150SPXXXX where the Xs represent decimal numbers. This serial number is located on the development kit box. Refer to the serial number sticker in Figure 3 2. The serial number is the bottom-most number, which is 3S150SPXXXX in the example shown. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 3: Software Installation 3 5 Licensing Considerations Figure 3 2. Serial Number Example August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

3 6 Chapter 3: Software Installation Licensing Considerations DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

4. DSP Development Kit Hardware Setup Introduction The instructions in this chapter explain how to attach the Data Conversion HSMC to the Stratix III development board and configure the FPGA. Requirements Before starting the installation, verify that you have complied with the conditions described in Hardware Requirements on page 2 2 and have completed the following requirements: Quartus II software installed on the host computer USB-Blaster driver software installed on the host computer. 1 The Stratix III development board includes integrated USB-Blaster circuitry for FPGA programming. Host computer and development board cannot communicate without the USB-Blaster driver software installed. For installation information, refer to Installing the USB Blaster Driver on page 3 3. Powering up the Board Figure 4 1 shows the Stratix III development board and its components. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

4 2 Chapter 4: DSP Development Kit Hardware Setup Powering up the Board Figure 4 1. Stratix III Development Board Layout and Components HSMC Port B TX/RX Activity LEDs (D2, D3) QDR II + SRAM (U15) (Behind the LCD Screen) Speaker Header (J1) 24-MHz Crystal (Y4) Flash Memory Device (U9) JTAG Control DIP Switch (SW1) Stratix III FPGA (U22) MAX II CPLD (U5) 125-MHz MAX II Clock (Y1) JTAG Select Device Select Jumper (J3) Type B USB Jumper (J2) Connector (J5) 24-MHz Crystal (Y2) 6-MHz Crystal (Y3) DDR2 SDRAM (U17, U20) HSMC Port B (J8) HSMC Port B Present LED (D10) MSEL 0 to GND Jumper (J13) HSMC Port A TX/RX Activity LEDs (D11, D12) HSMC Port A (J18) MAX II Control DIP Switch (SW2) Ethernet PHY LEDs (D6, D7, D8) and Duplex LED D9 PGM Config Select Rotary Switch (SW3) RJ-45 Ethernet Connector (J14) Ethernet PHY TX/RX Activity LEDs (D14, D15) Clock In/Out SMAs (J16, J17) Factory Configuration Push Button (S1) Power Switch (SW4) HSMC Port A Present LED (D17) Power Display (U27) Power LED (D16) DC Power Jack (J21) User Display (U28) User DIP Switch (SW5) User Push Buttons (S2 through S5) Power Select Rotary Switch (SW6) DDR2 SDRAM DIMM Connector (J19) Configuration Done LED (D32) CPU Reset Push button (S6) Reset Configuration Board Specific LEDs Push Button (S7) (D33-D36) User LEDs (D20 through D27) Figure 4 2 shows the Data Conversion HSMC card layout and components. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 4: DSP Development Kit Hardware Setup 4 3 Powering up the Board Figure 4 2. Data Conversion HSMC Card Layout and Components Ext. Clock ln n (J30) Ext. Clock ln p (J26) A/D Converter Channel A (U1) Channel B (U2) A/D Converter Input Channel A (J4) Channel B (J8) Differential to LVDS Multiplexer (U9, U10, U11, U12, U13) I2C Serial EEPROM (U14) LVDS Driver (U15) Line ln (J19) MIC Connecter (J42) Headphone (J21) LVDS Receiver (U4) Line Out (J20) Ext. Clock Out n (J28) Ext. Clock Out p (J25) Audio CODEC Converter D/A Converter Channel A and Channel B (U3) D/A Converter Output Channel A (J12) Channel B (J14) August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

4 4 Chapter 4: DSP Development Kit Hardware Setup Powering up the Board Figure 4 3 shows the Data Conversion HSMC card connected to the Stratix III development board. Figure 4 3. Data Conversion HSMC Card Connection to the Stratix III Development Board Stratix III development board featuring: Stratix III EP3SL1501152 FPGA DDR2 SDRAM QDR II SRAM PSRAM Flash 10/100/1000 Ethernet Graphics and character LCD display Two HSMC expansion connectors Audio 2-Channel 14-bit 250 MS/s DAC DAC outputs Audio CODEC External clock out Line out Headphones Mic Line in ADC inputs 2-Channel 14-bit 150 MS/s ADC External clock in Featured Altera device: Stratix III EP3SL150 FPGA Data Conversion HSMC We recommend that the standoffs be installed in order to hold the two boards at the proper heights. The shorter standoffs should be installed in the four corners of the Stratix III Development Board. Two of the longer standoffs should be installed in the mounting holes near the audio connectors on the Data Conversion HSMC. This arrangement minimizes the stress on the HSM connector. Before powering up, prepare the board as follows: 1. If other cards are plugged into the HSMC ports, remove them (Figure 4 3 shows a HSMC plugged into Port A). 2. Ensure that the POWER switch SW4 is in the OFF (or DOWN) position. Refer to Figure 4 1 for the location of this switch. 3. Configure the 8-position SW2 DIP switch to the default settings in Table 4 1. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 4: DSP Development Kit Hardware Setup 4 5 Powering up the Board Table 4 1. Switch SW2 Settings Switch Name Position 0 Position 1 Default Position 1 mw/ma mw ma 0 2 V/W V W 1 3 RSV0 MAX_RESERVE0 X 4 RSV1 MAX_RESERVE1 X 5 MAX0 PFL Disable PFL Enable 1 6 MAX1 MAX_DIP1 X 7 MAX2 MAX_DIP2 X 8 MAX3 MAX_DIP3 X Note to Table 4 1: (1) X = don t care 4. Ensure that the 4-position SW1 mini-dip switches and the two jumpers are set to the default positions shown in Table 4 2. Table 4 2. Initial Switch and Jump Settings 5. Ensure that the J13 MSEL0 GND jumper is ON. 6. Verify that the PGM CONFIG SELECT rotary switch SW3 is set to 0. On power up, the development board uses a preloaded configuration to demonstrate that the board is operating correctly. 7. Connect the Data Conversion HSMC to HSMC Port A. 8. Verify the jumper configuration on the Data Conversion HSMC is set to the following default settings: J2 ADC_A POWER DOWN removed J3 ADC_A CK SEL jumpers on pins 1-3 and 4-6 J6 ADC_B POWER DOWN removed J7 ADC_B CK SEL jumpers on pins 1-3 and 4-6 J10 DAC GSET removed J11 DAC MODE removed J13 DAC SLEEP removed Function DEV_SEL-J2 JTAG_SEL-J3 SW1.1 SW1.2 SW1.3 SW1.4 ON ON ON OFF OFF OFF J15 DAC_A CLK SEL jumpers on pins 1-3 and 4-6 J17 DAC_B CLK SEL jumpers on pins 1-3 and 4-6 J23 CLK OUT SEL jumpers on pins 1-3 and 2-4 9. Set the user dip switches on the Stratix III Development Board with switch 2 closed and all the other switches open. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

4 6 Chapter 4: DSP Development Kit Hardware Setup Configuring the FPGA Power up the development board by performing the following steps: 1. Connect the 16-V DC adapter to the development board and to a power source. w Use only the supplied 16-V power supply. Power regulation circuitry on the board could be damaged by supplies greater than 16 V. 2. Slide the POWER switch to ON. The nearby blue POWER light-emitting diode (LED) lights up. 3. Confirm that user LEDs 0-7 flash in a scrolling, side-to-side pattern. For customized configurations, the pattern depends on the application. 1 For information about custom configurations, refer to Programming the Flash Device on page A 3. Configuring the FPGA Before configuring the FPGA, ensure that the Quartus II software and the USB-Blaster driver software are installed on the host computer and the development board is powered on. 1 For USB-Blaster driver installation information, refer to Installing the USB Blaster Driver on page 3 3. To configure the Stratix III FPGA, perform the following steps: 1. Connect the USB cable to the development board USB port. 2. Cycle the POWER switch OFF then ON. 3. Start the Quartus II software. 4. On the the File menu, click Open Project, browse to <path>\examples\stratixiii_3sl150_dsp_example_cha, and select stratixiii_3sl150_dsp_factory_design.qpf. 5. Click Open to open the project. 6. On the Tools menu, click Programmer. The Quartus II Programmer appears. 7. Click Add File and select <path>\examples\ stratixiii_3sl150_dsp_example_cha\ stratixiii_3sl150_dsp_factory_design_top.sof. 8. Turn on the Program/Configure option for the added file. 9. Click Start to download the selected file to the FPGA. The FPGA is configured when the progress bar reaches 100%. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

5. Factory Designs Understanding the Factory Design In the factory design, two sine waves are generated by two instances of the Altera numerically controlled oscillator (NCO) MegaCore. One of these oscillators is running at 10 times the frequency of the other, but both of them have the same amplitude, each covering 13 bits of dynamic range. The two sine waves output from these blocks are converted from two s complement binary to unsigned binary format. They are then added together. This combined sine wave signal of 14-bits dynamic range is sent to a 14-bit D/A converter. The analog output of a D/A converter is connected, by means of the included SMA cable, with the analog input of a 14-bit A/D converter. The A/D converter s digital output is looped back to the Stratix III device. The A/D is configured by the dip switches to deliver the data in unsigned format. The converted loopback data is captured by an instance of the SignalTap II logic analyzer in the design for display and analysis. Figure 5 1 shows a high-level view of the factory design and how it interacts with the D/A and A/D converters on the Data Conversion HSMC in the following sections. Figure 5 1. Factory Design Functional Block Diagram Stratix III Development Board Data Conversion HSMC PLL 50 MHz 100 MHz 1 MHz NCO 14-bit DAC DA 10 MHz NCO HSMC Connector 3 MHz FIR Filter FIR Data Input Latch DB 14-bit ADC 1 The design files for the factory design are installed from the DSP Development Kit, Stratix III Edition CD-ROM in the directory: <path>\kits\stratixiii_3sl150_dsp \examples\stratixiii_3sl150_dsp_example_cha. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

5 2 Chapter 5: Factory Designs Exercising the A/D and D/A Converter Performance Test Exercising the A/D and D/A Converter Performance Test Configuring the Board To test the A/D and D/A converter performance using the factory design, follow these steps: 1. Configuring the Board on page 5 2 2. Collecting Data Using the SignalTap II Logic Analyzer on page 5 3 3. Analyzing the Data in the MATLAB Software on page 5 4 The design you use to perform this tutorial exercise uses the Channel A DAC and the Channel A ADC portions of the board. To complete the circuit from end to end, install a link between the output of the Channel A DAC and the input to the Channel A ADC. For this link, use one of the SMA cables provided along with the SLP-50 filter. To configure the board, perform the following steps: 1. Attach the filter to the ADC input at J4. 2. Attach the SMA cable from the filter to the DAC output at J12. This connection is shown in Figure 5 1 on page 5 1. The clocks are jumpered according to step 8 in Powering up the Board on page 4 1. The system should now be powered up. 3. Start the Quartus II software and follow these steps: a. On the File menu, click Open Project. b. In the Open Project dialog box, browse to the directory: <path>\stratixiii_3sl150_dsp\ examples\ stratixiii_3sl150_dsp_example_cha c. Select stratixiii_3sl150_dsp_factory_design.qpf, which contains project definitions for reference design, and click Open. d. The Signal Tap II file (.stp) provided with the design, sines.stp, is required also. On the File menu, click Open. Select Signal Tap II Logic Analyzer Files (*.stp) from the Files of type, select sines.stp, and click Open. Figure 5 2 shows sines.stp displayed in the SignalTap II logic analyzer. You can click on the + sign for the displayed waveform and observe the incoming data stream. Click the - sign to collapse the display after you are done so that the analysis shows correctly. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 5: Factory Designs 5 3 Collecting Data Using the SignalTap II Logic Analyzer Figure 5 2. Sines.stp Displayed in the SignalTap II Logic Analyzer 1 If you modify and recompile the design, specify your new.sof and click Program Device in the SignalTap II window to configure the device with your.sof. Collecting Data Using the SignalTap II Logic Analyzer To collect data from the design for analysis, perform the following steps. 1. Download the design in the FPGA using the programmer. In the SignalTap window, click on this icon to program the FPGA. 2. In the Instance Manager section of the SignalTap II window, click Run Analysis and scroll through the window to observe the following: a. Observe the D/A converter output on da[13..0]. It shows the combination of the two sine waves, sin_out[12..0] and sin10_out[12..0]. b. Observe the A/D converter input of the signal looped back from the D/A on db[13..0]. It shows an attenuated combination of two sine waves. 1 The A/D converter output is attenuated because of losses in the analog circuitry, transformers, and terminators on the board. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

5 4 Chapter 5: Factory Designs Analyzing the Data in the MATLAB Software 3. On the File menu, select Create SignalTap II List File and click Create/Update. The Quartus II software generates the file sines_auto_signaltap_0.txt in the project directory. Analyzing the Data in the MATLAB Software To analyze the spectrum content of the data from sines_auto_signaltap_0.txt in MATLAB, follow these steps: 1. First install and license MATLAB, which is provided in the kit on an evaluation CD from Mathworks. 2. Start the MATLAB software. 3. Browse to the working directory. 4. To analyze the spectrum of the combined signal output to the D/A converter, do the following steps: a. In the MATLAB Command Window, type the following command: FIR_plot( sines_auto_signaltap_0.txt, a ) r b. The MATLAB software opens a display window, which shows a normalized plot of the DAC CHANNEL A output similar to that shown in Figure 5 3. Observe that the plotted graph of the peak spur level is below 80 db. A normalized. Figure 5 3. Normalized Spectral Plot of 14-bit Output to the Channel A D/A Converter DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Chapter 5: Factory Designs 5 5 Analyzing the Data in the MATLAB Software 5. To analyze the spectrum of the combined signal through the system from the output to the D/A converter back to the input from the A/D converter, perform the following steps: a. In the MATLAB Command Window, type the following command: sines_plot( sines_auto_signaltap_0.txt, b )r b. The MATLAB software opens a display window, which shows a normalized plot of the ADC CHANNEL A input similar to that shown in Figure 5 4. The plot represents the resulting signal with all of the system noise and attenuation. Figure 5 4. Normalized Spectral Plot of 14-bit ADC Channel A Output Data 6. To analyze the final spectrum from the output of the 3-MHz FIR filter, in the MATLAB Command Window, type the following command: sines_plot( sines_auto_signaltap_0.txt, c ) r The MATLAB software opens a display window, which shows a normalized plot of the output of the 3-MHz FIR filter. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

5 6 Chapter 5: Factory Designs Conclusion Figure 5 5. Normalized Spectral Plot of the Output Of the 3-MHz FIR Filter Conclusion This user guide walks you through the software installation process, obtain the license for the DSP Development Kit, Stratix III Edition, and other software, as well as board setup, configuration, and testing of the Stratix III FPGA Development board and Data Conversion HSMC combination. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

A. Programming the Flash Device Overview There is a Common Flash Interface (CFI) type flash memory device on the Stratix III development board. When you first receive the kit, this CFI flash device arrives programmed with a default factory configuration that was loaded from a Programmer Object File (.pof). When you power up the board, the CFI flash device configures the FPGA with the default factory configuration using Passive Serial (PS) programming. If the configuration loads correctly, the user LEDs on the board flash sequentially from side to side. As you develop your own project using the Altera tools, you may wish to program the flash device so that, upon power up, it loads the FPGA with your own design. Or you may wish to restore the default factory configuration to your board. This appendix describes how to program the flash device. You can load an existing design from a.pof, but if your design exists only as an SRAM Object File (.sof), then first you must convert the.sof to a.pof. Programming the flash device also requires the use of the Altera parallel flash loader (PFL). Using this appendix, you can do the following: Create a flash file by converting a.sof to.pof Install the PFL Use the Quartus II Programmer to write a.pof to the flash device Restore the default factory configuration Creating a Flash File To create a flash-programmable configuration.pof, perform the following steps: 1. On the File menu in the Quartus II software, click Convert Programming Files. 2. In the Convert Programming Files dialog box, select the parameter values shown in the following table: Parameter Value Programming file type Programmer Object File (.pof) Configuration device CFI_512MB Mode Fast Passive Parallel File name <output_file.pof> This is the default file name. Change this to the file name you wish to use for your application. Save the file in <path>\examples\stratixiii_3sl150_dev_pfl. Memory Map File selected (default) August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

A 2 Appendix A: Programming the Flash Device Creating a Flash File 3. Click Options. In the Options dialog box, enter 0x3FE0000 and click OK. This action sets the option bit base address for the development kit to the required default, 0x3FE0000. The option bit sector stores the start address for each page of memory and also stores the Page Valid bits. The Page Valid bits indicate whether each page is successfully programmed. f For more information about option bits and Page Mode Implementation of memory, refer to AN 386: Using the Parallel Flash Loader with the Quartus II Software. 4. To select the.sof file you want to convert, select the row labeled SOF Data in the Input files to convert area, click Add File, browse to and select the file you wish to convert, and click OK. Figure A 1 shows the Convert Programming Files dialog box updated with the factory image your_design_name.sof. 1 If you choose to overwrite an existing.pof file, you receive a warning message. Figure A 1. Convert Programming Files Settings DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Appendix A: Programming the Flash Device A 3 Parallel Flash Loader Instantiation 5. Click Generate. Generation takes a short time and it is confirmed by a Generated pof successfully message. You now have a successfully generated.pof that can be programmed to the flash device to automatically configure the FPGA on your Cyclone III development board. Parallel Flash Loader Instantiation The development kit includes a PFL megafunction design, stratixiii_3sl150_dev_pfl, in the directory <path>\examples. The Quartus II software uses the PFL to write programming files to the flash device, which then loads the FPGA on power up. To write to a flash device, you must first program the PFL into the FPGA by using the Quartus II software as described in Programming the Flash Device, steps 1 through 8. f For more information about the PFL megafunction, refer to AN 386: Using the Parallel Flash Loader with the Quartus II Software. Programming the Flash Device To program the flash device on the development board, you must first create a.pof flash file as described in Creating a Flash File on page A 1. The following procedure describes how to program the PFL into the FPGA first and use the PFL to write the.pof flash file into the flash device. To download a configuration bit stream into the flash device, perform the following steps: 1. Ensure that the POWER switch SW4 is in the OFF (or DOWN) position. 2. Verify the switch SW3 and jumper settings shown in Table 4 2 on page 4 5. 3. Connect the USB cable to the USB port on the board. 4. Cycle the POWER switch OFF then ON. 5. On the Tools menu in the Quartus II software, click Programmer. 6. Click Add File and select <path>\examples\stratixiii_3sl150_dev_pfl\stratixiii_3sl150_dev_pfl.sof. 7. Turn on the Program/Configure option for the added file. 8. Click Start to download the selected configuration file to the FPGA (Figure A 2). The FPGA is configured when the progress bar reaches 100%, after which it is ready to access and program the flash device. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

A 4 Appendix A: Programming the Flash Device Programming the Flash Device Figure A 2. PFL Programming Figure A 3. Program/Configure Options 9. Click Auto Detect. The EP3SL150 device and a child CFI_512MB device appear in the list of devices to be programmed. 10. Double-click the <File><none> field of the CFI_512MB row. The Select New Programming File dialog box appears. Select the desired.pof, in this example the <output_file>.pof flash file you created earlier, and click Open. 11. Turn on Page_0 and OPTION_BITS options in the Program/Configure column that correspond to the CFI_512MB device (Figure A 3). This action results in writes only to the flash page zero and the option bit register. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Appendix A: Programming the Flash Device A 5 Restoring the Factory Design to the Flash Device 12. Click Start. The message window details the flash writing progress to successful completion. Flash writing to one page, as in this case, can take five to six minutes. You have now successfully programmed the flash device with a configuration for your board. To configure the board from the flash device, power cycle the board as described in Powering up the Board on page 4 1. Powering on the board causes the flash device to load a new configuration into the FPGA device. The Configuration Done LED lights up and the hardware functions associated with the design take effect. Restoring the Factory Design to the Flash Device To restore the development board to factory conditions, repeat the steps for writing a new POF to the flash device as described in Programming the Flash Device on page A 3, except select the stratixiii_3sl150_dev_factory_recovery.pof file. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

A 6 Appendix A: Programming the Flash Device Restoring the Factory Design to the Flash Device DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation

Additional Information Revision History The following table displays the revision history for this user guide. Date Version Changes Made August 2008 1.1 Updated Kit Features section with correct Quartus II DKE software license limit. How to Contact Altera Updated Figure 3 1 directory structure. Removed reference to The MathWorks MATLAB software version in Installing MathWorks MATLAB/Simulink CD-ROM section. Removed Figure 3-1 and Figure 4-4. Updated Licensing Considerations section. Updated Figure 4 3. Converted document to new frame template and made textual and style changes. February 2008 1.0 First publication For the most up-to-date information about Altera products, refer to the following table. Contact (Note 1) Contact Method Address Technical support Website www.altera.com/support Technical training Website www.altera.com/training Email custrain@altera.com Altera literature services Email literature@altera.com Non-technical support (General) Email nacomp@altera.com (Software Licensing) Email authorization@altera.com Note: (1) You can also contact your local Altera sales office or sales representative. August 2008 Altera Corporation DSP Development Kit, Stratix III Edition Getting Started User Guide

Info 2 Additional Information Typographic Conventions Typographic Conventions This document uses the typographic conventions shown in the following table. Visual Cue Bold Type with Initial Capital Letters bold type Meaning Command names, dialog box titles, checkbox options, and dialog box options are shown in bold, initial capital letters. Example: Save As dialog box. External timing parameters, directory names, project names, disk drive names, file names, file name extensions, and software utility names are shown in bold type. Examples: f MAX, \qdesigns directory, d: drive, chiptrip.gdf file. Italic Type with Initial Capital Letters Document titles are shown in italic type with initial capital letters. Example: AN 75: High-Speed Board Design. Italic type Internal timing parameters and variables are shown in italic type. Examples: t PIA, n + 1. Initial Capital Letters Subheading Title Courier type Variable names are enclosed in angle brackets (< >) and shown in italic type. Example: <file name>, <project name>.pof file. Keyboard keys and menu names are shown with initial capital letters. Examples: Delete key, the Options menu. References to sections within a document and titles of on-line help topics are shown in quotation marks. Example: Typographic Conventions. Signal and port names are shown in lowercase Courier type. Examples: data1, tdi, input. Active-low signals are denoted by suffix n, e.g., resetn. 1., 2., 3., and a., b., c., etc. Anything that must be typed exactly as it appears is shown in Courier type. For example: c:\qdesigns\tutorial\chiptrip.gdf. Also, sections of an actual file, such as a Report File, references to parts of files (e.g., the AHDL keyword SUBDESIGN), as well as logic function names (e.g., TRI) are shown in Courier. Numbered steps are used in a list of items when the sequence of the items is important, such as the steps listed in a procedure. Bullets are used in a list of items when the sequence of the items is not important. v The checkmark indicates a procedure that consists of one step only. 1 The hand points to information that requires special attention. c w r f A caution calls attention to a condition or possible situation that can damage or destroy the product or the user s work. A warning calls attention to a condition or possible situation that can cause injury to the user. The angled arrow indicates you should press the Enter key. The feet direct you to more information on a particular topic. DSP Development Kit, Stratix III Edition Getting Started User Guide August 2008 Altera Corporation