Visible to Intel only — GUID: gvf1621361183856
Ixiasoft
1. Introduction
2. Quick Start Guide
3. Block and Interface Descriptions
4. Parameters
5. Designing with the IP Core
6. Registers
7. Design Example and Testbench
8. Document Revision History for Intel® L- and H-tile Avalon® Memory-mapped+ IP for PCI Express* User Guide
A. Avalon-MM IP Variants Comparison
B. Root Port BFM
C. BFM Procedures and Functions
D. Troubleshooting and Observing the Link Status
E. Root Port Enumeration
2.1. Design Components
2.2. Directory Structure
2.3. Generating the Design Example
2.4. Simulating the Design Example
2.5. Compiling the Design Example and Programming the Device
2.6. Installing the Linux Kernel Driver
2.7. Running the Design Example Application
2.8. Ensuring the Design Example Meets Timing Requirements
6.1.1. Register Access Definitions
6.1.2. PCI Configuration Header Registers
6.1.3. PCI Express Capability Structures
6.1.4. Intel Defined VSEC Capability Header
6.1.5. Uncorrectable Internal Error Status Register
6.1.6. Uncorrectable Internal Error Mask Register
6.1.7. Correctable Internal Error Status Register
6.1.8. Correctable Internal Error Mask Register
C.1. ebfm_barwr Procedure
C.2. ebfm_barwr_imm Procedure
C.3. ebfm_barrd_wait Procedure
C.4. ebfm_barrd_nowt Procedure
C.5. ebfm_cfgwr_imm_wait Procedure
C.6. ebfm_cfgwr_imm_nowt Procedure
C.7. ebfm_cfgrd_wait Procedure
C.8. ebfm_cfgrd_nowt Procedure
C.9. BFM Configuration Procedures
C.10. BFM Shared Memory Access Procedures
C.11. BFM Log and Message Procedures
C.12. Verilog HDL Formatting Functions
Visible to Intel only — GUID: gvf1621361183856
Ixiasoft
E. 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
- IO Base and IO Limit
- Max Payload Size
- Memory Space Enable bit
The Endpoint (EP) must also have the following registers set by the RP:
- Master Enable bit
- BAR Address
- Max 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 39. Tree of Connected Devices in Example System
Figure 40. Root Port Enumeration Flow Chart
Figure 41. Root Port Enumeration Flow Chart (continued)
Figure 42. Root Port Enumeration Flow Chart (continued)
Notes:
- Vendor ID and Device ID information is located at offset 0x00h for both Header Type 0 and Header Type 1.
- For PCIe Gen4, the Header Type is located at offset 0x0Eh (2nd DW). If bit 0 is set to 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 40 - Identifies the Power Management Capability ID
- Address 50 - Identifies MSI Capability ID
- Address 70 - Identifies the PCI Express Capability structure
- Capabilities Pointer for non-RP
- Address 40 - Identifies Power Management Capability ID
- Address 70 - Identifies the PCI Express Capability structure
- Capabilities Pointer for RP
- 0x34h – Capabilities Pointers. This register is used to point to a linked list of capabilities implemented by a Function:
- EP does not have an associated register of Primary, Secondary and Subordinate Bus numbers.
- Bridge/Switch IO Base and Limit register offset 0x1Ch. These registers are set per the 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 Limit registers are located at offset 0x20h.
- For Bridge/Switch Type 1 header, Prefetchable Memory Base and Limit registers are 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,
- IO 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.