AN 814: Intel Arria 10 Two x8-Lane JESD204B (Duplex) IP Cores Multi-Device Synchronization Reference Design

ID 683731
Date 1/30/2018
Document Table of Contents Rebuilding Software and Initializing the JESD204B Link

Perform the following steps to rebuild Nios® II software, re-execute the software C code and initialize the JESD204B link:

  1. After device programming, navigate to the Tools menu and select Nios® II Software Build Tools for Eclipse.
  2. In the Select a workspace dialog box, navigate to the software workspace, <project directory>/software and click OK.
  3. On the File menu, navigate to New and click Nios® II Application and BSP From Template.
  4. In the Nios II Application and BSP From Template window, enter the following information:
    1. SOPC Information File Name:
      • Intel® Quartus® Prime Pro Edition: <project directory>/jesd204b_ed_qsys/jesd204b_ed_qsys.sopcinfo
      • Intel® Quartus® Prime Standard Edition: <project directory>/jesd204b_ed_qsys.sopcinfo
    2. Project name: jesd204b_nios2_ed
      Note: Project name is user customizable.
    3. User default location: Checked
    4. Templates: Blank Project
  5. Click Next. Verify that the default BSP name is jesd204b_nios2_ed_bsp and click Finish. The Nios® II application project (jesd204b_nios2_ed) and BSP (jesd204b_nios2_ed_bsp) appears in the Project Explorer window.
    Note: Whenever you regenerate the jesd204b_ed_qsys.qsys, you must regenerate the BSP files. In the Project Explorer window, right click the jesd204b_nios2_ed_bsp project, navigate to Nios II and click Generate BSP. This regenerates the BSP files based on your most current jesd204b_ed_qsys.sopcinfo.
  6. Import the design example source (*.c) and header (*.h) files into the application directory. In the Project Explorer window, right click on the jesd204b_nios2_ed project and click Import.
  7. In the Import window, select General > File System as the import source. Click Next.
  8. Browse to the <project directory>/software/source directory and click OK. Check the source box on the left panel. Verify that the list of source and header files are as follows:
    • altera_jesd204_regs.h
    • functions.h
    • macros.h
    • macros.c
    • main.h
    • main.c
  9. Verify that the destination folder is jesd204b_nios2_ed. Click Finish. All the source and header files should be imported into the jesd204b_nios2_ed project directory.
  10. Right click the jesd204b_nios2_ed_bsp project, navigate to Nios II and click BSP Editor. Under the Drivers tab, check the enable_small_driver box of the altera_avalon_jtag_uart_driver group and click Generate. This setting allows the compilation to proceed without connecting the interrupt ports of JTAG UART module. After the BSP files have been generated, click Exit.
  11. Expand the jesd204b_nios2_ed application project in the Project Explorer window and verify that folder contains all the source and header files.
  12. To compile the C code, navigate to the Project menu and select Build all. The compiler now compiles the C code into executable code.
  13. To download the executable code to the development board, right click on the jesd204b_nios2_ed in Project Explorer window and select Run As and then Nios II Hardware.
  14. Refer to Table 3 to change SOURCEDEST_INIT parameter if you want to test other supported pattern. Change the LOOPBACK_INIT parameter to 1 if you want test internal serial loopback. Next, repeat 12 to 13.