GTS AXI Streaming Intel® FPGA IP for PCI Express* User Guide

ID 813754
Date 11/04/2024
Public
Document Table of Contents

A.2.5. Using the Agilex™ 5 Link Inspector

The Link Inspector is found under the PCIe Link Inspector tab after opening the Debug Toolkit.

The Link Inspector is enabled by default when the Enable Debug Toolkit is enabled.

Figure 80. View of the Link Inspector

When the Dump LTSSM Sequence to Text File button is initially clicked, a text file (ltssm_sequence_dump_p0.txt) with the LTSSM information is created in the location from where the System Console window is opened. Depending on the PCIe topology, there can be up to four text files. Subsequent LTSSM sequence dumps are appended to the respective files.

Note: If you open System Console in a directory that is not writable, the text file cannot be generated. To avoid this issue, open System Console from the Command Prompt window (on a Windows system) or change the directory's permission settings to writable.
Example LTSSM Sequence Dump
         LTSSM State                     | Timer (ns) |  LTSSM State #
0x0      DETECT_QUIET                    | 5284883    |  0                   
0x1      DETECT_ACTIVE                   | 197        |  1                   
0x2      POLLING_ACTIVE                  | 25399190   |  2                   
0x5      PRE_DETECT_QUIET                | 1050       |  3                   
0x0      DETECT_QUIET                    | 640830     |  4                   
0x1      DETECT_ACTIVE                   | 297        |  5                   
0x2      POLLING_ACTIVE                  | 25307183   |  6                   
0x3      POLLING_COMPLIANCE              | 17897600   |  7                   
0x2      POLLING_ACTIVE                  | 65697      |  8                   
0x4      POLLING_CONFIG                  | 24558927   |  9                   
0x7      CONFIG_LINKWD_START             | 147        |  10                  
0x8      CONFIG_LINKWD_ACCEPT            | 893        |  11                  
0x9      CONFIG_LANENUM_WAIT             | 1827       |  12                  
0xa      CONFIG_LANENUM_ACCEPT           | 127        |  13                  
0xb      CONFIG_COMPLETE                 | 1097       |  14                  
0xc      CONFIG_IDLE                     | 1070       |  15                  
0x11     L0                              | 50         |  16                  
0xd      RECOVERY_LOCK                   | 487        |  17                  
0xf      RECOVERY_RCVRCFG                | 3137       |  18                  
0xe      RECOVERY_SPEED                  | 2627750    |  19                  
0xd      RECOVERY_LOCK                   | 40         |  20                  
0x20     RECOVERY_EQ0                    | 10485737   |  21                  
0x21     RECOVERY_EQ1                    | 257        |  22                  
0x22     RECOVERY_EQ2                    | 9357540    |  23                  
0x23     RECOVERY_EQ3                    | 12973550   |  24                  
0xd      RECOVERY_LOCK                   | 133        |  25                  
0xf      RECOVERY_RCVRCFG                | 453        |  26                  
0x10     RECOVERY_IDLE                   | 63         |  27                  
0x11     L0                              | 187        |  28                  
0xd      RECOVERY_LOCK                   | 790        |  29                  
0xf      RECOVERY_RCVRCFG                | 2323       |  30                  
0xe      RECOVERY_SPEED                  | 2235913    |  31                  
0xd      RECOVERY_LOCK                   | 40         |  32                  
0x20     RECOVERY_EQ0                    | 14500      |  33                  
0x21     RECOVERY_EQ1                    | 197187     |  34                  
0x22     RECOVERY_EQ2                    | 5052290    |  35                  
0x23     RECOVERY_EQ3                    | 8748963    |  36                  
0xd      RECOVERY_LOCK                   | 73         |  37                  
0xf      RECOVERY_RCVRCFG                | 243        |  38                  
0x10     RECOVERY_IDLE                   | 40         |  39                  
0x11     L0                              | -          |  Current             


The current LTSSM state is: L0

Each LTSSM monitor has a FIFO storing the time values and captured LTSSM states. When you choose to dump out the LTSSM states, reads are dependent on the FIFO elements and can empty out the FIFO.

The Link Inspector only writes to its FIFO if there is a state transition. In cases where the link is stable in L0, there is no write and hence no text file is dumped.

When you want to dump the LTSSM sequence, a single read of the FIFO status of the respective core is performed. Depending on the empty status and how many entries are in the FIFO, successive reads are executed.