Professional Documents
Culture Documents
Ravi Budruk
Senior Staff Engineer and Partner
MindShare, Inc.
Signal
Link
Wire
Lane
x1
x2
x4
x8
x12
x16
x32
Aggregate
BW
(GBytes/s)
0.5
16
Point-to-point connection
Serial bus means fewer pins
Scaleable: x1, x2, x4, x8, x12, x16, x32
Dual Simplex connection
2.5VGT/s transfer/direction/s
Packet based transaction protocol
PCIe
Device
A
Packet
PCIe
Device
B
Packet
PCI-SIG Developers Conference
Differential Signaling
Electrical characteristics of PCI Express signal
9 Differential signaling
Transmitter Differential Peak voltage = 0.4 - 0.6 V
Transmitter Common mode voltage = 0 - 3.6 V
DVcm
V Diffp
D+
Root Complex
PCIe
PCIe
PCIe
PCIe
Switch
Endpoint
PCIe
PCIe
Endpoint
PCIe
PCIe
Endpoint
PCIe
Legacy
Endpoint
Memory
PCIe
Bridge To
PCI/PCI-X
PCI/PCI-X
Legend
PCI Express Device Downstream Port
PCI Express Device Upstream Port
PCI-SIG Developers Conference
CPU
Root
RCRB
Bus 0
Root Complex
PCIe
PCIe
PCIe
PCIe
Switch
Endpoint
PCIe
PCIe
Endpoint
Virtual
PCI
Bridge
Virtual
PCI
Bridge
PCIe
PCIe
Bridge To
PCI/PCI-X
Switch
PCI/PCI-X
Legend
PCI Express Device Downstream Port
PCI Express Device Upstream Port
PCI-SIG Developers Conference
Virtual
PCI
Bridge
PCIe
PCIe
Endpoint
Legacy
Endpoint
Memory
Virtual
PCI
Bridge
Virtual
PCI
Bridge
Virtual
PCI
Bridge
Virtual
PCI
Bridge
HDD
Root Complex
PCI Express
Serial ATA
IO Controller Hub
(ICH)
LPC
IEEE
1394
Slot
S
IO
PCI Express
Link
Slots
PCI
USB 2.0
COM1
COM2
DDR
SDRAM
GB
Ethernet
Processor
FSB
PCI Express
GFX
GFX
Root Complex
DDR
SDRAM
Endpoint
InfiniBand
Switch
Out-of-Box
InfiniBand
Switch
10Gb
Ethernet
Fiber
Channel
Switch
Endpoint
Endpoint
Switch
10Gb
Ethernet
Endpoint
PCI Express
Link
SCSI
Endpoint
PCI
Add-In
Gb
Ethernet
Endpoint
PCI Express
to-PCI
Endpoint
S
IO
COM1
COM2
IEEE
1394
Slots
10
Transaction Types,
Address Spaces
2.
3.
4.
11
Abbreviated
Name
MRd
MRdLk
MWr
IO Read Request
IORd
IO Write Request
IOWr
CfgRd0, CfgRd1
CfgWr0, CfgWr1
Msg
MsgD
Completion without Data (used for IO, configuration write completions and read
completion with error completion status)
Cpl
Completion with Data (used for memory, IO and configuration read completions)
CplD
Completion for Locked Memory Read without Data (used for error status)
CplLk
CplDLk
12
13
Processor
FSB
MRd
Requester:
-Step 1: Root Complex (requester)
initiates Memory Read Request (MRd)
-Step 4: Root Complex receives CplD
Root Complex
DDR
SDRAM
CplD
MRd
Switch A
Switch C
MRd
CplD
Switch B
Endpoint
Endpoint
CplD
MRd
Endpoint
Endpoint
Endpoint
Completer:
-Step 2: Endpoint (completer)
receives MRd
-Step 3: Endpoint returns
Completion with data (CplD)
14
DMA Transaction
Processor
Processor
FSB
Completer:
-Step 2: Root Complex (completer)
receives MRd
-Step 3: Root Complex returns
Completion with data (CplD)
CplD
Root Complex
DDR
SDRAM
MRd
Switch A
Switch C
CplD
MRd
Switch B
Endpoint
Endpoint
MRd
CplD
Endpoint
Endpoint
Endpoint
Requester:
-Step 1: Endpoint (requester)
initiates Memory Read Request (MRd)
-Step 4: Endpoint receives CplD
15
Peer-to-Peer Transaction
Processor
Processor
FSB
Root Complex
MRd
CplD
Switch A
DDR
SDRAM
CplD
MRd
Switch C
CplD
Switch B
Endpoint
Endpoint
Endpoint
MRd
CplD
Endpoint
CplD
MRd
MRd
Endpoint
Completer:
-Step 2: Endpoint (completer)
receives MRd
-Step 3: Endpoint returns
Completion with data (CplD)
Requester:
-Step 1: Endpoint (requester)
initiates Memory Read Request (MRd)
-Step 4: Endpoint receives CplD
Copyright 2007, PCI-SIG, All Rights Reserved
16
Device Core
Device Core
Logic Interface
Logic Interface
TX
RX
TX
RX
Transaction Layer
Transaction Layer
Physical Layer
Physical Layer
Link
17
Device Core
Device Core
Logic Interface
Logic Interface
TX
TLP
RX
TX
Transaction Layer
RX
Transaction Layer
TLP
Received
Transmitted
Physical Layer
Physical Layer
Link
18
TLP Structure
Information in core section of TLP comes
from Software Layer / Device Core
Bit transmit direction
2B
3-4 DW
Data Payload
0-1024 DW
1DW
1B
19
Device Core
Device Core
Logic Interface
Logic Interface
TX
DLLP
RX
TX
RX
Transaction Layer
Transaction Layer
Transmitted
DLLP
Received
Physical Layer
Physical Layer
Link
20
DLLP Structure
Bit transmit direction
Start
DLLP
CRC
End
1B
4B
2B
1B
21
Device Core
Device Core
Logic Interface
Logic Interface
TX
Ordered-Set
Transmitted
RX
TX
RX
Transaction Layer
Transaction Layer
Physical Layer
Physical Layer
Ordered-Set
Received
Link
22
Ordered-Set Structure
COM
Identifier Identifier
Identifier
SKIP
9 4 character set: 1 COM followed by 3 SKP identifiers
23
Quality of Service
Processor
PCI Express
GFX
GFX
Processor
Root Complex
DDR
SDRAM
Endpoint
InfiniBand
Switch
Out-of-Box
InfiniBand
Switch
10Gb
Ethernet
Fiber
Channel
Switch
Endpoint
Endpoint
Switch
10Gb
Ethernet
PCI Express
to-PCI
Endpoint
Endpoint
SCSI
Endpoint
Slot
PCI Express
Link
PCI-SIG Developers Conference
Video
Camera
PCI
SCSI
Endpoint
S
IO
IEEE
1394
Slots
COM1
COM2
24
Receiver Device B
TC[2:0]
maps to
VC0 VC0
TC[7:3]
maps to VC1
VC1
VC0
VC1
TC/VC Mapping
Buffers
Link
Arbitration
TC[7:0]
TC/VC Mapping
Transmitter Device A
VC0
Buffers TC[7:0]
VC1
25
Port Arbitration
and VC Arbitration
Link
TC[7:3] to VC1
VC0
VC1
Link
TC[2:0] to VC0
VC0
TC[7:3] to VC1
VC1
g
in 0
p
t
ap or
M sP
C s
/V gre
C
T rE
fo
T
f C
o
r E /VC
g M
r
es ap
s pi
P n
o
rt g
0
TC[2:0] to VC0
Link
VC0
Port
Arb
VC1
Port
Arb
VC0
VC
Arb
VC1
VC0
0
VC1
26
Transmitter
VC Buffer
Receiver
27
Receiver
Device A
Device B
From
Transaction Layer
Tx
To
Transaction Layer
Rx
LCRC
Replay
Buffer
DLLP
ACK /
NAK
ACK /
NAK
TLP
Sequence
TLP
De-mux
De-mux
Mux
Tx
LCRC
Mux
Rx
Tx
Error
Check
Rx
DLLP
ACK /
NAK
Link
TLP
Sequence
TLP
PCI-SIG Developers Conference
LCRC
28
2a. Request
4b. ACK
3b. ACK
Switch
Requester
Completer
1b. ACK
2b. ACK
4a. Completion
3a. Completion
29
2.
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
3.
Legacy and native endpoints are required to support MSI-X (or MSI)
and implement the associated MSI-X capability register
INTx Emulation.
30
PCIe -
PCIe
PCIe
31
32
Correctable Errors
Errors classified as correctable, degrade system
performance, but recovery can occur with no loss of
information
9 Hardware is responsible for recovery from a correctable error and
no software intervention is required.
33
Uncorrectable Errors
2.
34
35
36
PCI Express
Configuration Space
37
Virtualization support
9 Access Control Services
38
39
40