GTS Transceiver PHY User Guide: Agilex™ 5 FPGAs and SoCs

ID 817660
Date 8/04/2025
Public
Document Table of Contents

6.12. Hardware Testing the GTS PMA/FEC Direct PHY IP Dynamically Reconfigurable PHY Example Design

You can perform hardware testing of the example design on the Agilex™ 5 FPGA E-Series 065B Premium Development Kit (ES1) board. You must select this development kit in the Select Board setting in the Example Design tab of the IP GUI so that the reference clock and channel pin assignments are generated for the development kit's hardware design by the Quartus® Prime software in the .qsf file.

If you require to change the pin assignments of the example design, you can comment out the following lines in the example_design.qsf file.
#set_global_assignment -name POST_MODULE_SCRIPT_FILE "quartus_sh:board_assignments.tcl"
#set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:board_assignments.tcl"
After you have commented out the lines, you can set the pin assignments according to your board setup and the assignments are reflected in the example design.
Before performing hardware testing, ensure the following:
  • The TX and RX serial data pins are correctly connected using an external loopback module on the board.
  • The system PLL, TX PLL, and RX CDR PLL reference clock frequencies are properly set based on the board clock source.
  • If necessary, reconfigure the Agilex™ 5 FPGA E-Series 065B Premium Development Kit’s clock generator IC to match the reference clock frequency required by the example design.
For detailed instructions on modifying the clock generator settings, refer to the Agilex™ 5 FPGA E-Series 065B Premium Development Kit User Guide
The example design runs an external loopback test by default, with the loopback_mode parameter set to 0.
  • To perform an internal loopback test you must set the loopback_mode to 1 in the parameter.tcl file, located at: <design_example_dir>/hwtest/src/
  • If needed, update the JTAG port ID by modifying the jtag_port_id parameter in the same file. The default value is 0.
After compiling the design and configuring it on your Agilex™ 5 device, use System Console to program the IP core and the PHY IP core registers.
Follow the steps below to test the Reconfigurable PHY hardware example design in System Console:
  1. Navigate to the example design hardware directory, <design_example>/hwtest.
  2. Open System Console by selecting, Open Tools > System Debugging Tools > System Console
  3. Run the following command in the System Console Tcl shell:
    source main.tcl
    Note: Ensure that you are in the main hardware directory folder or else you may get a no source file found error.
  4. Analyze the results. A successful test run displays DR Test Passed in System Console. The following sample output illustrates a successful external loopback test run:
    Figure 100. Successful Hardware Testing Results for the External Loopback Test