Visible to Intel only — GUID: crg1632528868520
Ixiasoft
1. Acronyms
2. Introduction
3. IP Architecture and Functional Description
4. Advanced Features
5. Interfaces
6. Parameters
7. Testbench
8. Troubleshooting/Debugging
9. F-Tile Avalon Streaming Intel FPGA IP for PCI Express User Guide Archives
10. Revision History of the F-Tile Avalon Streaming Intel FPGA IP for PCI Express User Guide
A. Configuration Space Registers
B. Implementation of Address Translation Services (ATS) in Endpoint Mode
C. Packets Forwarded to the User Application in TLP Bypass Mode
D. Root Port Enumeration
3.1. Architecture
3.2. Functional Description
3.3. Avalon-ST TX/RX
3.4. Interrupts
3.5. Completion Timeout
3.6. Hot Plug
3.7. Power Management
3.8. Configuration Output Interface (COI)
3.9. Configuration Intercept Interface (EP Only)
3.10. Hard IP Reconfiguration Interface
3.11. PHY Reconfiguration Interface
3.12. Page Request Service (PRS) (EP Only)
5.1. Overview
5.2. Clocks and Resets
5.3. Serial Data Interface
5.4. Avalon-ST Interface
5.5. Interrupt Interface
5.6. Hard IP Status Interface
5.7. Error Interface
5.8. 10-bit Tag Support Interface
5.9. Completion Timeout Interface
5.10. Power Management Interface
5.11. Hot Plug Interface (RP Only)
5.12. Configuration Output Interface
5.13. Configuration Intercept Interface (EP Only)
5.14. Hard IP Reconfiguration Interface
5.15. PHY Reconfiguration Interface
5.16. Page Request Service (PRS) Interface (EP Only)
5.17. FLR Interface Signals
5.18. PTM Interface Signals
5.19. VF Error Flag Interface Signals
5.20. VirtIO PCI Configuration Access Interface Signals
6.2.3.1. Device Capabilities
6.2.3.2. Link Capabilities
6.2.3.3. Legacy Interrupt Pin Register
6.2.3.4. MSI Capabilities
6.2.3.5. MSI-X Capabilities
6.2.3.6. Slot Capabilities
6.2.3.7. Latency Tolerance Reporting (LTR)
6.2.3.8. Process Address Space ID (PASID)
6.2.3.9. Device Serial Number Capability
6.2.3.10. Page Request Service (PRS)
6.2.3.11. Access Control Service (ACS) Capabilities
6.2.3.12. Power Management
6.2.3.13. Vendor Specific Extended Capability (VSEC) Registers
6.2.3.14. Precision Time Measurement (PTM)
6.2.3.15. Address Translation Services (ATS)
6.2.3.16. TLP Processing Hints (TPH)
6.2.3.17. VirtIO Parameters
7.4.1. ebfm_barwr Procedure
7.4.2. ebfm_barwr_imm Procedure
7.4.3. ebfm_barrd_wait Procedure
7.4.4. ebfm_barrd_nowt Procedure
7.4.5. ebfm_cfgwr_imm_wait Procedure
7.4.6. ebfm_cfgwr_imm_nowt Procedure
7.4.7. ebfm_cfgrd_wait Procedure
7.4.8. ebfm_cfgrd_nowt Procedure
7.4.9. BFM Configuration Procedures
7.4.10. BFM Shared Memory Access Procedures
7.4.11. BFM Log and Message Procedures
7.4.12. Verilog HDL Formatting Functions
A.3.1. Intel-Defined VSEC Capability Header (Offset 00h)
A.3.2. Intel-Defined Vendor Specific Header (Offset 04h)
A.3.3. Intel Marker (Offset 08h)
A.3.4. JTAG Silicon ID (Offset 0x0C - 0x18)
A.3.5. User Configurable Device and Board ID (Offset 0x1C - 0x1D)
A.3.6. General Purpose Control and Status Register (Offset 0x30)
A.3.7. Uncorrectable Internal Error Status Register (Offset 0x34)
A.3.8. Uncorrectable Internal Error Mask Register (Offset 0x38)
A.3.9. Correctable Internal Error Status Register (Offset 0x3C)
A.3.10. Correctable Internal Error Mask Register (Offset 0x40)
Visible to Intel only — GUID: crg1632528868520
Ixiasoft
D. Root Port Enumeration
This chapter provides a flow chart that explains the Root Port enumeration process. The goal of enumeration is to find all connected devices in the system and for each connected device, set the necessary registers and make address range assignments.
At the end of the enumeration process, the Root Port (RP) must set the following registers:
- Primary Bus, Secondary Bus and Subordinate Bus numbers
- Memory Base and Limit
- I/O Base and I/O Limit
- Maximum Payload Size
- Memory Space Enable bit
The Endpoint (EP) must also have the following registers set by the RP:
- Master Enable bit
- BAR Address
- Maximum Payload Size
- Memory Space Enable bit
- Severity bit
The figure below shows an example tree of connected devices on which the following flow chart will be based.
Figure 83. Tree of Connected Devices in Example System
Figure 84. Root Port Enumeration Flow Chart
Figure 85. Root Port Enumeration Flow Chart [Continued]
Figure 86. Root Port Enumeration Flow Chart [Continued]
- Vendor ID and Device ID information is located at offset 0x00h for both HeaderType 0 and Header Type 1.
- For PCIe Gen4, the Header Type is located at offset 0x0Eh (2nd DW). If bit 0 is setto 1, it indicates the device is a Bridge; otherwise, it is an EP. If bit 7 is set to 0, it indicates this is a single-function device; otherwise, it is a multi-function device.
- List of capability registers for RP and non-RP devices: 0x34h – Capabilities Pointers. This register is used to point to a linked list of capabilities implemented by a Function.
- Capabilities Pointer for RP:
- Address 60 - Identifies the Power Management Capability ID
- Address 6c - Identifies MSI Capability ID
- Address b4 - Identifies the PCI Express Capability structure
- Capabilities Pointer for non-RP:
- Address 40 - Identifies Power Management Capability ID
- Address 48 - Identifies the PCI Express Capability structure
- Capabilities Pointer for RP:
- EP does not have an associated register of Primary, Secondary and SubordinateBus numbers.
- Bridge/Switch IO Base and Limit register offset 0x1Ch. These registers are set perthe PCIe 4.0 Base Specification. For more accurate information and flow, refer to chapter 7.5.1.3.6 of the Base Specification.
- For EP Type 0 header, BAR addresses are located at the following offsets:
- 0x10h – Base Address 0
- 0x14h – Base Address 1
- 0x18h – Base Address 2
- 0x1ch – Base Address 3
- 0x20h – Base Address 4
- 0x24h – Base Address 5
- For Bridge/Switch Type 1 header, BAR addresses are located at the following offsets:
- 0x10h – Base Address 0
- 0x14h – Base Address 1
- For Bridge/Switch Type 1 header, IO Base and IO limit registers are located at offset 0x1Ch.
- For Bridge/Switch Type 1 header, Non-Prefetchable Memory Base and Limitregisters are located at offset 0x20h.
- For Bridge/Switch Type 1 header, Prefetchable Memory Base and Limit registersare located at offset 0x24h.
- For Bridge/Switch/EP Type 0 & 1 headers, the Bus Master Enable bit is located at offset 0x04h (Command Register) bit 2.
- For Bridge/Switch/EP Type 0 & 1 headers:
- I/O Space Enable bit is located at offset 0x04h (Command Register) bit 0.
- Memory Space Enable bit is located at offset 0x04h (Command Register) bit 1.
- Bus Master Enable bit is located at offset 0x04h (Command Register) bit 2.
- Parity Error Response bit is located at offset 0x04h (Command Register) bit 6.
- SERR# Enable bit is located at offset 0x04h (Command Register) bit 8.
- Interrupt Disable bit is located at offset 0x04h (Command Register) bit 10.