When you generate the example design, the parameter editor automatically creates the files necessary to simulate, compile, and test the design in hardware. You can download the compiled hardware design to the Arria® 10 GX Transceiver Signal Integrity Development Kit. The testbench and demonstration example design are available for a wide range of parameters. However, they do not cover all possible parameterizations of the 100G Interlaken IP Core.
In addition, for most IP core variations, Altera® provides a compilation-only example project that you can use to quickly estimate IP core area and timing.
The hardware configuration, simulation, and test files are located in <example_design_install_dir>/example_design_a10.
IP Catalog (Tools > IP Catalog), select the
Arria® 10 target device
The Quick Start hardware example design is only supported in Arria® 10 devices. The testbench is available for variations that target Arria® 10 devices or Stratix® V devices.
- In the IP Catalog, locate and double-click 100G Interlaken . The New IP Variation window appears.
- Specify a top-level name for your custom IP variation. The parameter editor saves the IP variation settings in a file named <your_ip>.qsys.
- You must select a specific Arria® 10 device in the Device field, or keep the default Quartus® Prime software device selection.
Click OK. The parameter editor
Figure 5. 100G Interlaken Parameter Editor
- On the IP tab, specify the parameters for your IP core variation.
On the Example Design tab, select the Simulation option to generate the testbench, and select
the Synthesis option to generate the hardware example
At least one of the Simulation and Synthesis check boxes from Example Design Files must be selected to allow generation of Example Design Files.
- For Generated HDL Format, only Verilog is available.
- For Target Development Kit select the Arria® 10 GX Transceiver Signal Integrity Development Kit. If you select a development kit, then the target device (selected in step 4) for Example Design is changed to match the device on target board.
- Click the Generate Example Design button.
- Change to the simulation directory <example_design_install_dir>/example_design_a10.
- Run the simulation script for the supported simulator of your choice. The script compiles and runs the testbench in the simulator. Your script should check that the SOP and EOP counts match after simulation is complete.
Analyze the results.
Table 1. Steps to Run Simulation Simulator Working Directory Instructions Modelsim <example_design_install_dir>/ilk_core_50g_0_example_design/ilk_50g/sim/mentor For Quartus Prime Pro edition:
- In the command line, type
- In the command line, type
Cadence <example_design_install_dir>/ilk_core_50g_0_example_design/ilk_50g/sim/cadence Type the following commands:
chmod +x *.sh
./ncsim.shA successful simulation ends with the following message, "Simulation stopped due to successful completion!"
VCS <example_design_install_dir>/ilk_core_50g_0_example_design/ilk_50g/sim/synopsys/vcs Type the following commands:
chmod +x *.sh
./vcstest.shA successful simulation ends with the following message, "Simulation stopped due to successful completion!"
- In the command line, type
- Ensure hardware example design generation is complete.
- Open the Quartus® Prime project <user-specified location>/example_design_a10/example_design.qpf, where <user-specified location> is the directory location you specified when you generated the testbench and hardware example design.
- On the Processing menu, click Start Compilation.
After successful compilation, a .sof
file will be generated in your specified directory. Follow these steps to
program the hardware example design on the
- On the Tools menu, click Programmer.
- In the Programmer, click Hardware Setup.
- Select a programming device.
- Select and add the Arria® 10 GX Transceiver Signal Integrity Development Kit to which your Quartus® Prime session can connect.
- Ensure that Mode is set to JTAG.
- Select the Arria 10 device and click Add Device. The Programmer displays a block diagram of the connections between the devices on your board.
- In the row with your .sof, check the box for the .sof.
- Check the box in the Program/Configure column.
- Click Start.
- After the hardware example design is configured on the Arria® 10 device, in the Quartus® Prime software, on the Tools menu, click System Debugging Tools > System Console.
- In the Tcl Console pane, type sysconsole_testbench.tcl.
- Type run_example_design.
- Internal TX to RX serial loopback mode.
- Automatically generates fixed size packets.
- Basic packet checking capabilities.
- You can use system console to reset the design for re-testing purpose.
- Quartus Prime software
- System Console
- ModelSim-AE, Modelsim-SE, NCsim (Verilog only), or VCS simulator
- Arria 10 GX Transceiver Signal Integrity Development Kit for hardware testing
The hardware example design connects system and PLL reference clocks and required design components. After you program the device on the Arria 10 GX transceiver signal integrity development board, the example design configures the IP core in internal loopback mode and generates packets on the IP core TX user data transfer interface. The IP core sends these packets on the internal loopback path through the transceiver. After the IP core receiver receives the packets on the loopback path, it processes the Interlaken packets and transmits them on the RX user data transfer interface. The example design checks that the packets it receives on the IP core RX user data transfer interface are consistent with the packets sent in.
The hardware example design includes external PLLs. You can examine the clear text files to view sample code that implements one possible method to connect external PLLs to the 100G Interlaken IP core.
The hardware example design packs six Interlaken lanes in a transceiver block, and connects all of the channels in the same transceiver block to a single ATX PLL. The IP core connects ATX PLL to the 100G Interlaken IP core tx_pll_locked and tx_pll_powerdown ports. This simple connection model is only one of many options available to you for configuring and connecting the external PLLs in your 100G Interlaken design.
Immediately following configuration on the Arria 10 device, when you type run_example_design in system console, the 100G Interlaken IP core hardware example design performs the following actions:
- Resets the 100G Interlaken IP core.
- Configures the 100G Interlaken IP core in internal loopback mode.
- Sends a sequence of 100
256-byte Interlaken packets with predefined data in the payload to the TX user data
transfer interface of the IP core.
Note: If the IP core is in dual segment mode, the hardware example design sends 65-byte bursts on the TX user data transfer interface. If the IP core is in single segment, Interleaved mode, the hardware example design sends 128-byte bursts.
- Checks the received packets and reports the status.
The packet checker included in the hardware example design provides the following basic packet checking capabilities:
- Checks that the transmitted packet sequence is not violated
- Checks that the received data matches expected values
System clock input. Clock frequency must be 50 MHz.
Transceiver reference clock. Drives the RX CDR PLL.
Number of lanes
Receiver SERDES data pin.
Number of lanes
Transmit SERDES data pin.
|8'h02||System PLL reset||RO||Following
bits indicates system PLL reset request and enable value:
|8'h03||RX lane aligned||RO||Indicates the RX lane alignment.|
|8'h04||WORD locked||RO||[NUM_LANES–1:0] – Word (block) boundaries identification.|
|8'h05||Sync locked||RO||[NUM_LANES–1:0] – Metaframe synchronization.|
|8'h06 - 8'h09||CRC32 error count||RO||Indicates the CRC32 error count.|
|8'h0A||CRC24 error count||RO||Indicates the CRC24 error count.|
|8'h0C||SOP count||RO||Indicates the number of SOP.|
|8'h0D||EOP count||RO||Indicates the number of EOP|
|8'h0E||Error count||RO||Indicates the number of following
|8'h0F||send_data_mm_clk||RW||Write 1 to enable the generator signal.|
|8'h11||System PLL lock||RO||PLL lock indication.|
- Example design register address starts with 0x20** while the 100G Interlaken core register address starts with 0x10**.
- Access code: RO—Read Only, and RW—Read/Write.
- System console reads the example design registers and reports the test status on the screen.