Conventional PCI (1992) is a shared, synchronous, multiplexed parallel bus: 32 or 64 address/data lines, a handful of control lines, and one clock that every device on the bus uses. One master at a time wins the bus from a central arbiter, puts an address on the lines, and then moves data in a burst while master and target pace each other with two ready signals. Its signaling deliberately relies on reflections from the unterminated end of the bus. Everything software sees in PCI Express today (configuration space, BARs, bus numbers, bridges) was defined here. This page walks through the electrical layer, a transaction clock by clock, arbitration, configuration and interrupts, bridges, and PCI-X.
Next: PCI Express: how it works and why it replaced PCI. Specification: PCI Local Bus Specification [1].
PCI is a bus, not a network, so its "layers" are thin. The specification defines the electrical interface and the bus protocol, plus the configuration and address-decoding rules that let bridges build a hierarchy. There is no packet format and no retransmission: an error is reported, not corrected. Click a layer; the sections below carry the same tags.
A trailing # means active low: asserted at the low voltage. Control signals are sustained tri-state: the device that drove one low must drive it high for one clock before releasing it, and a pull-up on the motherboard holds it high while nobody drives it.
| Signal | Driven by | Type | Function |
|---|---|---|---|
| CLK | System, one per slot | in | 33 or 66 MHz; everything is sampled on its rising edge |
| RST# | System | in | Reset |
| AD[31:0] | Master (address, write data) / target (read data) | tri-state | Multiplexed address and data |
| C/BE[3:0]# | Master | tri-state | Bus command in the address phase; byte enables in data phases |
| PAR | Whoever drove AD one clock earlier | tri-state | Even parity over AD[31:0] and C/BE[3:0]# |
| FRAME# | Master | sustained tri-state | Transaction in progress; deasserted when the last data phase begins |
| IRDY# | Master | sustained tri-state | Initiator ready: write data valid, or ready to accept read data |
| TRDY# | Target | sustained tri-state | Target ready: read data valid, or ready to accept write data |
| DEVSEL# | Target | sustained tri-state | "I decoded this address and claim the transaction" |
| STOP# | Target | sustained tri-state | Target asks to end the transaction (retry, disconnect, abort) |
| IDSEL | Host bridge, via one AD line per slot | in | Chip select for configuration cycles |
| REQ#, GNT# | Master / arbiter | point to point | Bus request and grant |
| LOCK# | Master | sustained tri-state | Exclusive access (atomic read-modify-write); rarely used |
| PERR#, SERR# | Any | s/t/s, open drain | Data parity error; system error (address parity, fatal) |
| INTA#–INTD# | Device | open drain, level | Shared, level-triggered interrupts |
| REQ64#, ACK64#, AD[63:32], C/BE[7:4]#, PAR64 | Master / target | 64-bit extension | 64-bit data path, negotiated per transaction |
| PRSNT1#, PRSNT2# | Card (to ground) | static | Card present and power class: 7.5, 15 or 25 W |
| M66EN, PME#, 3.3Vaux | Card / system | static, open drain | 66 MHz capable; power-management wake; standby power (2.2+) |
PCI drivers are deliberately weak. A driver switches the line only about halfway, and the bus is left unterminated at its far end, so the wave reflects back at full height: the far end sees the incident wave plus its reflection, double the launched step, and receivers along the way reach a valid level when the reflection passes them. This saves power and termination parts, and lets cheap CMOS drivers run a bus with many stubs. The price is time: a receiver near the driver is not valid until the wave has run to the end and back.
The clock period at 33 MHz (30 ns) is split into four budgets: the driver's clock-to-valid time Tval (≤ 11 ns), the propagation and settling time on the bus Tprop (≤ 10 ns), clock skew between devices Tskew (≤ 2 ns) and the receiver's setup time Tsu (≥ 7 ns). At 66 MHz (15 ns) every term halves: 6, 5, 1 and 3 ns, which is why the bus can only be half as long and carry half the loads.
3.3 V signaling; a receiver reads high above 0.5 VCC (1.65 V). The far end is modelled as an open circuit (reflection coefficient +1); the driver end reflects with (Rs − Z0)/(Rs + Z0). A lossless lattice model: real buses add stub ringing and capacitive slowing.
Every PCI transaction has one address phase (one clock: address on AD, command on C/BE#, FRAME# asserted) followed by one or more data phases. Signals change shortly after a rising clock edge and are sampled at the next one. A data phase completes on any rising edge where IRDY# and TRDY# are both low; otherwise it is a wait state. The master signals the last data phase by deasserting FRAME# while asserting IRDY#. On a read, AD changes hands from master to target, which needs a turnaround clock where nobody drives it. Build a transaction:
| C/BE[3:0]# | Command | C/BE[3:0]# | Command |
|---|---|---|---|
| 0000 | Interrupt Acknowledge | 1010 | Configuration Read |
| 0001 | Special Cycle (broadcast, nobody claims it) | 1011 | Configuration Write |
| 0010 | I/O Read | 1100 | Memory Read Multiple (prefetch several lines) |
| 0011 | I/O Write | 1101 | Dual Address Cycle (64-bit address in two clocks) |
| 0110 | Memory Read | 1110 | Memory Read Line (one cache line) |
| 0111 | Memory Write | 1111 | Memory Write and Invalidate (whole lines) |
0100, 0101, 1000 and 1001 are reserved. In data phases C/BE[3:0]# are byte enables: low means that byte lane carries valid data.
| Ending | Signals | Meaning | What the master does |
|---|---|---|---|
| Normal | Master deasserts FRAME# for the last phase | All data transferred | Releases the bus |
| Retry | STOP# without TRDY#, before any data | Target busy (or starting a delayed transaction) | Must repeat the same transaction later |
| Disconnect | STOP# with or after TRDY# | Target can take no more data in this burst | Starts a new transaction for the rest, at the next address |
| Target-abort | STOP# asserted, DEVSEL# deasserted | Fatal error at the target | Must not retry; reports the error |
| Master-abort | No DEVSEL# by the subtractive-decode clock | Nobody owns the address | Ends the cycle; reads typically return all ones (FFFFFFFFh), which is how enumeration finds empty slots |
Each master has a private REQ#/GNT# pair to a central arbiter in the host bridge. Arbitration is hidden: the arbiter can grant the next master while the current transaction is still running, so the new owner starts as soon as the bus goes idle. The arbitration algorithm is not specified (round robin is common), and the arbiter may park the grant on one master when nobody is asking. A master whose grant has been removed must end its burst when its latency timer (a config register, in clocks) expires, which caps how long one device can hold the bus.
All three masters request continuously. Each transaction: 1 address clock + initial latency + data phases (one per clock, no later waits) + 1 idle turnaround clock. When the timer expires and another master is waiting, the owner stops at that point and requests again.
Every function has 256 bytes of configuration space: Vendor and Device ID, Command and Status, Class Code, Header Type, BARs, Interrupt Pin and Line, and a capability list. Configuration cycles need a way to reach a card before it has any address assigned, so PCI uses a separate select line, IDSEL: each slot's IDSEL is wired (usually through a resistor) to a different upper AD line, and a Type 0 configuration cycle drives exactly one of those lines high in the address phase, selecting one slot. The low AD bits carry the function and register number.
For a bus behind a bridge, the host issues a Type 1 cycle carrying the bus, device, function and register numbers. Each bridge checks the bus number against its secondary-to-subordinate range, forwards the cycle, and the bridge whose secondary bus matches converts it into a Type 0 cycle with the right IDSEL. On PCs the CPU starts all this by writing an address to I/O port CF8h (CONFIG_ADDRESS) and reading or writing I/O port CFCh (CONFIG_DATA): configuration mechanism #1.
IDSEL wiring is board-specific; this example uses the common arrangement where device n on bus 0 has IDSEL on AD[16 + n]. Only devices whose IDSEL line exists on the board can be reached; scanning the others gives master-abort and all-ones data.
Discovery and setup then work exactly as they still do in PCIe: read the Vendor ID of every possible device (FFFFh means empty), check the Header Type for multi-function devices and bridges, number the buses behind bridges depth first, size each BAR by writing all ones and reading back, assign address ranges, and enable memory/I/O decoding and bus mastering in the Command register. The PCIe overview has interactive BAR-sizing and enumeration walkthroughs.
PCI has four interrupt wires, INTA# to INTD#. They are level-triggered and open-drain, so several devices can share one: each holds the line low until its driver services it, and the handler polls every device on that line. A single-function device uses INTA#. To stop every card piling onto the same wire, the motherboard rotates the connections slot by slot, and a PCI-to-PCI bridge rotates the lines of the devices behind it by device number, the swizzle: pin at the bridge = (pin + device number) mod 4. The firmware's routing tables (MP tables, ACPI _PRT) tell the OS which interrupt input each slot's pins finally reach. PCI 2.2 added MSI, interrupts as memory writes, which PCIe made the norm.
| Defined by PCI | In PCI Express |
|---|---|
| Configuration space, Vendor/Device/Class IDs, Header Type 0/1 | Unchanged; extended from 256 B to 4 KB |
| BARs and sizing by writing all ones | Unchanged |
| Bus:Device.Function, Type 0/Type 1 configuration | Unchanged, as configuration TLPs; ECAM replaces CF8h/CFCh |
| PCI-to-PCI bridge, primary/secondary/subordinate, windows | Every root port and switch port is a virtual PCI-to-PCI bridge |
| Posted writes, delayed reads, ordering rules | Posted / non-posted / completion TLPs with the same ordering model |
| INTA#–INTD# | Emulated as Assert/Deassert_INTx messages; MSI/MSI-X preferred |
| Shared bus, arbitration, FRAME#/IRDY#/TRDY#, reflected wave | Gone: point-to-point serial links, packets, credits |
Peak bandwidth assumes a data phase on every clock. Real transactions pay for the address phase, the target's initial latency, the turnaround and arbitration, and short bursts pay those costs often. And whatever is left is shared by every device on the bus.
PCI-X (1998) kept PCI's signals, connector and software model but changed the protocol so it could run faster in servers. PCI-X 2.0 (2003) doubled and quadrupled the data rate before PCI Express replaced it.
| PCI | PCI-X 1.0 | PCI-X 2.0 | |
|---|---|---|---|
| Clock / transfer rate | 33, 66 MHz | 66, 100, 133 MHz | 133 MHz clock; 266 MT/s (DDR), 533 MT/s (QDR) |
| Peak, 64-bit | 266, 533 MB/s | 533 MB/s – 1.06 GB/s | 2.13 GB/s, 4.27 GB/s |
| Signaling | 5 V / 3.3 V, reflected wave | 3.3 V | Mode 2: 1.5 V, source-synchronous strobes for DDR/QDR data |
| Timing | Inputs used in the same clock | Registered: inputs captured in a flip-flop and acted on one clock later, so decode gets a whole cycle | Same |
| Request information | Address + command | Plus an attribute phase: requester's bus/device/function, a tag, total byte count, relaxed-ordering and no-snoop hints | Same |
| Slow targets | Retry and delayed transactions | Split transactions: the target answers "split response" and later sends a split completion back to the requester, identified by its ID and tag | Same |
| Wait states | Either side, any data phase | Much more restricted; masters cannot insert waits | Same |
| Error protection | Parity (detect only) | Parity | ECC on data and header (Mode 2) |
| Slots per bus | ~4 at 33 MHz, 2 at 66 MHz | At most two | Fewer still at the highest rates |
| Version | Year | Change |
|---|---|---|
| 1.0 | 1992 | 32-bit, 33 MHz, 5 V signaling; optional 64-bit |
| 2.0 | 1993 | Connector and add-in card specification; 3.3 V slots |
| 2.1 | 1995 | Optional 66 MHz; latency rules made mandatory |
| 2.2 | 1998 | ECNs incorporated, Mini PCI, PME#; MSI |
| 2.3 | 2002 | 3.3 V signaling support required; 5 V-only cards removed |
| 3.0 | 2004 | 5 V keyed system-board connector removed |
On every rising edge where IRDY# and TRDY# are both sampled low. Any edge where either is high is a wait state.
The master drives AD with the address in the address phase. On a read the target must drive the data, and two drivers must never fight: the master releases AD, one clock passes with nobody driving, then the target takes over. On a write the master keeps driving AD, so no turnaround is needed.
It deasserts FRAME# at the same time as it asserts IRDY# for the final data phase. FRAME# high with IRDY# low means "this is the last one".
The driver launches only about half the swing. Receivers near the driver see that half-height step, below the input threshold, until the wave reaches the open far end and reflects back. The worst-case receiver therefore waits for a full round trip.
(INTB = 1, + 2) mod 4 = 3: INTD#.