E-Tile Hard IP Stratix® 10 Design Examples User Guide: Ethernet, CPRI PHY, and Dynamic Reconfiguration

ID 683578
Date 4/29/2024
Public
Document Table of Contents

4.1.5.1. Running the Design Example in Hardware

If you select Stratix 10 E-Tile TX Transceiver Signal Integrity Development Kit option as the Target Development Kit in the E-Tile Dynamic Reconfiguration Design Example parameter editor in Quartus® Prime Pro Edition software, refer to Power Management Setting for Stratix 10 E-Tile TX Transceiver Signal Integrity Development Kit on how to configure the power management setting that can be included in the Quartus Setting File (.qsf) for the Stratix 10 E-Tile TX Transceiver Signal Integrity Development Kit.

Follow the steps below to run the design example in hardware:

  1. In the Quartus® Prime Pro Edition software, compile the design example with the power management setting included to obtain a working SRAM Object File (.sof) file.
  2. Download the .sof file to the Stratix 10 E-Tile TX Transceiver Signal Integrity Development Kit .
  3. Launch the Clock Control application and set new frequencies for the design example. Below is the frequency setting in the Clock Control application. Select Si5341A(U3) to program:
    • OUT0 = 184.32 MHz
    • OUT5 = 153.6 MHz

    This step is only applicable for CPRI protocol and Ethernet to CPRI protocol related dynamic reconfiguration design examples.

  4. In the <design_example_dir>/software/dynamic_reconfiguration_hardware folder, execute the following commands:
    • Execute the command niosv-bsp -c --quartus-project=../../hardware_test_design/alt_ehipc3.qpf --qsys=../../hardware_test_design/nios_system.qsys --type=hal etile_dr_cpu_bsp/settings.bsp to generate the BSP files.
    • At the same path, execute the command niosv-app --bsp-dir=etile_dr_cpu_bsp --app-dir=etile_dr_cpu_app --srcs=. --elfname=etile_dr_cpu.elf to generate the user application CMakeLists.txt.
  5. Run the Eclipse-based Ashling Riscfree IDE Tool launcher.
  6. Create a new workspace when the Workspace Launcher window prompt appears.
  7. Click Launch to open the workspace.
  8. In the Eclipse-based Ashling Riscfree IDE Tool window, select File > New > Project. A New Project window appears.
  9. Choose C/C++ > C/C++ Project > C++ Managed Build.
    • For the Project name, specify your desired project name. This example uses dynamic_reconfiguration_hardware.
    • For project type, select CMake driven > Empty Project. For Toolchains, select CMake driven.
    • Click Finish. The CMake driven application is added to the Project Explorer.
    • Uncheck Use default location. Navigate to <example_design_dir>/software/dynamic_reconfiguration_hardware/etile_dr_cpu_app to locate the CMakeLists.txt in the NIOS V application project.
  10. On the Project Explorer view, right-click the project and select Build Project. Ensure the etile_dr_cpu.elf file is generated in the <design_example_dir>/software/dynamic_reconfiguration_hardware/etile_dr_cpu_app/build/Debug directory.
  11. On the Project Explorer view, right-click the project and select Run as > Run Configurations....
  12. Select Ashling RISC-V Hardware Debugging > New Configuration.
    • Under the Main tab, make sure that the Project matches the project name (dynamic_reconfiguration_hardware).
    • In C/C++ Application, click Browse and navigate to the etile_dr_cpu.elf file generated in the <design_example_dir>/ software/dynamic_reconfiguration_hardware/etile_dr_cpu_app/build/Debug directory.
    • Click Apply to apply the changes.
    • Under the Debugger tab, set the Debug Probe Configuration according to the board settings.
      • Select Auto-detect Scan Chain in Target Configuration to automatically detect JTAG scan chain information of the target device. Ensure the detected Device/TAP selection is correct and core selection is Nios® V .
      • Check the Issue Tap reset option.
      • Click Apply to apply the changes.
  13. Once the configuration is set, click Run. If the configuration is successful, the following debug console is displayed.
  14. To view the output of JTAG UART terminal in Eclipse-based Ashling RiscFree IDE Tool, select Run > External Tools > External Tools Configuration... from the tool drop-down menu.
  15. Select Program and click New Launch Configuration. Rename the configuration as Nios® V JTAG UART Output.
    • Under the Main tab, select Browse > File System... and navigate to the path for JTAG UART terminal.
      • For Linux: <Intel Quartus Prime installation directory>/quartus/linux64/juart-terminal
      • For Windows: <Intel Quartus Prime installation directory>/quartus/bin64/juart-terminal.exe
      • In Arguments, enter the -c 1 -d 0 -i 0
  16. Click Apply to save the changes, then click Run to generate the program.
    Note: The GUI dialog box varies based on the selected dynamic reconfiguration hardware test variant.
  17. In the Interactive GUI dialog box, select the dynamic reconfiguration hardware test.

The following is a hardware test example for the 25G Ethernet with PTP and RS-FEC variant.

CPU is alive!


             Dynamic Reconfiguration Hardware Test

By default, the starting mode is 25G_PTP_FEC.
      Please choose one of Dynamic reconfiguration:
    0) 25G_PTP_FEC    -> 25G_PTP_noFEC -> 10G_PTP -> 25G_PTP_noFEC -> 25G_PTP_FEC -> 10G_PTP -> 25G_PTP_FEC
    1) 25G_PTP_FEC    -> 25G_PTP_noFEC
    2) 25G_PTP_noFEC  -> 25G_PTP_FEC
    3) 25G_PTP_FEC    -> 10G_PTP
    4) 10G_PTP        -> 25G_PTP_FEC
    5) 25G_PTP_noFEC  -> 10G_PTP
    6) 10G_PTP        -> 25G_PTP_noFEC
    7) 25G_PTP_FEC    -> 1G_PTP
    8) 1G_PTP         -> 25G_PTP_FEC
    9) 10G_PTP        -> 1G_PTP
    a) 1G_PTP         -> 10G_PTP
    b) 25G_PTP_noFEC  -> 1G_PTP
    c) 1G_PTP         -> 25G_PTP_noFEC
    Terminate test
       If you terminate test halfway, you must reload the .sof file before retrigger the hardware test.

Enter a Valid Selection (0,1,3,7,d):

The following is a hardware test example for CPRI variants.

CPU is alive!


             Dynamic Reconfiguration Hardware Test

By default, the starting mode is CPRI24G_FEC.
      Please choose the Targeted mode available:
    1) CPRI24G
    2) CPRI12GFEC
    3) CPRI12G
    4) CPRI10GFEC
    5) CPRI10G
    6) CPRI9.8G
    7) CPRI6.0G
    8) CPRI4.9G
    9) CPRI3.0G
    a) CPRI2.4G
    9) Terminate test  -> If you terminate test halfway, you must reload the .sof file before retrigger the hardware test.

Enter a Valid Selection: