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

ID 683731
Date 1/30/2018
Public
Document Table of Contents
Give Feedback

1.2.2.2. Executing the Software C Code and Initializing the JESD204B Link

Perform the following steps to 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. To import the software project into Eclipse, right click in the project explorer window and select Import.
  4. Under the general category select Existing Projects into Workspace and click Next.
  5. Select archive file and navigate to the zip file of interest. Click Finish and the project will be setup in your workspace.
  6. 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 select Nios II Hardware.
    Click Yes if a dialog box stating "Errors exist in required project. Continue to launch." appears.

    The C codes need to be recompiled if you want to test other supported pattern or internal serial loopback. In this case, 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 current jesd204b_ed_qsys.sopcinfo. Refer to Table 3 to change related software parameters.

    Note: Follow steps in Reconstructing Design and Running in Hardware to rebuild the Nios® II project if you recompile your project or the project doesn’t work.
The code performs the JESD204B link initialization sequence and exits after successful download the .elf file. You can view the code execution results on the Nios® II Console tab. The following tables list the expected values of the link status register for each JESD204B IP core.
Table 1.  TX Status 0 Registers Bits
Bit Name Description Expected Binary Value
[0] SYNC_N Value

0: Receiver is not in sync

1: Link is in sync

1
[2:1] Data Link Layer (DLL) State

00: Code Group Synchronization (CGS)

01: Initial Lane Alignment Sequences

10: User Data Mode

11: D21.5 test mode

10
Table 2.  RX Status 0 Registers Bits
Bit Name Description Expected Binary Value
[0] SYNC_N Value

0: Receiver is not in sync

1: Link is in sync

1
Others - - Don’t Care
Note: You can refer to reconstruct design section if you want to rebuilt the Intel® Quartus® Prime and Nios® II project before running in the hardware.