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

ID 817660
Date 10/17/2025
Public
Document Table of Contents

A.2. Executing the Script

The design used to execute and test the script is a one PMA Direct channel design.

In the Tcl console window type: source ttk_helper_gts.tcl
The Messages window of the Tcl console displays several pages of information about the script as shown below.
Figure 123. Script Source Output in Messages Window
The information in the Messages window for each function with an example to guide you on how to pass acceptable parameters for the function calls.

Following is the list of GTS PHY's claimed. You should use the gts_phy_<i> as the phy identifier in the functions:

You can view the complete print out in the Messages window that displays each function with an example to guide you what parameter to pass for the acceptable function calls.

For example, you can use show_pma_setting_ftile function to get the pma_settings of specific channels. From the output hint in the Messages window, you can see how to make the function call.

In the example, if you want to view the PMA settings for phy_0, with eye height measurement (do_ehm=1) and show the results on-screen. You should enter the following function call in the Tcl console window:

show_pma_settings_gts gts_phy_0 1 stdout
If you want to see the PMA settings for phy_0, without eye height measurement, and store the results in a file, you can enter the following function call in the Tcl console window:
set output_file [open "output.log" w]
show_pma_setting_gts gts_phy_0 0 $output_file
When you run the function the following output is displayed in the Tcl console:
Figure 124. Show PMA Setting Function Call Output

You can view a lot of useful information to help you understand your channel such as PMA type, Quad and channel used, line encoding type, loopback type, TX and RX equalization taps values, adaptation mode as well as useful information to help you examine the channel health such as tx and rx ready status, FOM value (larger the better). The eye height measurement function is currently available for the auto adaptation mode only.

By adjusting the TX and RX equalization parameter values, you can see changes in the eye height values. Hence, you can find the optimal equalization parameter values to generate the largest eye opening.

For testing, if you want to enable serial internal loopback, based on the script output hint you can use the following function call:
Figure 125. Show PMA Setting Function Call Output with 1 Channel Loopback Enabled
To run a BER test, you can use the run_prbs_test function to send the PRBS31 pattern for 1 second (1000) and inject 10 errors. You can see that the error count displayed is 0xa which is 10 in decimal as expected, as shown in the following figure.
Figure 126. BER Function Call Output