Low Latency 40G Ethernet Intel® FPGA IP Design Example User Guide: Agilex™ 5 FPGAs and SoCs

ID 813654
Date 8/16/2024
Public

1.6. Testing the Design Example in Hardware

After compiling the Low Latency E-Tile 40G Ethernet  Intel® FPGA IP core design example and configure it on your  Agilex™ 5 device, you can use the System Console to program the IP core and its embedded Native PHY IP core registers.
To turn on the System Console and test the hardware design example, follow these steps:
  1. Navigate to the <design_example>/hwtest directory.
  2. In the Quartus® Prime software, select Tools > System Debugging Tools > System Console or type system-console & to launch the system console.
  3. In the Tcl Console pane, type cd hwtest to change the working directory to <design_example_dir >/hardware_test_design/hwtest.
  4. Type source main.tcl to open a connection to the JTAG master and start the test.
  5. Run the following comamnds in the System Console Tcl shell.
    source main.tcl
    set_jtag<number_of_appropriate_JTAG_master>
  6. Run one of the following commands;
    • If you use the internal serial loopback, enter
      run_test_silb
    The hardware design example commands are available to program the IP core:
    • chkphy_status: Displays the clock frequencies and PHY lock status.
    • chkmac_stats: Displays the values in the MAC statistics counters.
    • clear_all_stats: Clears the IP core statistics counters.
    • start_pkt_gen: Starts the packet generator.
    • stop_pkt_gen: Stops the packet generator
    • loop_on: Turns on internal serial loopback.
    • loop_off: Turns off internal serial loopback.
    • reg_read <addr>: Returns the IP core register value at <addr>.
    • reg_write <addr> <data>: Writes <data> to the IP core register at address <addr>.
    • If you inserted an external loopback plug into the desired Ethernet port, enter
      run_test_elb
    The hardware design example uses this command to initiate packet transmission from packet generator to the Intel® FPGA IP core. Specifically, the script performs the following steps:
    • chkphy_status: Displays the clock frequencies and PMA PHY lock status.
    • chkmac_stats: Displays the MAC statistics counters.
    • clear_all_stats: Clears the IP core statistics counters
    • start_pkt_gen: Starts the packet generator.
    • stop_pkt_gen: Stops the packet generator.
The following sample output illustrates a successful hardware test run:
Figure 6. Sample OutputClock frequency of i_reconfig_clk/csr_clk  is 100 MHz.