Avoiding Head-of-Line Blocking for Posted Requests - Avoiding Head-of-Line Blocking for Posted Requests - 1.0 English - PG343

Versal Adaptive SoC Integrated Block for PCI Express LogiCORE IP Product Guide (PG343)

Document_ID
PG343
Release_Date
2024-11-22
Version
1.0 English

The integrated block can hold a Non-Posted request received on its RQ interface for lack of transmit credit or lack of available tags. This could potentially result in head-of-line (HOL) blocking for Posted transactions. The integrated block provides a mechanism for the user logic to avoid this situation through these signals:

  • pcie_tfc_nph_av[1:0]: These outputs indicate the Header Credit currently available for Non-Posted requests, where:
    • 00 = no credit available
    • 01 = 1 credit
    • 10 = 2 credits
    • 11 = 3 or more credits
  • pcie_tfc_npd_av[1:0]: These outputs indicate the Data Credit currently available for Non-Posted requests, where:
    • 00 = no credit available
    • 01 = 1 credit
    • 10 = 2 credits
    • 11 = 3 or more credits

The user logic can optionally check these outputs before transmitting Non-Posted requests. Because of internal pipeline delays, the information on these outputs is delayed by two user clock cycles from the cycle in which the last byte of the descriptor is transferred on the RQ interface. Thus, the user logic must adjust these values, taking into account any Non-Posted requests transmitted in the two previous clock cycles. The following figure illustrates the operation of these signals for the 256-bit interface. In this example, the integrated block initially had three Non-Posted Header Credits and two Non-Posted Data Credits, and had three free tags available for allocation. Request 1 from the user application had a one-Dword payload, and therefore consumed one header and data credit each, and also one tag. Request 2 in the next clock cycle consumed one header credit, but no data credit. When the user application presents Request 3 in the following clock cycle, it must adjust the available credit and available tag count by taking into account requests 1 and 2. If Request 3 consumes one header credit and one data credit, both available credits are 0 two cycles later, as also the number of available tags.

Figure 1. Credit and Tag Availability Signals on the Requester Request Interface (256-Bit Interface)

The following figures illustrate the timing of the credit and tag available signals for the same example, for interface widths of 128 bits and 64 bits, respectively.

Figure 2. Credit and Tag Availability Signals on the Requester Request Interface (128-Bit Interface)
Figure 3. Credit and Tag Availability Signals on the Requester Request Interface (64-Bit Interface)
Note: If the user logic opts in to use the pcie_tfc_* interface to monitor transmit credit availability, ensure that no more non-posted packets go into the RQ interface after pcie_tfc_npd_av or pcie_tfc_nph_av reaches 0. The integrated block does not lose the non-posted packets issued beyond this point; however, the pcie_tfc_* interface no longer provides an accurate credit accounting.

Similar transmit credit information is also provided in the cfg_fc_npd and cfg_fc_nph interface when cfg_fc_sel is set to the Transmit credits available mode.