Académique Documents
Professionnel Documents
Culture Documents
Acknowledgements
I would like to acknowledge the contributions of Ravi Budruk, Mindshare, Inc.
PCI Express is a serial point-to-point interconnect between two devices Implements packet based protocol for information transfer Scalable performance based on number of signal Lanes implemented on the PCI Express interconnect
Signal Wire
Link Lane
Derivation of these numbers: 2.5 GT/s (PCIe 1.x) or 5.0 GT/s (PCIe 2.0) signaling in each direction 20% overhead due to 8b/10b encoding Bandwidth described as aggregate, implying simultaneous traffic in both directions
PCI-SIG Developers Conference Copyright 2009, PCI-SIG, All Rights Reserved 5
Packet
PCIe Device B
6
Differential Signaling
Electrical characteristics of PCI Express signal
Differential signaling
Transmitter Differential Peak voltage = 0.4 - 0.6 V Transmitter Common mode voltage = 0 - 3.6 V
DVcm D+ V Diffp
Two devices at opposite ends of a Link may support different DC common mode voltages
Additional Features
Switches used to interconnect multiple devices Packet based protocol Bandwidth and clocking Same memory, IO and configuration address space as PCI
Similar transaction types as PCI with additional message transaction
Additional Features
Data Integrity and Error Handling
RAS capable (Reliable, Available, Serviceable) Data integrity at: 1) Link level, 2) end-to-end
Virtual channels (VCs) and traffic classes (TCs) to support differentiated traffic or Quality of Service (QoS)
The ability to define levels of performance for packets of different TCs 8 TCs and 8 VCs available
Additional Features
Flow Control
No retry as in PCI
10
Additional Features
Hot Plug and Hot Swap support
Native No sideband signals
11
Root Complex
Bus 0 (Internal) PCIe 1 PCIe 6 PCIe 7
Memory
PCIe Endpoint
Bus 2
Virtual PCI Bridge
PCIe Endpoint
Legacy Endpoint
PCI/PCI-X Bus 8
Legend PCI Express Device Downstream Port PCI Express Device Upstream Port
PCI-SIG Developers Conference Copyright 2009, PCI-SIG, All Rights Reserved 12
Root Complex
DDR SDRAM
Slots
HDD
S IO
COM1 COM2
GB Ethernet
13
2.
3.
4.
14
Abbreviated Name
MRd MRdLk MWr IORd IOWr CfgRd0, CfgRd1 CfgWr0, CfgWr1 Msg MsgD Cpl CplD CplLk CplDLk
15
Memory and IO requests use address routing. Completions and Configuration cycles use ID routing. Message requests have selectable routing based on a 3-bit code in the message routing sub-field of the header type field.
16
Processor FSB
DDR SDRAM
Endpoint
Endpoint
DMA Transaction
Processor FSB Completer: -Step 2: Root Complex (completer) receives MRd -Step 3: Root Complex returns Completion with data (CplD) CplD Switch A CplD MRd Switch B Endpoint Endpoint Endpoint Processor
DDR SDRAM
MRd Requester: -Step 1: Endpoint (requester) initiates Memory Read Request (MRd) -Step 4: Endpoint receives CplD
18
Peer-to-Peer Transaction
Processor FSB Processor
Root Complex CplD Switch A CplD MRd Switch B Endpoint MRd Endpoint CplD Endpoint MRd MRd Switch C CplD
DDR SDRAM
MRd
Requester: -Step 1: Endpoint (requester) initiates Memory Read Request (MRd) -Step 4: Endpoint receives CplD
Copyright 2009, PCI-SIG, All Rights Reserved
Completer: -Step 2: Endpoint (completer) receives MRd -Step 3: Endpoint returns Completion with data (CplD)
19
PCI Express Device B Device Core PCI Express Core Logic Interface
RX
20
PCI Express Device B Device Core PCI Express Core Logic Interface
RX TLP Received
21
TLP Structure
Information in core section of TLP comes from Software Layer / Device Core Bit transmit direction
Data Payload
0-1024 DW
PCI Express Device B Device Core PCI Express Core Logic Interface
RX
Transaction Layer
DLLP Transmitted
23
DLLP Structure
Bit transmit direction
Start
1B
DLLP
4B
CRC
2B
End
1B
ACK / NAK Packets Flow Control Packets Power Management Packets Vendor Defined Packets
24
PCI Express Device B Device Core PCI Express Core Logic Interface
RX
Physical Layer
25
Ordered-Set Structure
COM Identifier Identifier Identifier
SKIP
4 character set: 1 COM followed by 3 SKP identifiers
16 characters
26
Quality of Service
Processor PCI Express GFX GFX Endpoint InfiniBand Switch Out-of-Box 10Gb Ethernet Endpoint Processor
Root Complex
DDR SDRAM
InfiniBand Endpoint
Switch
Switch
Add-In
Slot
Switch
Video Camera
SCSI Endpoint
COM1 COM2
S IO
IEEE 1394
Slots
27
Transmitter
Receiver
Flow Control DLLP (FCx) Receiver sends Flow Control Packets (FCP) which are a type of DLLP (Data Link Layer Packet) to provide the transmitter with credits so that it can transmit packets to the receiver
28
Receiver Device B
To Transaction Layer Rx
LCRC
Tx
Rx
DLLP
ACK / NAK
Tx
Rx
Link
TLP Sequence TLP PCI-SIG Developers Conference LCRC 29
ACK returned for good reception of Request or Completion NAK returned for error reception of Request or Completion
30
Legacy endpoints are required to support MSI (or MSI-X) with 32- or 64-bit MSI capability register implementation
Native PCI Express endpoints are required to support MSI with 64-bit MSI capability register implementation
2. 3.
INTx Emulation.
PCIe -
PCIe
PCIe
32
33
Virtualization support
Access Control Services
34