Home
        Cyclone IV GX FPGA Development Kit User Guide
         Contents
1.                                     ero E  Bsp  DDR2   Hen             CB   Start Stop      Power Monitor   Write Read Total             Write  MBps   651 5708  Read  MBps   649 4232  Total  MBps   1300 9940    Error control    Daggar o go       Detected errors  0  Inserted errors  0    Insert Error   Clear      Number of addresses to write and read    524288 Max                                 type     PRBS    Memory    Math       Messages  Detected DDRZ Project               Read and write control       Write then read    Read only    Write only                November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 12    Chapter 6  Board Test System  Using the Board Test System    The following sections describe the controls on the DDR2 tab     Port    The Port control directs communication to one of two DDR2 memory ports on your  board  Each interface is 32 bits wide  Since there are two DDR2 ports on the  Cyclone IV GX FPGA development board  the DDR2 tab has 2 radio buttons to  monitor each DDR2 interface     Start    The Start control initiates DDR2 memory transaction performance analysis     Stop    The Stop control terminates transaction performance analysis     Performance Indicators    These controls display current transaction performance analysis information collected  since you last clicked Start     m Write  Read  and Total performance bars   Show the percentage of maximum  theoretical data rate that the requested transactions are abl
2.               RYAN   101 Innovation Drive    San Jose  CA 95134  www altera com    UG 01094 1 1    Cyclone IV GX FPGA Development Kit  User Guide    cy    Subscribe    Copyright    2014 Altera Corporation  All rights reserved  Altera  The Programmable Solutions Company  the stylized Altera logo  and specific device designations  are trademarks and or service marks of Altera Corporation in the U S  and other countries  All other words and logos identified as trademarks and or service marks  are the property of Altera Corporation or their respective owners  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 appfication 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 2008  NSAI Certified          Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation     N DTE SYN     Contents       Chapter 1  About This Kit    Argi E
3.            ES            bode Yep SES 6   9  ReSet                                  CU                                 6   9    November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    iv Contents                                                                  S P                                                 6 9  Flash Memoty Map   isis iu  hse tee hee a e EEEE eee ae es Ree Relea ens 6 9  The SSRAM Tab                   ERREUR ERA Vee oe PAs        Y ae ede Hehe das 6 10  Read             th ted            AEE RD    HS RRS Es SRE Ri eS 6 10       6 11  Random Test                RE      E RR hea bee         PG                          6 11  Incrementing Test icc  arte ea s ee    Rak Fa dave mica ve perpe e pate 6 11  The DDR2 Tab           Ra Y PR EU        ae DG ERI GG FC PDC p eR RS 6 11  POLE                                ee tote    ato         Bsa fot                          6   12  Stat cei d ex ado Geb Ea aca WS ERIS      Feeds GEESE ARE               rage ees 6 12  SLOP   popa S                     ied           Ste             t pear 6   12  Performance Indicators                                                                 6 12  Ettor      Juin ier sate ERO RAD Vp I bebo        6 12  Number of Addresses to Write and Read                                              6 12  Data           Er 6 12  Read and Write Control                                                       0      2     6 13  The HSMCG Tab                    e e eet e r
4.      m Math   Selects data generated from a simple math function within the FPGA  fabric     Read and Write Control    The Read and write control specifies the type of transactions to analyze  The  following transaction types are available for analysis     m Write Read   Selects read and write transactions for analysis   m Read Only   3elects read transactions for analysis     m Write Only   Selects write transactions for analysis     The HSMC Tab    The HSMC tab allows you to perform loopback tests on the HSMC A and HSMC B  ports  Figure 6   7 shows the HSMC tab     Figure 6 7  The HSMC Tab  AREI Test System   215  xl    Configure Help About                              ero  itas   55         DDRZ    HSMC        Channel     HSMA x4 XCVR Start Stop   C   5     x41 single ended       HSMB x4 XCVR     HSMB x41 single ended             Transceiver        Control                Data pattern Error control     PRBS  Detected errors  0   C PRBS 15 Inserted errors  0       PRBS 23 Insert Error   Clear         PRBS31          Status       Tx PLL lock   locked    Pattern sync   synced    Channel lock   locked  Messages    Detected HSMC Project       1550 0260 1550 0260  MBps                November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 14    Chapter 6  Board Test System  Using the Board Test System     La You must have the loopback HSMC installed on the HSMC connector that you are    testing for this test to work correctly     The following sections
5.    EPCOR ad eR RS 6 19  Set NEW  Frequency                            nite eed        Fas dy cire o ek Re ien          eA o 6 19  Configuring the FPGA Using the Quartus                                                             6 19    Appendix A  Programming the Flash Memory Device    CFI Flash Memory Map                                                                  A 1  Preparing Design Files for Flash Programming                                               A 2   Creating Flash Files Using the Nios    EDS                                                  2  Programming Flash Memory Using the Board Update Portal                                   A 3  Programming Flash Memory Using the Nios                                                   A 3  Restoring the Flash Device to the Factory Settings                                            A 4  Restoring the MAX II CPLD to the Factory Settings                                           A 5   Additional Information   Document Revision History                                                             Info 1  How to Contact Altera                    AE Ce EEUU Hb Eu ee eee E ee Pepe ed Info 1  Typographic Conventions   es        tpe rb mor ep eie date deb            Ruedas        Info 1    Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    AHERN 1  About This Kit       The Altera   Cyclone   IV GX FPGA Development Kit is a complete design  environment that includes both the hardware and software
6.    output  lt yourfile gt  hw flash   offset 0x4E0000    pfl   optionbit 0x18000   programmingmode PS     m For Nios II  elf files     elf2flash   base 0x08000000   end 0x0BFFFFFF   reset 0x09F20000    input  lt yourfile gt  sw elf   output  lt yourfile gt  sw flash    boot  SOPC_KIT_NIOS2 components altera_nios2 boot_loader_cfi srec    Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter      A 3    Programming Flash Memory Using the Board Update Portal    Ls    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   lt filename gt _hw flash for hardware design files or  lt filename gt _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 User  Designs  on page 5 2 for more information     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
7.   CAUTION    installed     Figure 6 8  The Power Monitor              ioj xi  Gneral Information Power Information  MAX II version  1      Current   Maximum   Minimum  Power Rail                 E            45 47 26  200       100  M 0 m     parages Graph Settings   connections USB Blaster on localhost Scale Select  Update Speed      USB 0   EPM221082       frat       Reset               The following sections describe the Power Monitor controls     General Information    The General information controls display the following information about the  MAX II device     m           version   Indicates the version of MAX II code currently running on the  board  The MAX II code resides in the   install  dir   NkitsNcycloneIVGX 4cgx150                           recovery and  lt install  dir gt  kits cycloneIVGX_4cgx150_fpga examples max2 directories  Newer  revisions of this code might be available on the Cyclone IV GX FPGA  Development Kit page of the Altera website     m Power rail   Selects the power rail to measure  After selecting the desired rail  click  Reset to refresh the screen with new board readings     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 17  The Power Monitor     T A table with the power rail is available in the Cyclone IV GX FPGA  Development Board Reference Manual     Power Information    The Power information control displays current  maximum  and minimum power  readings for the following u
8.   Indicate command names  dialog box titles  dialog box options  and other GUI    Bold Type with Inita  Capital labels  For example  Save As dialog box  For GUI elements  capitalization matches    Letters       the GUI   Indicates directory names  project names  disk drive names  file names  file name  bold type extensions  software utility names  and GUI labels  For example   qdesigns    directory  D  drive  and chiptrip gdf file   Italic Type with Initial Capital Letters   Indicate document titles  For example  Stratix IV Design Guidelines   Indicates variables  For example  n   1     italic type Variable names are enclosed in angle brackets          For example    file name   and   lt project name   pof file                    November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    Info 2    Additional Information  Typographic Conventions       Visual Cue    Initial Capital Letters    Indicate keyboard keys and menu names  For example  the Delete key and the  Options menu         Subheading Title     Quotation marks indicate references to sections within a document and titles of  Quartus    Help topics  For example     Typographic Conventions         Courier type    Indicates signal  port  register  bit  block  and primitive names  For example  data1   tdi  and input  The suffix n denotes an active low signal  For example  resetn     Indicates command line commands and anything that must be typed exactly as it  appears  For example  c  qdesigns tu
9.  Ctrl Q     Use Fast Configuration             Use Quartus II Programmer       To configure the FPGA with a test system design  perform the following steps     1  On the 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     The Config Tab    The Config tab shows information about the board   s current configuration    Figure 6 1 on page 6   2 shows the Config tab  The tab displays the contents of the  MAX II registers  the JTAG 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 Config tab     Board Information    The Board information controls display static information about your board   Name   lIndicates 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 used to test  this board originally     m Factory test date   Indicates the date this board was test originally     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System  Using the Board Test System    6 5    MAX II ver   Indicates the version of MAX II code currently runnin
10.  Using the Nios      EDS    The Nios IT 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  FACTORY switch  SW1 1  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 DN LED 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 4cgx150 fpgaMfactory recovery Nc4gx150 fpga    bup sof     6  Turn on the Program Configure option for the added file     7  Click Start to download the selected configuration file to the FPGA  Configuration  is complete when the progress bar reaches 100   The flash device is ready for  programming     8  On the Windows Start menu  click All Programs  gt  Altera  gt  Nios II EDS  gt  Nios     Command Shell     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit Use
11.  describe the controls on the HSMC tab     Channel  m HSMA x4 XCVR   Selects the transceiver signals on HSMC Port A for test status  reporting    m HSMA x41 single ended   Selects the single ended CMOS signals on HSMC Port  A for test status reporting   m HSMB x4 XCVR   Selects the transceiver signals on HSMC Port B for test status  reporting    m HSMB x41 single ended   Selects the single ended CMOS signals on HSMC Port  B for test status reporting       Start    The Start control initiates HSMC transaction performance analysis     Stop    The Stop control terminates transaction performance analysis     PMA Setting    The PMA Setting button allows you to make changes to the PMA parameters that  affect the active transceiver interface  The following settings are available for analysis     m Serial Loopback   Routes signals from the receiver to the transmitter   m VODc    Specifies the voltage output differential of the transmitter buffer      Pre emphasis tap    m Pre   Specifies the amount of pre emphasis on the pre tap of the transmitter  buffer     m First post   5pecifies the amount of pre emphasis on the first post tap of the  transmitter buffer     m Second post   Specifies the amount of pre emphasis on the second post tap of  the transmitter buffer     m Equalizer   Specifies the setting for the receiver equalizer     m DC gain   Specifies the DC portion of the receiver equalizer     Data Pattern    The Data pattern control specifies the type of data contained in the t
12.  hardware design was created using the  Quartus II software           For more information about Altera development tools  refer to the Design Software   page of the Altera website     CFI Flash Memory Map    Table A 1 shows the default memory contents of the 512 MB  64 MB  single die 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  Part 1 of 2                                            Block Description Size Address Range  Unused                 User software 33536        2  03  0  PPP  Factory software 8192     ee nooo  zipfs  html  web content  4096 KB 2         User hardware 3                 ETTE  User hardware 2          KB   ee  User hardware 1 4864 KB   Oe  Factory hardware 4864 KB  050040           PFL option bits Sg  ru       November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    A 2    A    CAUTION    Chapter    Preparing Design Files for Flash Programming    Table A 1  Byte Address Flash Memory Map  Part 2 of 2              Block Description Size Address Range  Board information 32 KB 1   Ethernet option bits 32 KB 2  in  User design reset vector 32 KB 2                        Altera recommends 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 
13.  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     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 18    Chapter 6  Board Test System  The Clock Control    The Clock Control    The Clock Control application sets the 51570 programmable oscillator to any  frequency between 10 MHz and 810 MHz with eight digits of precision to the right of  the decimal point  The oscillator drives a 2 to 4 buffer that drives a copy of the clock  to all four edges of the FPGA     The Clock Control application runs as a stand alone application  ClockControl exe  resides in the     install dir   NkitsNcycloneIVGX 4cgx150 fpgaNexamplesNboard test system  directory    On Windows  click Start  gt  All Programs  gt  Altera  gt  Cyclone IV GX FPGA  Development Kit   version      Clock Control to start the application     For more information about the 51570 and the Cyclone IV GX FPGA development  board s clocking circuitry and clock input pins  refer to the Cyclone IV GX FPGA  Development Board Reference Manual     The Clock Control communicates with the MAX II device on the board through the  JTAG bu
14.  you need to develop  Cyclone IV GX FPGA designs  The PCI SIG compliant board  high speed mezzanine  card  HSMC   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 3 125 Gbps     Develop embedded designs utilizing the Nios   II processor and the SSRAM  memory    Take advantage of the modular and scalable design by using the high speed  mezzanine card  HSMC  connectors to interface to over 30 different HSMCs  provided by Altera partners  supporting protocols such as Serial RapidIO      10 Gigabit Ethernet  SONET  Common Public Radio Interface  CPRI   Open Base  Station Architecture Initiative  OBSAT  and others    Develop FPGAs design for cost sensitive applications and volume production    Measure the FPGA s low power consumption    This section briefly describes the Cyclone IV GX FPGA Development Kit contents     The Cyclone IV GX FPGA Development Kit includes the following hardware     Cyclone IV GX FPGA development board   A development platform that allows  you to develop and prototype hardware designs running on the Cyclone IV GX  EP4CGX150DF31 FPGA        St For detailed information about the board components and interfaces  refer    to the Cyclone IV GX FPGA Development Board Reference Manual   HSMC loopback board   A daughtercard that allow
15. 00   0131 FFFF  4864KB  0  009   0000   QOES FFFF  LIser hardware 1 4864KB  0  004   0000   009A FFFF  Factory hardware 4864KB  0  0002 0000   0040           PFL Option Bits 32kB 0  0001 8000   0001 FFFF  Board information 32kB 10  0001 0000   0001 7FFF                                 Messages              Detected the GPIO  SRAM  Flash Project                                        The following sections describe the controls on the Flash tab     The Read control reads the flash memory 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      IL 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     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 9  Using the Board Test System    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 refle
16. 00   The flash memory device is now  restored with the factory contents     Cycle the POWER switch  SW3  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                            that you have the most up to date factory restore files and information    about this product  refer to the Cyclone IV GX FPGA Development Kit page of the  Altera website     Restoring the MAX II CPLD to the Factory Settings    This section describes how to restore the original factory contents to the MAX II CPLD  on the FPGA development 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     La    Setting DIP switch SW5 1 to the on position includes the MAX II device in  the JTAG chain    Launch the Quartus II Programmer    Click Auto Detect     Click Add File and select    install dir   NkitsNcycloneIVGX 4cgx150 fpgaMfactory 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                             that 
17. 0220449 ee R               Paes Dake seas acea per retra 6 3  Running the Board Test System   scsi ised craca resiu e em 44 9  e e n o a n      y ord 6 3  Using the Board Test System                                                                6 4  Th   Configure               EP        Kove iat odes RI pede P a EP Ye Xe pad ex 6 4  Th   ConHs          rer ee NEED EU              Mee UMS 6 4  Board Information    ote p v RIA EET      DAS REY FARA aar ee               6 4  MAX II Registers esi suid cis heec kh Re I uc estt  BET EQ        p Re  pee 6 5                                                   Mes 6 6  SOPC Builder Memory                                          2  1 7   7   2  2 2     222 4   2 24 2    6 6   The GPIO Tab              REM EE Ru                   dpi pA               6 6  Character  LOD                                 GBS Ga Y             Wu RD area ac EY aed 6 7   User BEDS  ERR ack ede      es in EGA eee eeepc eR doe aie Pee pu AES 6 7  Push Button Switches                                                   1 0 1 1 1                6 7  Ethernet         bra e eet bee           P dee sab meee ae            6 7   The Flash Tab                      E hay              RRR    Tea aA 6 8  INDIEN PIE 6 8  Write cse                          D err eu Deed aed                 6 9  Random Test    ueber te oo    IO E e                 ied ELA eR a s does 6 9   CE Query              DERE LIVED DI CO ET CD eX e    cere d rex      6 9  Increment Test                
18. A e edu a ae a et Aer ia e 6 13  Channel 2 2  Rib        b            E CER deeds Gene Ba Nd  rag Gk Gare ie Fase aS 6 14  Statt M PX  6 14  SIOP                                             AEDE             ERU           DER EE KR E 6 14  PMA Setting secs re rr                                              I DEO C DENS PT DEAN er quc 6 14  Data Pattern    22e RR RII          GA eden    Sooke E E RS Sobek a CER NER d      RENE 6 14  Etrot Conttol  53 2 vise iQ e eee tate            Nuts vieta eeu            er RES ut 6 15  Status   ee   REA RPG Cr DIU               hee hee       pere 6 15  The Power Monitor   eer RARE pertE3 eERCEY      MERE PEE ELE EYES erAA        6 15  General Information                                                      71      2    6 16  Power Informatio seres ie e             ee      HEREC Sys ERR oe ee Yee hee d 6 17  POW                         MEME ase eae 6 17  Graph Settings  MET  6 17  Reset  cau e b ERO                                    ERE eae 6 17  Calculating Power      ed                  aA               lace Veg          A Va      6 17  The Clock Control   2 serae nates bee PE OE                  eG EEG ce PEG ae RS 6 18  Serial Port Registers 22224 54      a          eR xe             ELE LER PLA d redd es 6 18  IXLAL i1 225 3             Y EG qm br quei bie NEC  Aaa Raa             ebur 6 19  Target Frequency  i423   vo dvo yd aia bdo ae RII P ete Deo date tete Vb Rode tete ete oi 6 19  Reset 91570 2  cer REPRE Sd bre EG REED           
19. GX_4cgx150_fpga examples board_test_system directory  and run the BoardTestSystem exe application     On Windows  click Start  gt  All Programs  gt  Altera  gt  Cyclone IV GX FPGA  Development Kit   version      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 FPGA development board s flash memory ships  preconfigured with the design that corresponds to the appropriate tabs     If you power up your board with the USER FACTORY switch  SW1 1  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     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 4 Chapter 6  Board Test System  Using the Board Test System    Using the Board Test System    This section describes each control in the Board Test System application     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     Figure 6 2  The Configure Menu    ARAT Test System      Configure Help About  Configure with SRAM Flash GPIO Design  Configure with DDR2 Design  Configure with Transceiver Design  Exit
20. IO  SRAM  Flash Project                                              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 II processor  within the FPGA 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 the 0x00200000 to 0x003FFFFF SSRAM address  space  a warning message identifies the valid SSRAM address range     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 11  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     Random Test    Starts an random data pattern test to flash memory     Incrementing Test    Starts an incrementing data pattern test to flash memory     The DDR2 Tab    The DDR2 tab allows you to read and write the DDR2 memory on your board   Figure 6 6 shows the DDR2 tab     Figure 6 6  The DDR2 Tab  AREI Test System l 215  xl    Configure Help About    
21. L  1 1  Hardw  be ibi           gore enter    teh e                     ble           1 1  sc E AEEA  P  1 2   Quartus    Web Edition Software                                           1  4    40      1 1 2  Cyclone IV GX FPGA Development Kit Installer    0    nanan occ 1 3  Chapter 2  Getting Started                       Begin    ced pede ee ed i e ae             anata  de                  2 1  Inspect  the Board  5 2  Leere Ce                       2 1   Reterences                 REIR RR RERO RW bee noe ERE          ese RT E E Der tte deese eid 2 2    Chapter 3  Software Installation    Installing the Quartus II Web Edition Software                                          2        3 1  Licensing  Considerations   gt     discs cect  conn nee Re eren e er tae duces eben iy ea ERR e qe dte 3 1  Installing the Cyclone IV GX FPGA Development Kit                                          3 1  Installing the USB Blaster Driver                                                            3 2  Chapter 4  Development Board Setup  Settine Up the Board                                        RT I LIN LM UMEN 4 1  Factory Default Switch Settings                                                             4 2    Chapter 5  Board Update Portal    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   Preparing the Board  2
22. MBps     m PLL lock   Shows the PLL locked or unlocked state     m Pattern sync   Shows the pattern synced or not synced state  The pattern is  considered synced when the start of the data sequence is detected        Channel lock   Shows the channel locked or unlocked state  When locked  all  lanes are word aligned and channel bonded     m MBps   Shows the number of megabytes of data analyzed per second for transmit  and receive     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  PowerMonitor exe  resides in the     install dir   NkitsNcycloneIVGX 4cgx150 fpgaNexamplesNboard test system  directory    On Windows  click Start  gt  All Programs  gt  Altera  gt  Cyclone IV GX FPGA  Development Kit  lt version gt   gt  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 8 shows the Power Monitor     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 16 Chapter 6  Board Test System  The Power Monitor    A If the VCC rail consumes more than 3 25 A  Altera recommends that the fan be  
23. configuration     Figure 6 1  Board Test System Graphical User Interface                                     loj xl    Configure Help About                                j  GPIO   Flash   ssRaM   0052   ec     Board information       Board Name  Cyclone IV      Development Board   Board P N  6XX 43286R   Serial number  1234   Factory test version Mon Sep 27 12 45 02 PDT 2010  MAC  00 07 ed la cd 0e        II ver  4      MAX II registers             PSO  C UsePSR  PSR        SRST       Use PSS    JTAG chain                   USB Blaster on localhost  USB 0   1   EP4S100G5 40G581  2   EPM221082                  SOPC Builder Memory           extflash       0x0800 0000 OFFF FFFF    sgdma rx 7 0  0710 04  0 0710 04        sgdma tx      0  0710 0400 0710 043       tse mac     1  0x0710 0000 0710 03FF      diosw 0x0700 0870   0700 087F                  Messages  Detected the GPIO  SRAM  Flash Project                           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 that allows you 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 
24. cts the memory contents      57 To prevent overwriting the dedicated portions of flash memory  the application limits  the writable flash memory address range to 0  08    0000 to Ox08FFFFFF  which  corresponds to address range 0x00FE0000   0xOOFFFFFF 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      Random Test    Starts a random data pattern test to flash memory  Limited to scratch page in the  upper 128K block     CFI Query    The CFI Query control updates the memory table  displaying the CFI ROM table  contents from the flash device     Increment Test    Starts an incrementing data pattern test to flash memory  Limited to scratch page in  the upper 128K block     Reset    The Reset control executes the flash device s reset command and updates the memory  table displayed on the Flash tab     Erase  Erases flash memory  Limited to scratch page upper 128K blocks     Flash Memory Map  Displays the flash memory map for the Cyclone IV GX FPGA Development Kit     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 10 Chapter 6  Board Test System  Using the Board Test System    The SSRAM Tab    The SSRAM tab allows you to read and write SRAM and flash memory on your  board  Figure 6   5 shows the SSRAM tab     Figure 6   5  The SSRAM Tab                                   oard Test System  10  x  Configure Help About       System info   GPIO   Flash SSRAM  oo 79    SRAM  S
25. d  default                  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     PSR   3ets 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 1  for more information     PSS   Displays the MAX II PSS register value  Refer to Table 6 1 for the list of  available options     SRST   Resets the system and reloads the FPGA with a design from flash memory  based on the other MAX II register values  Refer to Table 6 1 for more information     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 6 Chapter 6  Board Test System  Using the Board Test System       gt     Because the Config tab requires that a specific design is running in      FPGA  writing  a 0 to SRST or changing the PSO value can cause the Board Test System to stop  running     JTAG Chain    The JTAG chain control shows all the devices currently in the JTAG chain  The  Cyclone IV GX device is always the first device in the chain     La    Setting DIP switch SW5 1 to the on position includes the MAX II device in the         chain     SOPC Builder Memory Map  This control shows the memory map of the FPGA design s SOPC Builder system     The GPIO Tab    The GPIO tab a
26. dustry standard EDA tools       St                     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     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 and  speed     m Generate time limited device programming files for designs that include  MegaCore functions     m Program a device and verify your design in hardware        gt     TheOpenCore Plus hardware evaluation feature is an evaluation tool for  prototyping only  You must purchase a license to use a MegaCore function  in production       St For more information about OpenCore Plus  refer to AN 320  OpenCore Plus   Evaluation of Megafunctions     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 FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 1  About This Kit 1 3  Kit Features    Cyclone IV GX FPGA Development Kit Installer  The license free Cyclone IV GX FPGA Development Kit installer includes all the  documentation and design 
27. e to achieve     m Write  MBps   Read  MBps   and Total  MBps    Show the number of bytes of  data analyzed per second  Each data bus is 32 bits wide and the frequency is  167 MHz double data rate  333 Mbps per pin   equating to a theoretical maximum  bandwidth of 1332 MBps     Error Control    The Error control controls display data errors detected during analysis and allow you  to insert errors     m Detected errors   Displays the number of data 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   Resets the Detected errors and Inserted errors counters to zeros     Number of Addresses to Write and Read    The Number of addresses to write and read control determines the number of  addresses to use in each iteration of reads and writes  Valid values range from 8 to  16 777 216     Data Type    The Data type control specifies the type of data contained in the transactions  The  following data types are available for analysis     m PRBS   Selects pseudo random bit sequences     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 13  Using the Board Test System    m Memory   Selects a generic data pattern stored in the on chip memory of the  Cyclone IV GX device
28. ed to the same network for the board   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  FACTORY switch  SW1 1  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     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    5 2    5     Chapter 5  Board Update Portal  Using the Board Update Portal to Update User Designs    Click Cyclone IV GX FPGA Development 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        also navigate directly to the Cyclone IV GX FPGA Development Kit page of    the Altera website to determine if you have the latest kit software     Using the Board Update Portal to Update User Designs    The Board Update Portal allows you to write new designs to the user hardware  portion of flash memory  Designs must be in the Nios II Flash Programmer File    flash  format     25    Design files available from 
29. en the progress bar reaches 10076     Using the Quartus    programmer to configure a device on the board causes other  JTAG based applications such as the Board Test System and the Power Monitor to lose  their connection to the board  Restart those applications after configuration is  complete     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 20 Chapter 6  Board Test System  Configuring the FPGA Using the Quartus 11 Programmer    Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation        A  Programming the Flash Memory          S RYA T Device       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 FPGA development board  and the Nios II EDS tools involved with reprogramming the user portions of the flash  memory device     The Cyclone IV GX FPGA development board 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
30. es in the    install dir gt  kits cycloneIVGX_4cgx150_fpga examples max2 directory     When configuration is complete  the CONF DN LED 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     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    Chapter 4  Development Board Setup    4 2  Factory Default Switch Settings    Factory Default Switch Settings    This section shows the factory switch settings for the Cyclone IV GX FPGA  development board  Figure 4 1 shows the switch locations and the default position of  each switch on the top side of the board     Figure 4 1  Switch Locations and Default Settings                                                                                                                                                  0 00 JO  e SW2 e SWi e  87654321  OFF 1  4321  User DIP Clock Enable  Switch   DIP Switch       ON  0 ON      JE        Y E  aN  Hos     d  amp   5 4 SW5  Link Width   N    JTAG Chain  DIP Switch Control DIP    1234    25 Switch  ul 34   2 222  II                   To restore the switches to their factory default settings  perform these steps     1  Set DIP switch bank  SW1  to match Table 4 1 and Figure 4 1     Table 4 1  SW1 Dip Switch Settings  Part 1 of 2        Switch al Function relies  Switch 1 has the following options   1 USER_FACTORY m Whe
31. examples for the kit     Download the Cyclone IV GX FPGA Development Kit installer from the   Cyclone IV GX FPGA Development Kit page of the Altera website  Alternatively  you  can request a development kit DVD from the Altera Kit Installations DVD Request  Form page of the Altera website     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    1 4 Chapter 1  About This Kit  Kit Features    Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation         DTE BJAN 2  Getting Started       The remaining chapters in this user guide lead you through the following  Cyclone IV GX FPGA development board with the HSMC daughtercard setup steps     m Inspecting the contents of the kit  m Installing the design and kit software    m Setting up  powering up  and verifying correct operation of the FPGA  development board    m Configuring the Cyclone IV GX FPGA  m Running the Board Test System designs    For complete information about the FPGA development board  refer to the  Cyclone IV GX FPGA Development 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  Kit Features  on page 1 1   If any of the items are missing  contact Altera before you proceed     Inspect the Board    To inspect the board  perform the following steps     1  Place the board on an anti static surface and inspect it to ensure 
32. figured with the 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 FPGA development board ships with design examples stored in the flash  memory device  Verify the USER  FACTORY switch  SW1 1  is set to the off  position to load the design stored in the factory portion of flash memory  Table 4   1  shows the switch locations on the Cyclone IV GX FPGA development board     3  Connect the DC adapter  16 V  60 W  to the DC power jack  J5  on the FPGA board  and plug the cord into a power outlet     A 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  SW3  to the on position  When power is supplied to the  board  a blue LED  D11  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_FACTORY switch  SW1 1  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 portion of flash memory     The kit includes a MAX II design which contains the MAX II PFL megafunction  The  design resid
33. g on the board   The MAX II code resides in the     install dir   NKkitsNcycloneIVGX 4cgx150 fpgaNexamplesWNmax2 directory  Newer  revisions of this code might be available on the Cyclone IV GX FPGA  Development Kit page of the Altera website     MAC   Indicates the MAC address of the board s Ethernet port     MAX II Registers    This control allows you to view and change the current MAX II register values as  described in Table 6 1  Changes to the register values with the GUI take effect  immediately  For example  writing a 0 to SRST resets the board     Table 6 1  MAX II Registers       System Reset   SRST     Page Select Register    Read Write    Register Name Capability    Description    Write only Set to 0 to initiate an FPGA reconfiguration     Determines which of the pages of flash memory to use for  Read   Write   FPGA reconfiguration  The flash memory ships with pages 0        PSR  and 1 preconfigured    When set to 0  the value in PSR determines the page of  Page Select Override Read   Write flash memory to use for FPGA reconfiguration  When set to   PSO  1  the value in PSS determines the page of flash memory to    use for FPGA reconfiguration           Holds the current value of the flash page selected by  pressing PGM_SEL pushbutton with status being displayed  by the following LEDs     e Switch   Read only    EPCS LED   D19 illuminated     m USER LED   D20 illuminated  This is  User hardware 1   as shown on the flash memory map     m FACTORY LED   D21 illuminate
34. g the Quartus II  Programmer  on page 6 19 for more information     3  Click Add File and select    install dir   NkitsNcycloneIVGX 4cgx150 fpgaMfactory recovery Nc4gx150 fpga    bup sof     4  Turn on the Program Configure option for the added file     5  Click Start to download the selected configuration file to the FPGA  Configuration  is complete when the progress bar reaches 100   The flash device is ready for  programming     6  On the Windows Start menu  click All Programs  gt  Altera  gt  Nios II EDS  gt  Nios     Command Shell     7  In the Nios    command shell  navigate to the    install dir   NKkitsNcycloneIVGX 4cgx150                           recovery directory 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     8  After all flash programming completes  cycle the POWER switch  SW3  off then  on     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter      A 5    Restoring the MAX II CPLD to the Factory Settings    10   11     12     13     Using the Quartus II Programmer  click Add File and select    install dir gt  kits  cycloneIVGX_4cgx150_fpga factory_recovery c4gx150_fpga_  bup sof     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 1
35. he graphical display  change accordingly     Ethernet    Click Start Simple Socket Server to run the simple socket  server elf program that  was downloaded into FPGA during configuration     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 8 Chapter 6  Board Test System  Using the Board Test System    The Flash Tab    The Flash tab allows you to read and write flash memory on your board  Figure 6 4  shows the Flash tab     Figure 6 4  The Flash Tab    Board Test System   E  zi xj    Configure Help About                                  System info        Flash   ssram  2082   ecc      Flash  Start address  Range  0  0000 0000   OxOS3FF FFFF           2  0000 Write   Random test   Increment test    CFI Query   Reset   Erase                       os   377          cr      0002 0000  033  0000  FFFFFFFF  FFFFFFFF  FFFFFFFF  0002 0010  FFFFFFFF  FFFFFFFF  FFFFFFFF  FFFFFFFF             0002 0020  FFFFFFFF  F7F7FF6A                  FBESF3FB  0002 0030  FS9SFSFlFB                   FDFFFDFD  F9FSFDFD  0002 0040  FDFSFS9FD                   FBFFFBFF  FFCSDCFB  0002 0050  FFFFFFFF  FFFFFFFF  FFFFFFFF  FFFFFFFF  0002 0060  FFFFFFFF  FFFFFFFF  FFFFFFFF  FFFFFFFF  0002 0070  FFFFFFFF  FFFFFFFF  FFFFFFFF  FFFFFFFF                                              128KB 0x03FE  0000   O3FF FFFF  33 536KB  0  01  2 0000   O3FD FFFF  8192KB  0  0172 0000   O1F1 7FFF  zipfs  html  web cont    4096KB  0  0132 0000   0171 FFFF  User hardware 3 4864KB  0  00  6 00
36. hen off  1 Embedded Blaster Enabled  3  Set DIP switch bank  SW5  to match Table 4   3 and Figure 4 1   Table 4 3  SW5 Dip Switch Settings  JTAG   Switch     Board Function Position  Switch 1 has the following options   1 EPM2210_JTAG_EN      When on  0   the MAX II device is included      the JTAG chain  On  m When off  1   the MAX II device is not included in the JTAG chain   Switch 2 has the following options   2 HSMA_JTAG_EN m When on  0   HSMA is included in the JTAG chain  Off  m When off  1   HSMA is not included in the JTAG chain   Switch 3 has the following options   3 HSMB JTAG EN m When on  0   HSMB is included in the JTAG chain  Off  m When off  1   HSMB is not included in the JTAG chain   Switch 4 has the following options   4 PCIE JTAG EN m When on  0   PCI Express is included in the JTAG chain  Off  m When off  1   PCI Express is not included in the JTAG chain           November 2014 Altera Corporation          Cyclone IV GX FPGA Development Kit User Guide          4 4 Chapter 4  Development Board Setup  Factory Default Switch Settings         Formore information about the FPGA board settings  refer to the Cyclone IV GX FPGA  Development Board Reference Manual     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    AHERN     5  Board Update Portal       The Cyclone IV GX FPGA Development 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 N
37. ios    embedded processor  an Ethernet MAC  and an HTML  web server     When you power up the board with the USER FACTORY switch  SW1 1  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 portion of  flash memory  and provides links to useful information on the Altera website   including kit specific links and design resources           After successfully updating the user hardware flash memory  you can load the user  design from flash memory into the FPGA  To do so  set the USER  FACTORY switch   SW1 1  to the on position and power cycle the board     The source code for the Board Update Portal design resides in the     install dir gt  kits cycloneIVGX_4cgx150_fpga examples 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    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 connect
38. ith eight digits of precision to the right of the  decimal point  For example  421 31259873 is possible within 100 parts per million   ppm   The Target frequency control works in conjunction with the Set New  Frequency control     Reset Si570    The Reset 51570 control sets the Si570 programmable oscillator to the default  frequency of 100 MHz     Set New Frequency    The Set New Frequency control sets the Si570 programmable oscillator frequency to  the value in the Target frequency control  Frequency changes might take several  milliseconds to take effect  You might see glitches on the clock during this time  Altera  recommends resetting the FPGA logic after changing frequencies     Configuring the FPGA Using the Quartus Il Programmer    LS    You can use the Quartus IT 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 FPGA development board  power to the board is on  and no other 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    Click Auto Detect to display the devices in the JTAG chain   Click Add File and select the path to the desired sof    Turn on the Program Configure option for the added file     g            Click Start to download the selected file to the FPGA  Configuration is complete  wh
39. les as a    ad starting point 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 FPGA Development Kit        Contains the original data programmed onto the board before shipment  Use this data to restore    factory recovery the board with its original factory contents                 Installing the USB Blaster Driver    The Cyclone IV GX FPGA development 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 FPGA Development Kit User Guide November 2014 Altera Corporation     N DTE SYN     4  Development Board Setup       The instructions in this chapter explain how to set up the Cyclone IV GX FPGA  development board     Setting Up the Board    To prepare and apply power to the board  perform the following steps     1  The Cyclone IV GX FPGA development board ships with its board switches  preconfigured to support the design examples in the kit  If you suspect your board  might not be currently con
40. llows 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     Figure 6 3  The GPIO Tab           ARED Test System  Configure Help About              Systeminfo GPIO   Flash   SSRAM   DDRZ             r Character LCD    Enter text                    Development Kit                 User DIP switch  8 rj 6 5 4 3 2 1    tp n uar    D  ON   User LEDs    DEEEEREERI     Push button switches    e            rm           LJ LJ B LJ E LJ    PB3 PB2 PB1  PBO    Start Simple Socket Server                     Messages       Detected the GPIO  SRAM  Flash Project                   Ethernet                       Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 7  Using the Board Test System    The following sections describe the controls on the GPIO tab     Character LCD    Allows you to display text strings on the character LCD on your board  Type text in  the text boxes and then click Display     If you exceed the 16 character display limit on either line  a warning message appears     User LEDs    The User LEDs control displays the current state of the user LEDs  Click the LED  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 t
41. n on  0   the user file is loaded from flash at power up Off  m When off  1   the factory file is loaded from flash at power up  Switch 2 has the following options    2 CLK125_EN m When on  0   the 125 MHz Oscillator is disabled Off    m When off  1   the 125 MHz Oscillator is enabled                         Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 4  Development Board Setup    Factory Default Switch Settings    Table 4 1  SW1 Dip Switch Settings  Part 2 of 2     4 3                                                             Switen   Board Function Position  Switch 3 has the following options   3 CLKA EN m When on  0   the 100 MHz Programmable Oscillator is disabled Off  m When off  1   the 100 MHz Programmable Oscillator is enabled  Switch 4 has the following options   4 CLKA SEL m When on  0   the OSC source is driven to the FPGA On  m When off  1   the SMA input source is driven to the FPGA  2  Set DIP switch bank  SW4  to match Table 4   2 and Figure 4 1   Table 4 2  SW4 Dip Switch Settings  Switen   Boara Function Position  Switch 1 has the following options   1 PCIE PRSNT2n x1     When       0   1 Presence Detect Enabled On  m When off  1 x1 Presence Detect Disabled  Switch 2 has the following options   2 PCIE PRSNT2n   4  m When       0   4 Presence Detect Enabled On  m When off  1 x4 Presence Detect Disabled  3           Switch 4 has the following options   4 USB DISABLEn m When on  0 Embedded Blaster Disabled Off  m W
42. nits     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   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           The current      is  calculated by dividing the measured voltage drop across the resistor by the value of  the sense resistor  I   Vdif  R   Through substitution  the equation for calculating  power becomes P   V x I   Vsense x  Vdif  R     Vsense  x  Vdif  x  1  003      You can verify the power numbers shown in the Power Monitor with a digital 
43. o the  Factory Settings  on page A 4     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation          S BAN 6  Board Test System       The kit includes a design example and application called the Board Test System to test  the functionality of the Cyclone IV GX FPGA development 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 FPGA Development Kit  on page 3 1     The application provides access to the following Cyclone IV GX FPGA development  board features     m General purpose I O  GPIO   SRAM  Flash memory    DDR2    Two HSMC connectors  Character LCD   Ethernet   Programmable oscillator  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     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    6 2 Chapter 6  Board Test System    A GUI runs on the PC that 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 
44. r Guide       4    Chapter    Restoring the Flash Device to the Factory Settings    9  In the Nios II command shell  navigate to the    install dir   NKkitsNcycloneIVGX 4cgx150                           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 IT 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  FACTORY switch  SW1 1  to the on position and power cycle the  board  or press the PGM  LOAD button to load and run the user hardware design     Programming the board is now complete     For more information about the nios2 flash programmer utility  refer to the Nios II  Flash Programmer User Guide     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 FPGA development 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     2  Launch the Quartus II Programmer to configure the FPGA with a  sof capable of  flash programming  Refer to  Configuring the FPGA Usin
45. r 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     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation             E BYA 3  Software Installation       This chapter explains how to install the following software   m Quartus II Web Edition Software   m CycloneIV GX FPGA Development 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 installer you acquired in  Software  on  page 1 2     2  Follow the on screen instructions to complete the installation process     If you have difficulty installing the Quartus II software  refer to Altera Software  Installation and Licensing     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  conjunc
46. ransactions  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     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 15    The Power Monitor    m PRBS 31   Selects pseudo random 31 bit sequences     Error Control  The Error control controls display data errors detected during analysis and allow you  to insert errors     m Detected errors   Displays the number of data errors detected in the hardware     m Inserted errors   Displays the number of errors inserted into the transmit data  stream        Insert Error   Inserts a one word error into the transmit data stream each time you  click the button  Insert Error is only enabled during transaction performance  analysis     m Clear   Resets the Detected errors and Inserted errors counters to zeros     Status    These controls display current transaction performance analysis information collected  since you last clicked Start     m TXandRX performance bars   Show the percentage of maximum theoretical data  rate that the requested transactions are able to achieve  The maximum is 3 125  Gbps per transmitter x 4 transmitters   12 5 Gbps   1562 5 MBps  which requires a  reference clock of approximately 100 8 MHz  the board powers up with a 100 0  MHz clock with a typical maximum performance of approximately 1550 
47. s  The Si570 programmable oscillator is connected to the MAX II device  through a 2 wire serial bus  Figure 6 9 shows the Clock Control     Figure 6 9  The Clock Control    ARA Control 215 xl      NU  S BA AN i   Disable oscillator     Serial port registers Target frequency     HS DIV 5   10            1 10 Valid Frequency range values         10 00000000 to 810 00000000 MHz                       RFREQ D2bcla836d  FATAL  114 2688 MHz       Set New Frequency       USB Blaster on localhost  USB 0  EPM    221082    Messages          The following sections describe the Clock Control application s control and status  information     Serial Port Registers    The Serial port registers control shows the current values from the Si570 registers     For more information about the 51570 registers  refer to the Si570 Si571 datasheet  available on the Silicon Labs website  www silabs com      Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 19  Configuring the FPGA Using the Quartus      Programmer    fXTAL    The fXTAL control shows the calculated internal fixed frequency crystal  based on the  serial port register values     For more information about the fyrar value and how it is calculated  refer to the  51570 51571 datasheet available on the Silicon Labs website  www silabs com      Target Frequency    The Target frequency control allows you to specify the frequency of the clock  Legal  values are between 10 and 810 MHz w
48. s for loopback testing all  signals on the HSMC interface using the Board Test System     HSMC debug breakout board   A daughtercard that routes 40 CMOS signals to a  0 1  header and adds 20 LEDs to the remaining 40 CMOS signals     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    November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    Software    The software for this kit  described in the following sections  is available on the Altera  website for immediate downloading  You can also request to have Altera mail the  software to you on DVDs     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   in
49. tart address  Range  0  0000  0000   OxOOlF FFFF               0000 Read  write   Increment E              address             7   se   cr      0000 0000  0D483221  6BF6  D762 1813A3EZ     04394     a          0000 0010  18SFEZDA  28721ACl    80     2    SBASFBES  0000 0020  0547B5EC 16B8F151  BEDSSBDO   3903086  0000 0030  6  6            93380F4E 6840  0  6  8  146371  0000 0040  OAFAA14S 8    24742  F998BESE  D4849B6E  0000 0050  350ECA29  4975D  A37  68SCZBBE 628  11  9  0000 0060  A81C1A15        14  0  194           95        42  0000  0070  66402953  16143  78  1522  97    3  4317  7  0000 0080  32FFD576  245    767  01445    1  FDDFE3C9  0000 0090  8    68  23 6  5627  5  1  1  2649 D1BDO048A  0000 00  0  OED466D8 4ESB1DFA  C71D7BECO  44445364  0000 00  0   20513      28B57BC6  5424    2    9319EB3E4  0000 00  0  C11991D7     5  5   1    6      8   B117F99B  0000 00  0                   339    8  8  65FACABB  75  11        0000 00  0  91449925  54A4A67C  33BC3911  1318CCSE  0000 00  0  6          83 05      6  4 50085331  2ZE922CD3  0000 0100                   5            2 5    2  837  5  6  16      0000 0110  93CC5772  08    95  6  GAZCBEEB  946480  5  0000 0120  EOBOAZEF       65  85  4  0  98      01764965  0000 0130  4  004567 45407141  26  582  8  87774  38  0000 0140  C89A76EC  D7B5CC6E 4               7788  996  0000 0150  7EO0BDDEA  F4943C23 06015                                                                         Messages                 Detected the GP
50. that it has not been  damaged during shipment     A Without proper anti static handling  you can damage the board     CAUTION    2  Verify that all components are on the board and appear intact     In typical applications with the Cyclone IV GX FPGA development board  a fan heat  sink is not necessary  However  under extreme conditions the board might require  additional cooling to stay within operating temperature guidelines  The board has  two holes near the FPGA that accommodate many different heat sinks  including the  Dynatron V31G  You can perform power consumption and thermal modeling to  determine whether your application requires additional cooling  For information  about measuring board and FPGA temperature in real time  refer to  The Power  Monitor  on page 6 15     For more information about power consumption and thermal modeling  refer to  AN 358  Thermal Management for FPGAs     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    2 2    References    Chapter 2  Getting Started  References    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  FPGA Development Kit page     For additional daughter cards available for purchase  refer to the Development  Board Daughtercards page     For the Cyclone IV GX device documentation  refer to the Literature  Cyclone IV  Devices page     To purchase devices from the eStore  refe
51. the Cyclone IV GX FPGA Development 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     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     Click Upload  The progress bar indicates the percent complete     To configure the FPGA with the new design after the flash memory upload process  is complete  set the USER  FACTORY switch  SW1 1  to the on position and power  cycle the board  or press the        SEL button  52  until the user LED is on  and  then press the        LOAD button     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 portion of flash memory  If you do overwrite the factory image  you can  restore it by following the instructions in    Restoring the Flash Device t
52. 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     Cyclone IV GX FPGA Development Kit User Guide November 2014 Altera Corporation    Chapter 6  Board Test System 6 3    Preparing the Board    Ls    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     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 banks match  Factory Default  Switch Settings  on page 4 2     3  Set the USER FACTORY switch  SW1 1  to the on position     4  Turn the power to the board on  The board loads the design stored in the user  hardware portion of flash memory into the FPGA     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     CAUTION    Running the Board Test System    Ls    To run the application  navigate to the    install directs  cycloneIV
53. tion with the Quartus II Subscription Edition Software  once you obtain the  proper license file  To purchase a subscription  contact your Altera sales  representative     Installing the Cyclone IV GX FPGA Development Kit    To install the Cyclone IV GX FPGA Development Kit  perform the following steps     1  Run the Cyclone IV GX FPGA Development Kit installer you acquired in   Software  on page 1 2     2  Follow the on screen instructions to complete the installation process  Be sure that  the installation directory you choose is in the same relative location to your  Quartus II software as the default locations     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    3 2 Chapter 3  Software Installation  Installing the USB Blaster Driver    The installation program creates the Cyclone IV GX FPGA Development Kit directory  structure shown in Figure 3 1     Figure 3 1  Cyclone IV GX FPGA Development Kit Installed Directory Structure        J   install dir    The default Windows installation directory is C  altera  lt version gt       L  kits             cyclonelVGX 4cgx150 fpga    A board_design_files   71                 documents        examples    factory recovery                         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    Contains schematic  layout  assembly  and bill of material board design files  Use these fi
54. to  Restoring the  Flash Device to the Factory Settings  on page    4     Preparing Design Files for Flash Programming    You can obtain designs containing prepared  flash files from the Cyclone IV GX FPGA  Development 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 and user software  locations of the flash memory     For more information about Nios II EDS software tools and practices  refer to the  Embedded Software Development page of the Altera website     Creating Flash Files Using the Nios      EDS    If you have an FPGA design developed using the Quartus II software  and software  developed using the Nios II EDS  follow these instructions     1  On the Windows Start menu  click All Programs  gt  Altera  gt  Nios II EDS  gt  Nios II  Command Shell     2  In the Nios    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  lt yourfile gt  hw sof
55. torial chiptrip gdf     Also indicates sections of an actual file  such as a Report File  references to parts of  files  for example  the AHDL keyword SUBDESIGN   and logic function names  for  example  TRI         An angled arrow instructs you to press the Enter key        CO n               2  e       and so on           Numbered steps indicate    list of items when the sequence of the items is important   such as the steps listed in a procedure                 1    Bullets indicate a list of items when the sequence of the items is not important        x     The hand points to information that requires special attention        A question mark directs you to a software help system with related information        The feet direct you to another document or website with related information         gt            ION    P    E  2     2  a    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 a condition or possible situation that can cause you  injury        D        Cyclone IV GX FPGA Development Kit User Guide       The envelope links to the Email Subscription Management Center page of the Altera  website  where you can sign up to receive update notifications for Altera documents        November 2014 Altera Corporation    
56. you have the most up to date factory restore files and information    about this product  refer to the Cyclone IV GX FPGA Development Kit page of the  Altera website     November 2014 Altera Corporation Cyclone IV GX FPGA Development Kit User Guide    Cyclone IV GX FPGA Development Kit User Guide    Chapter    Restoring the MAX II CPLD to the Factory Settings    November 2014 Altera Corporation     ANUTS B    AN     Additional Information       This chapter provides additional information about the document and Altera     Document Revision History    The following table shows the revision history for this document           Date Version Changes  November 2014 1 1 Corrected a document link to the reference manual   November 2010 1 0 Initial release                    How to Contact Altera    To locate the most up to date information about Altera products  refer to the  following table                                Contact  7  Contact Method Address  Technical support Website www altera com support        Website www altera com training  Technical 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    The following table shows the typographic conventions this document uses        Visual Cue Meaning  
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
F8500 Treadmill - Spirit Fitness  VALERIANA OFFICINALIS L., RADIX RACINE DE VALÉRIANE Ré  Akai MAX49  User manual - Armstrong Electronics  Lenovo 10057/7712 Personal Computer User Manual  User's Guide  HP DB-102 User's Manual  Fortress Technologies BreadCrumb Wireless Network User's Manual    y descarga el manual de usuario    Copyright © All rights reserved. 
   Failed to retrieve file