Low Latency 40G Ethernet Intel® FPGA IP Design Example User Guide: Agilex™ 5 FPGAs and SoCs
ID
813654
Date
1/23/2025
Public
1.5. Testing the Design Example in Hardware
After compiling the Low Latency 40G Ethernet Intel® FPGA IP core design example and configuring 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:
- Navigate to the <design_example>/hardware_test_design directory.
- In the Quartus® Prime Pro Edition software, select Tools > System Debugging Tools > System Console or type system-console & to launch the system console.
- In the Tcl Console panel, type cd hwtest to change the working directory to <design_example_dir >/hardware_test_design/hwtest.
- Type source main.tcl to open a connection to the JTAG master and start the test.
- Run the following commands in the System Console Tcl shell.
source main.tcl set_jtag <number_of_appropriate_JTAG_master>
- 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 the address <addr>.
- If you inserted an external QSFP28 loopback module in to QSFP1(J12) port, enter:
run_test_elb
The hardware design example uses this command to initiate packet transmission from the 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.
- If you use the internal serial loopback, enter
The following sample output illustrates a successful hardware test run:
Figure 8. Sample OutputClock frequency of i_reconfig_clk/csr_clk is 100 MHz.