Home

Cyclone IV GX Transceiver Starter Kit User Guide

image

Contents

1. EM Aq ME 6 13 Control Register Settings costs c RO p E Ped PP CO ut tege tp des 6 13 Status PERPE HEN REPE SA o de 6 13 Error Control 33 24 22 RR er bx RR SER E PERPE LINER RELIEF p edes 6 13 The PCIe Tab bte pe RE oed ed eda oe Rode ae us 6 14 o RERO TUER EUER PME MT 6 15 HOPS i es arces cbe a ue aene lec tet 6 15 Data Pattern cheer torte EE EN ee esq mes 6 15 Data Rate tnt e e eode Ee bebo Pd eb oed se dap pars 6 15 Control Register cuenten bent renes qe stern 6 15 eC QR c 6 15 Error CONMOL 22 me i 6 16 The Power MONO serrit oe prid doce ecco dace D ced e e QUE nr e Pa cs t dn 6 16 General Informa NoN ea 6 17 Power Information a abr Sewn deena de edi ae Pee 6 18 Power idest eser ete tr MR attese fere 6 18 Graph Settings ie aa abest pP Ae ee ee Ce NOU I dee EP de e 6 18 RATE a TP 6 18 Calculating POWER IHE CE e Ee detect og deed e Ede ete ted 6 18 Configuring the FPGA Using the Quartus II Programmer 6 19 Appendix A Programming the Flash Memory Device troduction svcd bets CES
2. le5012245 le789abc 012345 769abcde 01224567 2000 0 12345678 12345678 12245678 12345678 Ox2000b0 Sabcde 0 Sabcde 0 Sabcde f0 Sabcde 0 FPGA conique status EET 23456729 22456789 22456769 23456789 Messages 0x200040 sbcde 01 abcdef01 abcdef01 abzcdef01 34567592 34567092 34567092 34567893 0x2000e0 Detected the GPIO SSRAM Flash and Ethernet hardware bcdef012 bede 012 bede 012 bode 012 Ox 2000 0 configuration r 0x200100 01234567 01234567 01234567 02234567 0x200110 ESsbcdef ESabcdef B9abcdef 89abcdef 0x200120 12345678 12345678 12345678 12345678 0x200130 Sabcde 0 Sabcde 0 Sabcde Q Ssbcde 0 0x200140 43456789 23456789 23456789 23456789 0x200150 sbede 01 sbede 01 abcdef0l abcdef0l 0x2001 0 34567993 345679982 34567892 34567892 05200170 bede 012 bedef012 bede 0 2 bede 012 I 1 The following sections describe the controls on the SSRAM tab The Read control reads the SSRAM on your board To see the SSRAM contents type a starting address in the text box and click Read Values starting at the specified address appear in the table The SSRAM addresses display in the format the Nios processor within the F
3. ceeds HENCE TP 6 7 Character aN GE kac Y SORE E RAD EEA Kec a en 6 7 User LEDS back Se eck ds aah es tn ee EA es EX EEG Y RE PES wis Pa 6 7 Push Button Switches cese a n 6 8 Th SSRAM Tab b rbd e yeaah Aer er ud 6 8 Dc 6 8 douce 6 9 The Flash Tab erite iness intas RE Dick na see da tn pauci etes 6 9 Redd 5343352312 en 6 10 Write pures sui UU EU GE ES den 6 10 qc PDT 6 10 Reset aa dune hE a A PUEDE C Dee me D sar p CE E 6 10 The Ethernet Tab s cute beer erba e ha pe Ed EA VAR oat 6 10 eee dre 6 11 de chee la tril bee 6 11 Acquired IP Addr ss dues hee d ke gale dee prp ed aed ees 6 11 Nios Terminal Output PES o he Opa e Ea 6 11 Telnet Session Menu eese 9 he 6 12 The cx Sk E RR oe AU Wives dd KW REPRISE FEWER ESTA 6 12 Start T 6 12 sairt usata Piu a 6 12 Data Pattern 52 cid 6 13 Data Rate ovs dete
4. 1 The MSELO MSEL1 and MSEL2 switches combine to specify a single device configuration The default 0 0 0 combination corresponds to a 2 5 v passive serial configuration with the standard power on reset delay For a complete list of MSEL combinations refer to the Configuration and Remote System Upgrades in Cyclone IV Devices chapter of the Cyclone IV GX Device Handbook 2 The board ships with a simple design example stored in the EPCS flash memory device To load the design and see the four user LEDs D5 D8 blink set the 57 1 57 4 switches to on off on on and power cycle the board These switch settings corresponds to a 2 5 V active serial configuration with the standard power on reset delay Source code for the EPCS design resides in the install dir gt kits cyclonelVGX_4cgx15_starter examples directory March 2010 Altera Corporation Transceiver Starter Board Reference Manual For more information about the FPGA board settings refer to the Cyclone IV GX Cyclone IV GX Transceiver Starter Kit User Guide 4 4 Chapter 4 Board Setup Factory Default Switch Settings Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation 5 Board Update Portal ANU S RYA Introduction The Cyclone IV GX Transceiver Starter Kit ships with the Board Update Portal design example stored in the factory portion of the flash memory on the board The design consists of a Nios embedded processor an Ethern
5. m 0 PGM 0 LED D4 on and PGM 1 LED D3 on and corresponds to the flash memory page for the factory hardware design m 1 PGMOLED D4 on and PGM 1 LED 03 off and corresponds to the flash memory page for the user hardware 1 design m 2 PGM OLED D4 off and PGM 1 LED D3 on and corresponds to the flash memory page for the user hardware 2 design March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 6 The GPIO Tab Chapter 6 Board Test System Using the Board Test System m PSO Sets the MAX II PSO register The following options are available m Use PSR Allows the PSR to determine the page of flash memory to use for FPGA reconfiguration m UsePSS Allows the PSS to determine the page of flash memory to use for FPGA reconfiguration m PSR Sets the MAX II PSR register The numerical values in the list corresponds to the page of flash memory to load during FPGA reconfiguration Refer to Table 6 2 for more information m PSS Displays the MAX II PSS register value Refer to Table 6 2 for the list of available options m SRST Resets the system and reloads the with a design from flash memory based on the other MAX register values Refer to Table 6 2 for more information Because the Config tab requires that a specific design is running in the FPGA writing a 0 to SRST or changing the PSO value can cause the Board Test System to stop running JTAG
6. FPGA configuraton status Messages Detected the Transceiver SMA and PCI Express hardware 3 3 configuration n Detected errors 0 Inserted errors 0 Error control The following sections describe the controls on the SMA tab Start The Start control initiates the loopback tests Stop The Stop control terminates the loopback tests Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 13 Using the Board Test System Data Pattern The Data pattern control specifies the type of data contained in the transactions The following data types are available for analysis m PRBS 7 Selects pseudo random 7 bit sequences m PRBS 15 Selects pseudo random 15 bit sequences m PRBS 23 Selects pseudo random 23 bit sequences PRBS 31 Selects pseudo random 31 bit sequences m PCIe compliance Selects the repeating 40 bit PCIe compliance pattern K28 5 D21 5 K28 5 D10 2 with the first K28 5 code group encoded with negative current disparity 0011111010 to conform to the PCIe protocol The pattern is intended to be a signal loopback to demonstrate signal quality rather than a complete PCle compliance test Data Rate The Data rate control specifies the speed of the transactions The following data rates are available for analysis m 1 25 Gbps Selects a 1 25 Gbps transaction data rate m 2 5 Gbps Selects a 2 5 Gbps transaction data rate Contro
7. gt file Initial Capital Letters Indicates keyboard keys and menu names For example Delete key and the Options menu March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide Info 2 Additional Information Typographic Conventions Visual Cue Subheading Title Quotation marks indicate references to sections within a document and titles of Quartus Il Help topics For example Typographic Conventions Courier type Indicates signal port register bit block and primitive names For example data1 tdi and input Active low signals are denoted by suffix n For example resetn Indicates command line commands and anything that must be typed exactly as it appears For example c qdesigns tutorial chiptrip gdf Also indicates sections of an actual file such as a Report File references to parts of files for example the AHDL keyword SUBDESTGN and logic function names for example TRI 1 2 3 and Numbered steps indicate a list of items when the sequence of the items is important a b c and so on such as the steps listed in a procedure Hm Bullets indicate a list of items when the sequence of the items is not important c The hand points to information that requires special attention A caution calls attention to a condition or possible situation that can damage or destroy the product or your work A warning calls attention to
8. you can restore it by following the instructions in Restoring the Flash Device to the Factory Settings on page 4 Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation 6 Board Test System Introduction The kit includes a design example and application called the Board Test System to test the functionality of the Cyclone IV GX transceiver starter board The application provides an easy to use interface to alter functional settings and observe the results You can use the application to test board components modify functional parameters observe performance and measure power usage The application is also useful as a reference for designing systems To install the application follow the steps in Installing the Cyclone IV GX Transceiver Starter Kit on page 3 1 The application provides access to the following Cyclone IV GX transceiver starter board features m General purpose I O GPIO SRAM Flash memory Transceivers PCIe The application allows you to exercise most of the board components While using the application you reconfigure the FPGA several times with test designs specific to the functionality you are testing A GUI runs on the PC which communicates over the JTAG bus to a test design running in the Cyclone IV GX device Figure 6 1 shows the initial GUI for a board that is in the factory configuration March 2010 Altera Corporation Cyclone IV GX T
9. Chain The JTAG chain devices control shows all the devices currently in the JTAG chain The Cyclone IV GX device is always the first device in the chain Setting DIP switch 58 3 to the off position includes the MAX II device in the JTAG chain Flash Memory Map The Flash memory map control shows the memory map of the flash memory device on your board The GPIO tab allows you to interact with all the general purpose user I O components on your board You can write to the LCD turn LEDs on or off and detect push button presses Figure 6 3 shows the GPIO tab Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System Using the Board Test System Figure 6 3 The GPIO Tab 6 7 Board Test System File Configure Help General GPIO SSRAM Flash Ethernet SMA PCIe Cyclone IV GX Transceiver Starter Kit DL F Board Test System Enter text IV GX Version 9 1 2 XCVR Starter Kit Power Honit User LEDs ree 5 2 3 2 FPGA configuration status 100 Messages Detected the GPIO SSRAM Flash and Ethernet hardware configuration DBR The following sections describe the controls on the GPIO tab Character LCD The Character LCD controls allow you to display text strings on the character LCD on your board Type text in the text boxes and then click Display 57 Ifyou exceed the 16 character display limit on e
10. Power rail Selects the power rail to measure After selecting the desired rail click Reset to refresh the screen with new board readings Te table with the power rail is available in the Cyclone IV GX Transceiver Starter Board Reference Manual March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 18 Chapter 6 Board Test System The Power Monitor Power Information The Power information control displays current maximum and minimum power readings for the following units m mVolt mAmp mg mWatt Power Graph The power graph displays the mWatt power consumption of your board over time The green line indicates the current value The red line indicates the maximum value read since the last reset The yellow line indicates the minimum value read since the last reset Graph Settings The following Graph settings controls allow you to define the look and feel of the power graph m Scale select Specifies the amount to scale the power graph Select a smaller number to zoom in to see finer detail Select a larger number to zoom out to see the entire range of recorded values m Update speed Specifies how often to refresh the graph Reset This Reset control clears the graph resets the minimum and maximum values and restarts the Power Monitor Calculating Power The Power Monitor calculates power by measuring two different voltages with the LT2418 A D and applying the equation P
11. V x I to determine the power consumption The LT2418 measures the voltage after the appropriate sense resistor Vsense and the voltage drop across that sense resistor Vdif The current is calculated by dividing the measured voltage drop across the resistor by the value of the sense resistor I Vdif Through substitution the equation for calculating power becomes P V x I Vsense x Vdif R Vsense Vdif 1 003 You can verify the power numbers shown in the Power Monitor with a digital multimeter that is capable of measuring microvolts to ensure you have enough significant digits for an accurate calculation Measure the voltage on one side of the resistor the side opposite the power source and then measure the voltage on the other side The first measurement is Vsense and the difference between the two measurements is Vdif Plug the values into the equation to determine the power consumption Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 19 Configuring the FPGA Using the Quartus II Programmer Configuring the FPGA Using the Quartus Il Programmer You can use the Quartus II Programmer to configure the FPGA with a specific sof Before configuring the FPGA ensure that the Quartus II Programmer and the USB Blaster driver are installed on the host computer the USB cable is connected to the transceiver starter board power to the board is on and no ot
12. default settings follow the instructions in Factory Default Switch Settings on page 4 2 to return the board to its factory settings before proceeding 2 The transceiver starter board ships with design examples stored in the flash memory device Verify the USER_PGM switch S8 2 is set to the off position to load the design stored in the factory portion of flash memory Figure 4 1 shows the switch location on the Cyclone IV GX transceiver starter board 3 Connect the DC adapter 9 V 16 V 33 75 W to the DC power jack J4 on the FPGA board and plug the cord into a power outlet Use only the supplied power supply Power regulation circuitry on the board can be damaged by power supplies with greater voltage 4 Set the POWER switch SW1 to the on position When power is supplied to the board a blue LED D12 illuminates indicating that the board has power The MAX II device on the board contains among other things a parallel flash loader PFL megafunction When the board powers up the PFL reads a design from flash memory and configures the FPGA The USER switch 58 2 controls which design to load When the switch is in the off position the PFL loads the design from the factory portion of flash memory When the switch is in the on position the PFL loads the design from the user hardware 1 portion of flash memory The kit includes a MAX II design which contains the MAX II PFL megafunction The design resides in the
13. eae Pede 1 CET Flash Memory sente xt retener te per qe e e pace dee e Re e ate hend A 1 Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Preparing Design Files for Flash Programming 2 Creating Flash Files Using the Nios EDS 2 Programming Flash Memory Using the Board Update Portal 2 Programming Flash Memory Using the Nios EDS 3 Restoring the Flash Device to the Factory Settings 4 Restoring the MAX II CPLD to the Factory Settings 5 Additional Information R VISION nee SHEE PIER RR PU Info 1 How to Contact Altera epe se Info 1 Typographic Conventions 22220 Info 1 March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide vi Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation N DTE PYN 1 About This Kit Introduction The Altera Cyclone IV GX Transceiver Starter Kit is a complete design environment that includes both the hardware and software you need to develop Cyclone I
14. pF capacitors to enable either the Ethernet PHY or the transceiver SMA connectors Table 6 1 Resistor and Capacitor Placement 0 Resistors at 51 and R54 0 Resistors at R52 and R53 Loopback Tests 0 1 pF Capacitors at C57 and C60 0 1 pF Capacitors at C58 and C59 Transceiver SMA 7 Install Remove Ethernet 2 Remove Install Notes to Table 6 1 1 This configuration routes the transceiver channel to SMA connectors J8 J9 J10 and J11 2 This configuration is the factory default and routes the transceiver channel to the Ethernet PHY The General tab shows information about the board s current configuration Figure 6 1 on page 6 2 shows the General tab The tab displays the contents of the MAX II registers the chain the board s MAC address the flash memory map and other details stored on the board The following sections describe the controls on the General tab Board Information The Board information controls display static information about your board Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System Using the Board Test System 6 5 Name Indicates the official name of the board given by the Board Test System Part number Indicates the part number of the board Serial number Indicates the serial number of the board Factory test version Indicates the version of the Board Test System currently running on the bo
15. subscription contact your Altera sales representative Installing the Cyclone IV GX Transceiver Starter Kit To install the Cyclone IV GX Transceiver Starter Kit perform the following steps 1 Run the Cyclone IV GX Transceiver Starter Kit you acquired in Software on page 1 1 La Ifinstalling from the DVD and no auto install process starts browse to the DVD drive and double click on the setup exe file 2 Follow the on screen instructions to complete the installation process The installation program creates the Cyclone IV GX Transceiver Starter Kit directory structure shown in Figure 3 1 March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 3 2 Chapter 3 Software Installation Installing the USB Blaster Driver Figure 3 1 Cyclone IV GX Transceiver Starter Kit Installed Directory Structure 1 23 lt install The default Windows installation directory is C altera lt version gt Lf kits cyclonelVGX 4cgx15 starter board design files demos documents examples factory recovery Note to Figure 3 1 1 Early release versions might have slightly different directory names Table 3 1 lists the file directory names and a description of their contents Table 3 1 Installed Directory Contents Directory Name Description of Contents board design files Contains schematic layout assembly and bill of material board design files Use these files as a starting po
16. that you do not overwrite the factory hardware and factory software images unless you are an expert with the Altera tools If you unintentionally overwrite the factory hardware or factory software image refer to Restoring the Flash Device to the Factory Settings on page A 4 CAUTION March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 2 Appendix Programming the Flash Memory Device Preparing Design Files for Flash Programming Preparing Design Files for Flash Programming You can obtain designs containing prepared flash files from the Cyclone IV GX Transceiver Starter Kit page of the Altera website or create flash files from your own custom design The Nios II EDS sof2flash command line utility converts your Quartus II compiled sof into the flash format necessary for the flash device Similarly the Nios II EDS elf2flash command line utility converts your compiled and linked Executable and Linking Format File elf software design to flash After your design files are in the flash format use the Board Update Portal or the Nios II EDS nios2 flash programmer utility to write the flash files to the user hardware 1 and user software locations of the flash memory T For more information about Nios EDS software tools and practices refer to the Embedded Software Development page of the Altera website Creating Flash Files Using the Nios Il EDS If you have an FPGA design developed using
17. the Quartus II software and software developed using the Nios II EDS follow these instructions 1 On the Windows Start menu click Programs gt Altera gt Nios EDS gt Nios II Command Shell 2 In the Nios II command shell navigate to the directory where your design files reside and type the following Nios II EDS commands m For Quartus II sof files sof2flash input yourfile hw sof output yourfile hw flash offset 0x000A0000 pfl optionbit 0x00018000 programmingmode PS m For Nios II elf files elf2flash base 0x08000000 end 20x08FFFFFF reset 0x08800000 input yourfile sw elf output lt yourfile gt sw flash boot SOPC KIT NIOS2 components altera nios2 boot loader sources boot loader cfi sre c e The resulting flash files are ready for flash device programming If your design uses additional files such as image data or files used by the runtime program you must first convert the files to flash format and concatenate them into one flash file before using the Board Update Portal to upload them The Board Update Portal standard flash format conventionally uses either filename hw flash for hardware design files or filename sw flash for software design files Programming Flash Memory Using the Board Update Portal Once you have the necessary flash files you can use the Board Update Portal to reprogram the flash memory Refer to Using the Board Update Portal to Update U
18. 789abcd 0 8000060 0123456 12345 012245 012345 0x8000070 789abcde 789abcde 789abcde 769abcde 0 8000080 01234567 01234567 01234567 01234567 0 8000090 SGabcdef B9abedef 89abcdef 39abcdef 0x80000a0 12245679 12345678 12345678 12245678 F t 0x80000b0 amp 0 9abcdef0 9abcdefO Ssbede 0 FPGA configuration status 0 80000 0 23456799 22456789 22456789 22456789 Messages 0x80000d0 abcde f01 sbcdef01 j abcdef01 labcde 01 24567802 2456789a 2456789 24567893 Detected the GPIO SSRAM Flash and Ethernet hardware configuration 0x80000f 0 bcdefO12 bcdef022 bcdef022 bcdef022 0x8000100 01234567 02234567 021224567 01224567 0x8000110 9 levabcdes BS9abcdef 89abcdef ox8000120 12345678 12345679 12345679 12345678 0x8000230 9abcdef0 9abcdef0 9abcdefO 0 8000140 22456799 22456799 1223456769 1223456709 0x8000250 abcdef0i j abcdef0l1 jabcdef0l labcde 0 Ox60001 60 3456789a 345 789a 2456 789a 245 739 0x8000170 bcdef012 bedef012 bedef0i2 bcdef0212 The following sections describe the controls on the Flash tab March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide Chapter 6 Board Test System Using the Board Test System The Read control reads the flash m
19. Cyclone IV GX Transceiver Starter Kit S RYA o 101 Innovation Drive San Jose CA 95134 www altera com UG 01078 1 0 User Guide Copyright 2010 Altera Corporation All rights reserved Altera The T rogrammiable 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 produce 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 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 QUALITY 150 9001 2000 NSAI Certified Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation ATEA Contents Chapter 1 Ab
20. PFL loads the factory design on power up 3 MAX JTAG EN Switch 3 has the following options Off m When the MAX Il EPM2210 device is removed from the JTAG chain m When off the MAX EPM2210 device is included in the JTAG chain 4 PCIE JTAG EN Switch 4 has the following options On m When on the PCle device is in removed from JTAG chain m When off the PCle device is included in the JTAG chain 2 Set DIP switch bank S7 to match Table 4 2 and Figure 4 1 Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 4 Board Setup 4 3 Factory Default Switch Settings Table 4 2 S7 Dip Switch Settings Board Default Switch Label Function Position 1 MSELO 1 Switch 1 has the following options On When on the MSELO state is logic low When off the MSELO state is logic high 2 MSEL1 1 Switch 2 has the following options On m When the MSEL1 state is logic low m When off the MSEL1 state is logic high 3 MSEL2 1 Switch 3 has the following options On m When on the MSEL2 state is logic low m When off the MSEL2 state is logic high 4 EPCS nC 2 Switch 4 has the following options Off m When on the EPCS device defaults to disabled but allows the MAX II device to enable or disable the EPCS device m When off the 5 ncs signal floats requiring the MAX II device to enable or disable the EPCS device Note to Table 4 2
21. PGA uses that is each SSRAM address is offset by 0x00200000 Thus the first location in SSRAM appears as 0x00200000 in the GUI L gt If you enter an address outside of 0x00200000 to SSRAM address space a warning message identifies the valid SSRAM address range Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 9 Using the Board Test System Write The Write control writes the SSRAM on your board To update the SSRAM contents change values in the table and click Write The application writes the new values to SSRAM and then reads the values back to guarantee that the graphical display accurately reflects the memory contents The Flash Tab The Flash tab allows you to read and write flash memory on your board Figure 6 5 shows the Flash tab Figure 6 5 The Flash Tab Board Test System File Configure Help General GPIO SSRAM Flash Ethernet SMA PCIe Cyclone IV GX Transceiver Starter Kit F Board Test System Start address Range 0x800 0000 Verson 9 1 2 LL Address 0 3 4 7 8 B C E 0x8000000 ede 0123 cdet0123 odef0123 cdet0123 ox8000010 s 789ab 45 789ab 456789ab 45 789ab 0x8000020 de 01234 de 01234 det01234 de 01234 0x8000030 56789abc 5 789abe S67892be 5 789abc 0x8000040 e 012345 et012345 e 012345 e 012345 0x8000050 6789abcd 6789abcd 6789abcd 6
22. V GX FPGA designs The PCI SIG compliant board and the license free Quartus II Web Edition software provide everything you need to begin developing custom Cyclone IV GX FPGA designs The following list describes what you can accomplish with the kit Kit Features Test signal quality of the FPGA transceiver I Os up to 2 5 Gbps Develop and test PCI Express PCIe designs Develop embedded designs utilizing the Nios II processor and the SSRAM memory Develop and test network designs utilizing the Gigabit Ethernet PHY and the FPGA transceivers Develop FPGAs design for cost sensitive applications Measure the FPGA s low power consumption This section briefly describes the Cyclone IV GX Transceiver Starter Kit contents Hardware The Cyclone IV GX Transceiver Starter Kit includes the following hardware Software Cyclone IV GX transceiver starter board A development platform that allows you to develop and prototype hardware designs running on the Cyclone IV GX EP4CGX15 FPGA Ta For detailed information about the board components and interfaces refer to the Cyclone IV GX Transceiver Starter Board Reference Manual Power supply and cables The kit includes the following items m Power supply and AC adapters for North America Japan Europe and the United Kingdom m USBcable m Ethernet cable The software for this kit described in the following sections is available on the Altera website for immediate downloading You
23. a The Ethernet Tab The Ethernet tab allows you to run an Ethernet application the Simple Socket Server Test on your board Figure 6 6 shows the Ethernet tab Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 11 Using the Board Test System Figure 6 6 The Ethernet Tab Board Test System File Configure Help General GPIO SSRAM Flash Ethernet Cyclone IV GX Transceiver Starter Kit z RSS RE F Board Test System Start ELF file download progress Verson 9 12 a Nios II terminal output ALENA Acquired IP address via DHCP dient for interface 1 IP address 137 57 185 79 Subnet Mask 255 255 255 0 Gateway 137 57 185 254 Simple Socket Server starting up sss task Simple Socket Server listening on port 30 Created simple socket server task Prio 4 sss handle accept accepted connection request from 137 57 174 15 sss handle receive processing RX data Value for LED PIO BASE set to 1 session menu FPGA configuration status Socket GS GR Messages Nios II Simple Socket Server Menu Detected the GPIO SSRAM Flash and Ethernet hardware eee eee configuration 0 3 Toggle board LEDs 0 3 Q Terminate session Enter your choice amp pres
24. a condition or possible situation that can cause you injury The angled arrow instructs you to press Enter The feet direct you to more information about a particular topic Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation
25. ard Factory test date Indicates the release date of the Board Test System currently running on the board MAX II version Indicates the version of MAX II code currently running on the board The MAX II code resides in the lt install dir NkitsNcycloneIVGX 4cgx15 starterNexamples directory Newer revisions of this code might be available on the Cyclone IV GX Transceiver Starter Kit page of the Altera website MAC address Indicates the MAC address of the board MAX II Registers The MAX II registers control allow you to view and change the current MAX II register values as described in Table 6 2 Changes to the register values with the GUI take effect immediately For example writing a 0 to SRST resets the board Tahle 6 2 MAX II Registers Read Write Register Name Capability Description System Reset Write only Set to 0 to initiate an FPGA reconfiguration SRST Page Select Register Read Write Determines which of the pages of flash memory to use for PSR FPGA reconfiguration The flash memory ships with pages 0 and 1 preconfigured Page Select Override Read Write When set to 0 the value in PSR determines the page of PSO flash memory to use for FPGA reconfiguration When set to 1 the value in PSS determines the page of flash memory to use for FPGA reconfiguration Page Select Switch Read only Holds the current value of the iluminated PGM LEDs D3 PSS D4 based on the following encoding
26. ard m The Ethernet and power cables that are included in the kit To connect to the Board Update Portal web page perform the following steps 1 With the board powered down set the USER switch 58 2 to the off position 2 Attach the Ethernet cable from the board to your LAN 3 Power up the board The board connects to the LAN s gateway router and obtains an IP address The LCD on the board displays the IP address 4 Launch a web browser on a PC that is connected to the same network and enter the IP address from the LCD into the browser address bar The Board Update Portal web page appears in the browser March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 5 2 Chapter 5 Board Update Portal Using the Board Update Portal to Update User Designs 5 Click Cyclone IV GX Transceiver Starter Kit on the Board Update Portal web page to access the kit s home page Visit this page occasionally for documentation updates and additional new designs You can also navigate directly to the Cyclone IV GX Transceiver Starter Kit page of the Altera website to determine if you have the latest kit software Using the Board Update Portal to Update User Designs Le LE The Board Update Portal allows you to write new designs to the user hardware 1 portion of flash memory Designs must be in the Nios II Flash Programmer File flash format Design files available from the Cyclone IV GX Transceiver Star
27. can also request to have Altera mail the software to you on DVDs March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide Chapter 1 About This Kit Kit Features Quartus Il Web Edition Software The Quartus II Web Edition Software is a license free set of Altera tools with limited functionality Download the Quartus II Web Edition Software from the Quartus II Web Edition Software page of the Altera website Alternatively you can request a DVD from the Altera IP and Software DVD Request Form page of the Altera website The Quartus II Web Edition Software includes the following items m Quartus Software The Quartus II software including the SOPC Builder system development tool provides a comprehensive environment for system on a programmable chip SOPC design The Quartus II software integrates into nearly any design environment and provides interfaces to industry standard EDA tools St compare the Quartus II subscription and web editions refer to Altera Quartus II Software Subscription Edition vs Web Edition The kit also works in conjunction with the subscription edition m MegaCore IP Library A library that contains Altera IP MegaCore functions You can evaluate MegaCore functions by using the OpenCore Plus feature to do the following m Simulate behavior of a MegaCore function within your system m Verify functionality of your design and quickly and easily evaluate its size an
28. d speed m Generate time limited device programming files for designs that include MegaCore functions m Program a device and verify your design in hardware The OpenCore Plus hardware evaluation feature is an evaluation tool for prototyping only You must purchase a license to use a MegaCore function in production Ste For more information about OpenCore Plus refer to AN 320 OpenCore Plus Evaluation of Megafunctions m Nios II Embedded Design Suite EDS A full featured set of tools that allow you to develop embedded software for the Nios II processor which you can include in your Altera FPGA designs Cyclone IV GX Transceiver Starter Kit Installer The license free Cyclone IV GX Transceiver Starter Kit installer includes all the documentation and design examples for the kit Download the Cyclone IV GX Transceiver Starter Kit installer from the Cyclone IV GX Transceiver Starter Kit page of the Altera website Alternatively you can request a development kit DVD from the Development Kits Daughter Cards amp Programming Hardware page of the Altera website Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation A DTE B4AN 2 Getting Started Introduction This user guide leads you through the following Cyclone IV GX transceiver starter board setup steps Inspecting the contents of the kit Installing the design and kit software Setting up powering up and verifying correct operat
29. e Date amp Document Version Changes Made Summary of Changes March 2010 Initial release v1 0 How to Contact Altera For the most up to date information about Altera products refer to the following table Contact Contact 7 Method Address Technical support Website www altera com support Technical training Website www altera com training Email custrain altera com Product literature Website www altera com literature Non technical support General Email nacomp altera com Software Licensing Email authorization altera com Note to Table 1 You can also contact your local Altera sales office or sales representative Typographic Conventions This document uses the typographic conventions shown in the following table Visual Cue Meaning Bold Type with Initial Capital Indicates command names dialog box titles dialog box options and other GUI Letters labels For example Save As dialog box bold type Indicates directory names project names disk drive names file names file name extensions and software utility names For example qdesigns directory d drive and chiptrip gdf file Italic Type with Initial Capital Letters Indicates document titles For example AN 519 Stratix IV Design Guidelines Italic type Indicates variables For example n 1 Variable names are enclosed in angle brackets lt gt For example file name and lt project
30. e available for analysis PRBS 7 Selects pseudo random 7 bit sequences PRBS 15 Selects pseudo random 15 bit sequences PRBS 23 Selects pseudo random 23 bit sequences PRBS 31 Selects pseudo random 31 bit sequences PCIe compliance Selects the repeating 40 bit PCIe compliance pattern K28 5 D21 5 K28 5 D10 2 with the first K28 5 code group encoded with negative current disparity 0011111010 to conform to the PCIe protocol The pattern is intended to be a signal loopback to demonstrate signal quality rather than a complete PCle compliance test Data Rate The Data rate control specifies the speed of the transactions The following data rates are available for analysis m 1 25 Gbps Selects a 1 25 Gbps transaction data rate m 2 5 Gbps Selects a 2 5 Gbps transaction data rate Control Register Settings The Control register settings controls specify loopback test parameters The following settings are available for analysis m Serial loopback Routes signals back to the sender VOD Specifies the voltage output differential of the transmitter buffer Pre emphasis Specifies the amount of pre emphasis on the transmitter buffer RX equalizer Enables the static equalizer DC gain Specifies the boost to incoming signals Status These controls display current transaction performance analysis information collected since you last clicked Start m PLL lock Shows the PLL locked or unlocked state m Pattern s
31. ed a newer version of the Board Test System to flash memory through the Board Update Portal the design that loads tests accessing the GPIO Ethernet SSRAM and flash memory A To ensure operating stability keep the USB cable connected and the board powered on when running the demonstration application The application cannot run correctly unless the USB cable is attached and the board is on Running the Board Test System To run the application navigate to the install dir NkitsNcycloneIVGX 4cgx15 startervexamplesNboard test system directory and run the BoardTestSystem exe application On Windows click Start gt All Programs gt Altera gt Cyclone IV GX Transceiver Starter Kit lt version gt gt Board Test System to run the application A GUI appears displaying the application tab that corresponds to the design running in the FPGA The Cyclone IV GX transceiver starter board s flash memory ships preconfigured with the design that corresponds to the Config GPIO SSRAM Flash and Ethernet tabs La If you power up your board with the USER switch 58 2 in the off position or if you load your own design into the FPGA with the Quartus II Programmer you receive a message prompting you to configure your board with a valid Board Test System design Refer to The Configure Menu for information about configuring your board Using the Board Test System This section describes each control in the Board Test System applica
32. emory on your board To see the flash memory contents type a starting address in the text box and click Read Values starting at the specified address appear in the table The flash memory addresses display in the format the Nios II processor within the FPGA uses that is each flash memory address is offset by 0x08000000 Thus the first location in flash memory appears as 0x08000000 in the GUI If you enter an address outside of the 0x08000000 to 0x08FFFFFF flash memory address space a warning message identifies the valid flash memory address range Write The Write control writes the flash memory on your board To update the flash memory contents change values in the table and click Write The application writes the new values to flash memory and then reads the values back to guarantee that the graphical display accurately reflects the memory contents To prevent overwriting the dedicated portions of flash memory the application limits the writable flash memory address range to 0x08FE0000 to 0x08FFFFFF which corresponds to address range 0x00FE0000 OxOOFFFFFF in the uppermost portion of the user software memory block as shown in Figure 6 1 on page 6 2 and Table 1 on page A 1 Query The CFI Query control updates the memory table displaying the CFI ROM table contents from the flash device Reset The Reset control executes the flash device s reset command and updates the memory table displayed on the Flash tab 6 10
33. er 2 Getting Started References Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation 3 Software Installation ANU S RYA Introduction This section explains how to install the following software m Quartus II Web Edition Software m Cyclone IV GX Transceiver Starter Kit m USB Blaster driver Installing the Quartus Il Web Edition Software The Quartus II Web Edition Software provides the necessary tools used for developing hardware and software for Altera FPGAs Included in the Quartus II Web Edition Software are the Quartus II software the Nios II EDS and the MegaCore IP Library The Quartus II software including SOPC Builder and the Nios II EDS are the primary FPGA development tools used to create the reference designs in this kit To install the Altera development tools perform the following steps 1 Run the Quartus II Web Edition Software you acquired in Software on page 1 1 2 Follow the installer instructions to complete the installation process If you have difficulty installing the Quartus II software refer to Quartus II Installation amp Licensing for Windows and Linux Workstations Licensing Considerations The Quartus II Web Edition Software is license free and supports Cyclone IV GX devices without any additional licensing requirement This kit also works in conjunction with the Quartus II Subscription Edition Software once you obtain the proper license file To purchase a
34. et MAC and an HTML web server When you power up the board with the USER switch 58 2 in the off position the Cyclone IV GX FPGA configures with the Board Update Portal design example The design can obtain an IP address from any DHCP server and serve a web page from the flash on your board to any host computer on the same network The web page allows you to upload new FPGA designs to the user hardware 1 portion of flash memory and provides links to useful information on the Altera website including links to kit specific and design resources gt After successfully updating the user hardware 1 flash memory you can load the user design from flash memory into the FPGA To do so set the USER switch 58 2 to the on position and power cycle the board The source code for the Board Update Portal design resides in the install dir NkitsNcycloneIVGX 4cgx15 starterNexamples directory If the Board Update Portal is corrupted or deleted from the flash memory refer to Restoring the Flash Device to the Factory Settings on page A 4 to restore the board with its original factory contents Connecting to the Board Update Portal Web Page This section provides instructions to connect to the Board Update Portal web page Before you proceed ensure that you have the following m APC with a connection to a working Ethernet port on a DHCP enabled network separate working Ethernet port connected to the same network for the bo
35. her applications that use the JTAG chain are running To configure the Cyclone IV GX FPGA perform the following steps 1 Start the Quartus II Programmer 2 Click Add File and select the path to the desired sof 3 Turn on the Program Configure option for the added file 4 Click Start to download the selected file to the FPGA Configuration is complete when the progress bar reaches 10076 La Using the Quartus II programmer to configure a device on the board causes other JTAG based applications such as the Board Test System and the Power Monitor to loose their connection to the board Restart those applications after configuration is complete March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 20 Chapter 6 Board Test System Configuring the FPGA Using the Quartus 11 Programmer Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation A Programming the Flash Memory JN RAN Device Introduction As you develop your own project using the Altera tools you can program the flash memory device so that your own design loads from flash memory into the FPGA on power up This appendix describes the preprogrammed contents of the common flash interface CFI flash memory device on the Cyclone IV GX transceiver starter board and the Nios II EDS tools involved with reprogramming the user portions of the flash memory device The Cyclone IV GX transceiver starter boa
36. install dir NkitsNcycloneIVGX 4cgx15 starter examples max2 directory When configuration is complete the CONF DONE LED D2 illuminates signaling that the Cyclone IV GX device configured successfully For more information about the PFL megafunction refer to AN 386 Using the Parallel Flash Loader with the Quartus II Software March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 4 2 Chapter 4 Board Setup Factory Default Switch Settings Factory Default Switch Settings This section shows the factory switch settings for the Cyclone IV GX transceiver starter board Figure 4 1 shows the switch locations and the default position of each switch on the bottom side of the board Figure 4 1 Switch Locations and Default Settings on the Board Bottom mr ON 0 e 1 58 ju Md restore the switches to their factory default settings perform the following steps 1 Set DIP switch bank 58 to match Table 4 1 and Figure 4 1 Table 4 1 S8 Dip Switch Settings Board Default Switch Label Function Position 1 CLKSEL Switch 1 has the following options On When on the onboard clock is used for the FPGA differential clock inputs m When off the differential SMA clock is used for the FPGA differential clock inputs 2 USER_PGM Switch 2 has the following options Off When on the PFL loads the user hardware 1 design on power up When off the
37. int for a new prototype board design demos Contains demonstration applications documents Contains the kit documentation examples Contains the sample design files for the Cyclone IV GX Transceiver Starter Kit factory recovery Contains the original data programmed onto the board before shipment Use this data to restore the board with its original factory contents Installing the USB Blaster Driver The Cyclone IV GX transceiver starter board includes integrated USB Blaster circuitry for FPGA programming However for the host computer and board to communicate you must install the USB Blaster driver on the host computer T Installation instructions for the USB Blaster driver for your operating system are available on the Altera website On the Altera Programming Cable Driver Information page of the Altera website locate the table entry for your configuration and click the link to access the instructions Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation ATEA 4 Board Setup Introduction The instructions in this chapter explain how to set up the Cyclone IV GX transceiver starter board Setting Up the Board To set up and power up the board perform the following steps 1 The Cyclone IV GX transceiver starter board ships with its board switches preconfigured to support the design examples in the kit If you suspect your board might not be currently configured with the
38. ion of the transceiver starter board Configuring the Cyclone IV GX FPGA Running the Board Test System designs For complete information about the transceiver starter board refer to the Cyclone IV GX Transceiver Starter Board Reference Manual Before You Begin 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 Inspect the Board To inspect board perform the following steps 1 References Place the board on an anti static surface and inspect it to ensure that it has not been damaged during shipment Without proper anti static handling you can damage the board CAUTION Verify that all components are on the board and appear intact Use the following links to check the Altera website for other related information For the latest board design files and reference designs refer to the Cyclone IV GX Transceiver Starter Kit page For the Cyclone IV GX device documentation refer to the Literature Cyclone IV Devices page To purchase devices from the eStore refer to the Devices page For Cyclone IV GX OrCAD symbols refer to the Capture CIS Symbols page For Nios II 32 bit embedded processor solutions refer to the Embedded Processing page March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 2 2 Chapt
39. ither line a warning message appears User LEDs The User LEDs control displays the current state of the user LEDs Click the Toggle LEDs buttons to turn the board LEDs on and off Push Button Switches The read only Push button switches control displays the current state of the board user push buttons Press a push button on the board to see the graphical display change accordingly March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 8 The SSRAM Tab Chapter 6 Board Test System Using the Board Test System The SSRAM tab allows you to read and write SRAM and flash memory on your board Figure 6 4 shows the SSRAM tab Figure 6 4 The SSRAM Tab Board Test System File Configure Help General GPIO SSRAM Flash Ethernet SMA Cle Cyclone IV GX Transceiver Starter Kit F Board Test System Start address Range 0x20 0000 OxSF FFFF 0x200000 Version 9 1 2 Address 0x200000 0x200010 0 200020 0200020 0200040 0200050 0x2000 0 0x200070 Ox 200080 0x200090 Ca Cae 0 3 cde 0123 45 789ab de 01234 56789abc 012245 789abcd s0123456 78Sabcde 01224567 4 7 cde 0123 45 789ab de 01234 5 789abc e 012345 789abcd 012345 789abcde 01234567 ESabedef 8 B cde 0123 ase78Sab de 01234 5 76Sabe 012345 789abcd so12345 789abede 012345 7 S9abcdef C F cdef0123 a5e789ab lde 01234
40. l Register Settings The Control register settings controls specify loopback test parameters The following settings are available for analysis m Serial loopback Routes signals back to the sender La When off use coaxial cables to loop the transceiver transmit signals J10 and J11 back to the receiver signals J8 and J9 for the test to work properly m VODc Specifies the voltage output differential of the transmitter buffer m Pre emphasis Specifies the amount of pre emphasis on the transmitter buffer m RX equalizer Enables the static equalizer m DC gain Specifies the boost to incoming signals Status These controls display current transaction performance analysis information collected since you last clicked Start m PLLlock Shows the PLL locked or unlocked state m Pattern sync Shows the pattern synced not synced state The pattern is considered synced when the start of the data sequence is detected m TXand RX performance bars Show the percentage of maximum data rate that the requested transactions are able to achieve m Gbps Shows the number of gigabits of data analyzed per second for transmit and receive March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 14 Chapter 6 Board Test System Using the Board Test System Error Control The Error control controls track transaction errors detected during analysis m Detected errors Displays the number of transacti
41. ltera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 4 Appendix Programming the Flash Memory Device Restoring the Flash Device to the Factory Settings Restoring the Flash Device to the Factory Settings This section describes how to restore the original factory contents to the flash memory device on the transceiver starter board Make sure you have the Nios II EDS installed and perform the following instructions 1 10 1 1 N 13 Set the board switches to the factory default settings described in Factory Default Switch Settings on page 4 2 Launch the Quartus II Programmer to configure the FPGA with a sof capable of flash programming Refer to Configuring the FPGA Using the Quartus Programmer on page 6 19 for more information Click Add File and select lt install dir NkitsNcycloneIVGX 4cgx15 starterMfactory recovery Nc4gx15 starter bup s of Turn on the Program Configure option for the added file Click Start to download the selected configuration file to the FPGA Configuration is complete when the progress bar reaches 100 The CONF DONE LED D2 and the four user LEDs D5 D8 illuminate indicating that the flash device is ready for programming On the Windows Start menu click Programs gt Altera gt Nios II EDS gt Nios II Command Shell In the Nios II command shell navigate to the lt install dir NkitsNcycloneIVGX 4cgx15 starter MVfactory recovery direc
42. ngs dtia eese eese enn 4 2 Chapter 5 Board Update Portal Introduction ei secs ee te EA E EE ee eels 5 1 Connecting to the Board Update Portal Web Page 5 1 Using the Board Update Portal to Update User Designs 5 2 Chapter 6 Board Test System Introduction ge eke RU ppp eee eb Weder eee 6 1 Preparing the Board dotes 6 3 Running the Board Test System ite e yiu eiaa nen 6 3 March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide Using the Board Test System 44 444444 aek E enini 6 3 The Menu Rss erre det ete peer tco estates 6 3 Board Rework Required piss yord d eh Rer RR ex ele e 6 4 The General Tab ssseeeeeeeeee ee RR e e hh re 6 5 Board Information tpe ue RE vp pate LRA DEG saut I rU CaaS 6 5 MAX M RegisteiS aiite tite aset ebore Doi 0 Cou Muni 6 5 JTAG Chasse One hed uis bela ace E de vae i valde ie Ya eV 6 6 Flash Memory ere E LE RE EE a pe 6 6 Th GPIO TREE ERA
43. on errors detected in the hardware m Inserted errors Displays the number of errors inserted into the transaction stream m Insert Error Inserts a one word error into the transaction stream each time you click the button Insert Error is only enabled during transaction performance analysis m Clear Errors Resets the Detected errors and Inserted errors counters to zeros The PCle Tab The PCIe tab allows you to run a PCIe loopback test on your board You can also load the design and use an oscilloscope to measure an eye diagram of the PCIe transmit signals Figure 6 8 shows the PCIe tab Figure 6 8 The PCle Tab Board Test System File Configure Help H Cyclone IV GX Transceiver Starter Kit Board Test System Version 9 1 2 AND ea Control register settings Serial loopback FPGA status Messages EN Error control Detected the Transceiver SMA and PCI Express hardware 3 3 configuration i Detected errors 0 Inserted errors 0 Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 15 Using the Board Test System The following sections describe the controls on the PCIe tab Start The Start control initiates the loopback tests Stop The Stop control terminates the loopback tests Data Pattern The Data pattern control specifies the type of data contained in the transactions The following data types ar
44. ou to exercise the related board features Highlights appear in the board picture around the corresponding components The Power Monitor button starts the Power Monitor application that measures and reports current power information for the board Because the application communicates over the JTAG bus to the MAX II device you can measure the power of any design in the FPGA including your own designs The Board Test System and Power Monitor share the JTAG bus with other applications like the Nios II debugger and the SignalTap II Embedded Logic Analyzer Because the Quartus II programmer uses most of the bandwidth of the JTAG bus other applications using the JTAG bus might time out Be sure to close the other applications before attempting to reconfigure the FPGA using the Quartus II Programmer Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 3 Preparing the Board Preparing the Board With the power to the board off perform the following steps 1 Connect the USB cable to the board 2 Verify the settings for the board settings DIP switch bank 57 and S8 match Table 4 1 on page 4 2 and Table 4 2 on page 4 3 3 Set the USER_PGM switch 58 2 to the on position 4 Turn the power to the board on The board loads the design stored in the user hardware 1 portion of flash memory into the FPGA If your board is still in the factory configuration or if you have download
45. out This Kit Introduction ie added be oe 1 1 Kit Features s een 1 1 HardWare RN Dd ques 1 1 MUI RC T 1 1 Quartus II Web Edition Software 1 2 Cyclone IV GX Transceiver Starter Kit Installer 1 2 Chapter 2 Getting Started Introduction 34e is ie D ed UR Pen en edd ed REPE 2 1 Before You Rene etats re te eee 2 1 Inspect th put pen med TER de ee d aede titt 2 1 R f rences dendo eerte a dune nette 2 1 Chapter 3 Software Installation IMtroduetion Alba we ANE eA gd Leg Eee 3 1 Installing the Quartus II Web Edition Software 3 1 Licensing Considerations 2 3 1 Installing the Cyclone IV GX Transceiver Starter Kit 3 1 Installing the USB Blaster Driver sssri deute Ih n 3 2 Chapter 4 Board Setup Introd ctoD osos espe Hp Pe pe 4 1 Setting Up he Board E EE ane eG Up E E eas 4 1 Factory Default Switch Setti
46. r Kit page of the Altera website Restoring the MAX CPLD to the Factory Settings This section describes how to restore the original factory contents to the MAX II CPLD on the transceiver starter board Make sure you have the Nios II EDS installed and perform the following instructions 1 Set the board switches to the factory default settings described in Factory Default Switch Settings on page 4 2 Setting DIP switch 58 3 to the off position includes the MAX II device in the chain Launch the Quartus II Programmer Click Auto Detect Click Add File and select install dir NkitsNcycloneIVGX 4cgx15 starter Mfactory recovery max2 pof Turn on the Program Configure option for the added file Click Start to download the selected configuration file to the MAX II CPLD Configuration is complete when the progress bar reaches 100 To ensure that you have the most up to date factory restore files and information about this product refer to the Cyclone IV GX Transceiver Starter Kit page of the Altera website March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide Cyclone IV GX Transceiver Starter User Guide Appendix A Programming the Flash Memory Device Restoring the MAX II CPLD to the Factory Settings March 2010 Altera Corporation ANU 8J AN Additional Information Revision History The following table displays the revision history for this user guid
47. ransceiver Starter Kit User Guide 6 2 Chapter 6 Board Test System Introduction Figure 6 1 Board Test System Graphical User Interface IAN Board Test System File Configure Help General GPIO SSRAM Flash Ethernet SH Cyclone IV GX Transceiver Starter Kit EUNTES Board Test System Name Cydone IV GX Transceiver Starter Board Part number 6XX 42746R 08 Serial number 4X15F12345 Factory test version 9 1 2 1 ATERA Factory test date Mon Jul 13 16 33 57 PDT 2009 MAC address 00 07 ED 19 C3 71 MAX II version 2 MAX II registers Version 9 1 2 oe PSR o PSS 0 Use PSR 2g chain devices USB Blaster USB 0 1 EPACGX15 2 EPM2210 FPGA confgraton sas Messages Detected the GPIO SSRAM Flash and Ethernet hardware configuration Factory software _ 4096KB 0x40 0000 0x79 EFFE Zipfs html web content B 0x1A 0000 Ox3F FFFF 2KB 0x12 0000 0x19 FFFF 0x04 0000 Ox11 FFFF 10 02 0000 0x09 FFFF 328 loi 8000 0x01 FFFF __ 0x01 0000 0x01 7FFF Ethernet option bits 2KB 0x00 8000 Ox00 FFFF User design reset vector 0 00 0000 0x00 Several designs are provided to test the major board features Each design provides data for one or more tabs in the application The Configure menu identifies the appropriate design to download to the FPGA for each tab After successful FPGA configuration the appropriate tab appears and allows y
48. rd ships with the CFI flash device preprogrammed with a default factory FPGA configuration for running the Board Update Portal design example and a default user configuration for running the Board Test System demonstration There are several other factory software files written to the CFI flash device to support the Board Update Portal These software files were created using the Nios II EDS just as the hardware design was created using the Quartus II software TT For more information about Altera development tools refer to the Design Software page of the Altera website CFI Flash Memory Map Table 1 shows the default memory contents of the 128 Mb Numonyx JS28F128P33BF CFI flash device For the Board Update Portal to run correctly and update designs in the user memory this memory map must not be altered Table A 1 Byte Address Flash Memory Map Block Description Size Address Range User software 8492KB 0x00800000 OxO0FFFFFF Factory software 4 096 KB 0x00400000 0x0079FFFF zipfs html web content 2 432 KB 0x001A0000 Ox003FFFFF User hardware 2 512 KB 0x00120000 0x0019FFFF User hardware 1 512 KB 0x000A0000 0x0011FFFF Factory hardware 512 KB 0x00020000 0x0009FFFF PFL option bits 32 KB 0x00018000 0x0001FFFF Board information 32 KB 0x00010000 0x00017FFF Ethernet option bits 32 KB 0x00008000 0x0000FFFF User design reset vector 32 KB 0x00000000 0x00007FFF Altera recommends
49. s return 1 gt Simple Socket Server Command 1 The following sections describe the controls on the Ethernet tab Start The Start control initiates the Ethernet application Reset The Reset control erases the previous session results resets the test and redisplays the instructions Nios Il Terminal Output The Nios II terminal output control displays output from the application Socket Session Menu The Socket session menu allows you to interactively enter keyboard characters to select menu items The application responds to the keypress and takes appropriate action March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 12 Chapter 6 Board Test System Using the Board Test System The SMA Tab The 5 tab allows you to run a transceiver SMA loopback test on your board You can also load the design and use an oscilloscope to measure an eye diagram of the SMA transmit signals Figure 6 7 shows the SMA tab Refer to Board Rework Required on page 6 4 to ensure your board is set up correctly for this test Figure 6 7 The SMA Tab Al Board Test System File Configure Help General SSRAM Flash Ethernet SMA PCIe Cyclone IV GX Transceiver Starter Kit NA Board Test System Data rate Version 9 1 2 Data pattern PRES 7 PRBS 15 Control register settings Omas sei gba PRES 31 PCIe compliance Status PLL lock Pattern sync TX
50. ser Designs on page 5 2 for more information Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Appendix A Programming the Flash Memory Device A 3 Programming Flash Memory Using the Nios Il EDS If you have generated a sof that operates without a software design file you can still use the Board Update Portal to upload your design In this case leave the Software File Name field blank Programming Flash Memory Using the Nios Il EDS The Nios EDS offers a nios2 flash programmer utility to program the flash memory directly To program the flash files or any compatible S Record File srec to the board using nios2 flash programmer perform the following steps 1 Set the USER PGM switch 58 2 to the off position to load the Board Update Portal design from flash memory on power up 2 Attach the USB Blaster cable and power up the board 3 Ifthe board has powered up and the LCD displays either Connecting or a valid IP address such as 152 198 231 75 proceed to step 8 If no output appears on the LCD or if the CONF DONE LED D2 does not illuminate continue to step 4 to load the FPGA with a flash writing design 4 Launch the Quartus II Programmer to configure the FPGA with a sof capable of flash programming Refer to Configuring the FPGA Using the Quartus II Programmer on page 6 19 for more information 5 Click Add File and select install dir NkitsNcycloneIVGX 4cgx15 starterNfac
51. ter Kit version Power Monitor to start the application The Power Monitor communicates with the MAX II device on the board through the JTAG bus A power monitor circuit attached to the MAX II device allows you to measure the power that the Cyclone IV GX FPGA device is consuming regardless of the design currently running Figure 6 9 shows the Power Monitor Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Chapter 6 Board Test System 6 17 The Power Monitor Figure 6 9 The Power Monitor Power Monitor ANU RAN Power information ILL mS D Version 9 1 2 RMS Maximum Minimum General information MAX II version 2 mVolt 1214 1214 1214 mAmp 432 436 428 Power rail VCCINT mWatt 524 529 519 800 mW Messages 0 mw Graph settings USB Blaster USB 0 EPM2210 Scale select Update speed 200 mW Fast v The following sections describe the Power Monitor controls General Information The General information controls display the following information about the MAX II device version Indicates the version of MAX II code currently running on the board The MAX II code resides in the lt install dir NkitsNcycloneIVGX 4cgx15 starter MVfactory recovery and lt install dir gt kits cycloneIVGX_4cgx15_starter examples max2 directories Newer revisions of this code might be available on the Cyclone IV GX Transceiver Starter Kit page of the Altera website m
52. ter Kit page of the Altera website include flash files You can also create flash files from your own custom design Refer to Preparing Design Files for Flash Programming on page A 2 for information about preparing your own design for upload To upload a design over the network into the user portion of flash memory on your board perform the following steps 1 Perform the steps in Connecting to the Board Update Portal Web Page to access the Board Update Portal web page 2 In the Hardware File Name field specify the flash file that you either downloaded from the Altera website or created on your own If there is a software component to the design specify it in the same manner using the Software File Name field otherwise leave the Software File Name field blank 3 Click Upload The file takes about 20 seconds to upload 4 Toconfigure the FPGA with the new design after the flash memory upload process is complete set the USER switch 58 2 to the on position and power cycle the board or press the SEL button 52 until the 0 LED D4 is on and the 1 LED D3 is off and then press the CONF button 51 Refer to Table 6 2 on page 6 5 for information about the LEDs As long as you don t overwrite the factory image in the flash memory device you can continue to use the Board Update Portal to write new designs to the user hardware 1 portion of flash memory If you do overwrite the factory image
53. tion The Configure Menu Each test design tests different functionality and corresponds to one or more application tabs Use the Configure menu to select the design you want to use Figure 6 2 shows the Configure menu March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide CAUTION The General Tab Chapter 6 Board Test System Using the Board Test System Figure 6 2 The Configure Menu Board Test System Help Configure FPGA with GPIO Memory and Ethernet Design Configure FPGA with SMA and PCIe Design Configure m 4 Raard Tact Guctam To configure the FPGA with a test system design perform the following steps 1 Onthe Configure menu click the configure command that corresponds to the functionality you wish to test 2 When configuration finishes the design begins running in the FPGA The corresponding GUI application tabs that interface with the design enable Board Rework Required For the SMA tests to work correctly you must modify your board The Ethernet PHY and transceiver SMA connectors use the same transceiver path The board ships with the transceiver path connected to the Ethernet PHY A solder modification is required to change the transceiver path from the Ethernet PHY to the transceiver SMA connectors To avoid damage to your board have an experienced technician perform the board modifications Table 6 1 shows the required placement of the 0 resistors and 0 1
54. tory and type the following command to run the restore script restore sh Restoring the flash memory might take several minutes Follow any instructions that appear in the Nios II command shell After all flash programming completes cycle the POWER switch SW1 off then on Using the Quartus II Programmer click Add File and select lt install dir NkitsNcycloneIVGX 4cgx15 starterMfactory recovery Nc4gx15 starter bup s of Turn on the Program Configure option for the added file Click Start to download the selected configuration file to the FPGA Configuration is complete when the progress bar reaches 100 The CONF DONE LED D2 and the four user LEDs D5 D8 illuminate indicating the flash memory device is now restored with the factory contents Cycle the POWER switch SW1 off then on to load and run the restored factory design The restore script cannot restore the board s MAC address automatically In the Nios command shell type the following Nios EDS command nios2 terminal and follow the instructions in the terminal window to generate a unique MAC address Cyclone IV GX Transceiver Starter Kit User Guide March 2010 Altera Corporation Appendix Programming the Flash Memory Device 5 Restoring the MAX II CPLD to the Factory Settings To ensure that you have the most up to date factory restore files and information about this product refer to the Cyclone IV GX Transceiver Starte
55. tory recovery Nc4gx15 starter bup s of 6 Turn on the Program Configure option for the added file 7 Click Start to download the selected configuration file to the Configuration is complete when the progress bar reaches 100 The CONF DONE LED D2 and the four user LEDs D5 D8 illuminate indicating that the flash device is ready for programming 8 Windows Start menu click Programs gt Altera gt Nios II EDS gt Nios II Command Shell 9 In the Nios II command shell navigate to the install dir NkitsNcycloneIVGX 4cgx15 starter factory_recovery directory or to the directory of the flash files you created in Creating Flash Files Using the Nios II EDS on page 2 and type the following Nios II EDS command nios2 flash programmer base 0x08000000 lt yourfile gt hw flash 10 After programming completes if you have a software file to program type the following Nios II EDS command nios2 flash programmer base 0x08000000 lt yourfile gt sw flash 11 Set the USER PGM switch 58 2 to the on position and power cycle the board or press the SEL button 52 until the 0 LED D4 is on and the 1 LED 03 is off and then press the CONF button 51 to load and run the user hardware 1 design Programming the board is now complete T For more information about the nios2 flash programmer utility refer to the Nios II Flash Programmer User Guide March 2010 A
56. ync Shows the pattern synced or not synced state The pattern is considered synced when the start of the data sequence is detected March 2010 Altera Corporation Cyclone IV GX Transceiver Starter Kit User Guide 6 16 Chapter 6 Board Test System The Power Monitor TX and RX performance bars Show the percentage of maximum data rate that the requested transactions are able to achieve Gbps Shows the number of gigabits of data analyzed per second for transmit and receive Error Control The Error control controls track transaction errors detected during analysis Detected errors Displays the number of transaction errors detected in the hardware Inserted errors Displays the number of errors inserted into the transaction stream Insert Error Inserts a one word error into the transaction stream each time you click the button Insert Error is only enabled during transaction performance analysis Clear Errors Resets the Detected errors and Inserted errors counters to zeros The Power Monitor The Power Monitor measures and reports current power information for the board To start the application click Power Monitor in the Board Test System application You can also run the Power Monitor as a stand alone application Power exe resides in the install dir NkitsNcycloneIVGX 4cgx15 starterNexamplesNboard test system directory On Windows click Start gt Programs gt Altera gt Cyclone IV GX Transceiver Star

Download Pdf Manuals

image

Related Search

Related Contents

Sharp XEA107BK  "取扱説明書"  User Manual and Instructions Model RRC² - Rocket    静電気除去 スーパースリムノズル 取扱説明書  Seminario de Metrología Legal, San José, 29  General information  

Copyright © All rights reserved.
Failed to retrieve file