Sub topic 10
Expansion slots: PCIe lanes and legacy PCI
This chapter assumes you can name the main motherboard parts and know what a chipset does. It also assumes you are comfortable with units such as GT/s and MB/s. An expansion slot is a connector on the motherboard that accepts an add-in card, such as a graphics card, network adapter, or sound card. The A+ exam expects you to identify slot types, match cards to slots, and explain what happens when a card and slot differ in size.
PCI Express: a point-to-point serial bus
PCI Express (PCIe) is the current expansion bus. It replaced PCI and AGP. Older PCI was a shared parallel bus, so every card on it competed for the same bandwidth. PCIe is different. Each slot has its own dedicated serial connection to the CPU or chipset. A busy card in one slot does not slow a card in another slot.
A PCIe connection is built from lanes. One lane is two pairs of wires, one pair for sending and one for receiving. Both directions run at the same time, which is called full duplex. A slot can have 1, 4, 8, or 16 lanes. The lane count is written with an "x", such as x1 or x16.
More lanes mean more bandwidth. Lanes add together, so an x16 slot has about sixteen times the bandwidth of an x1 slot of the same generation.
Slot sizes and what they are used for
The physical slot gets longer as the lane count rises. The number of contacts in the slot sets its size.
| Slot | Lanes | Typical use |
|---|---|---|
| x1 | 1 | Network cards, sound cards, USB expansion cards |
| x4 | 4 | Fast storage adapters, capture cards |
| x8 | 8 | RAID controllers, server network cards |
| x16 | 16 | Graphics cards |
Generations and bandwidth
Each PCIe generation roughly doubles the per-lane speed of the one before it. A card and a slot of different generations still work together. They negotiate down to the speed of the older one.
| Generation | Transfer rate per lane | Approx. usable bandwidth per lane (each direction) | Approx. x16 (each direction) |
|---|---|---|---|
| PCIe 3.0 | 8 GT/s | about 1 GB/s | about 16 GB/s |
| PCIe 4.0 | 16 GT/s | about 2 GB/s | about 32 GB/s |
| PCIe 5.0 | 32 GT/s | about 4 GB/s | about 64 GB/s |
GT/s means gigatransfers per second. The usable figure is a little lower than the raw rate because of encoding overhead. The table rounds the numbers to keep them easy to remember.
You can estimate any combination with a short calculation. The sketch below uses the rounded per-lane figures from the table.
# Approximate usable bandwidth per lane, in GB/s, one direction.
PER_LANE_GB_S = {3: 1.0, 4: 2.0, 5: 4.0}
def pcie_bandwidth_gb_s(generation, lanes):
"""Approximate one-direction PCIe bandwidth in GB/s."""
return PER_LANE_GB_S[generation] * lanes
print(pcie_bandwidth_gb_s(3, 16)) # 16.0
print(pcie_bandwidth_gb_s(4, 4)) # 8.0
print(pcie_bandwidth_gb_s(5, 1)) # 4.0Physical size versus electrical lanes
A slot has two sizes that can differ: the physical length and the number of lanes actually wired to it. A board may have a full-length x16 slot that is wired for only x4 or x8. Motherboard manuals describe this as "x16 slot running at x4".
This matters in two ways:
- A smaller card fits in a larger slot. An x1 card works in an x4, x8, or x16 slot.
- A larger card can work in a smaller slot only if the slot is open-ended or the card is physically adapted. A standard closed x1 slot cannot take an x16 card.
When a card has more lanes than the slot provides, it runs at the slot's lane count. A graphics card in an x16-sized slot wired for x4 still works, but with less bandwidth.
A short note on risers. A riser cable or card moves a slot to another position, often so a graphics card can mount vertically or in a small case. Mining and compact builds often use x1-to-x16 risers. The card runs at x1 speed even though it looks like an x16 connection.
Where the lanes come from
Lanes are a limited resource. The CPU provides some, and the chipset provides more. The slot closest to the CPU, usually the top x16 slot, normally connects directly to CPU lanes for the best performance. Other slots and M.2 drives often connect through the chipset. The chipset itself links to the CPU through a single high-speed link, so everything behind the chipset shares that link.
Lane sharing causes surprises. Installing a drive in a certain M.2 socket can disable a SATA port or reduce a slot from x16 to x8. Always check the board manual for sharing rules.
Slot features worth knowing
Several details appear on the exam and in real builds.
- Retention clip. Many x16 slots have a latch at the end that holds the card. Release it before pulling the card out.
- Backward and forward compatibility. A PCIe 4.0 card works in a 3.0 slot at 3.0 speed. A 3.0 card works in a 4.0 slot at 3.0 speed.
- Auxiliary power. The x16 slot supplies up to 75 W. A card that needs more has its own power connector from the power supply. Power connectors are covered in a later chapter.
- Hot swapping. Standard desktop slots are not hot-swappable. Power the system off and unplug it before adding or removing a card.
- Mini PCIe and M.2. Laptops use smaller form factors for wireless cards and drives. They carry PCIe signals but use a different connector.
Legacy PCI
Conventional PCI is the older parallel bus. A standard PCI slot is white or cream, shorter than an x16 slot, and has a divider placed toward one end of the slot. It is a shared 32-bit bus running at 33 MHz, which gives a peak of about 133 MB/s that all PCI devices split between them. Faster variants existed: 64-bit and 66 MHz versions, plus PCI-X for servers.
You will still see PCI in older desktops and some industrial machines. New consumer boards rarely include it. When a board has no PCI slot, a PCIe card or a USB device must replace the old card.
PCI and PCIe slots are not interchangeable. They have different connectors and signaling, so a PCI card cannot be forced into a PCIe slot or the reverse.
| Feature | PCI | PCIe |
|---|---|---|
| Design | Shared parallel bus | Dedicated serial lanes |
| Peak speed | About 133 MB/s (32-bit, 33 MHz), shared | About 1 GB/s per lane per direction (3.0), per slot |
| Slot colors and sizes | One length, usually white | x1, x4, x8, x16 |
| Hot swap | No | No on desktops |
| Status | Legacy | Current |
Identifying slots in the operating system
You can confirm what is installed and how it is linked from the OS. On Windows, Device Manager lists the adapters. On Linux, the following command shows PCI and PCIe devices, and the verbose option reports the link speed and width.
lspci
sudo lspci -vv | grep -E "^[0-9a-f]{2}:|LnkCap|LnkSta"LnkCap is what the device can do. LnkSta is what it negotiated. If LnkSta shows a lower width or speed than LnkCap, the card is limited by the slot, a riser, or a poor connection.
Common problems
- Card not detected. Reseat the card. Check that the retention clip is latched and that any auxiliary power cable is connected. Dust or a partly inserted card is a frequent cause.
- Card runs slowly. Check that the card sits in the slot wired for the most lanes. Move it from a chipset slot to the CPU slot if needed.
- A drive or port disappears after installing a card. Lane sharing is the likely cause. Read the manual's sharing table.
- Wrong slot for the card. The card does not fit physically. Choose a slot at least as long as the card's connector, or use an open-ended slot.
- No display from a new graphics card. Confirm the monitor cable is on the card's output, not the motherboard's. Confirm the power connectors are seated.
Exercise
A technician installs a PCIe 4.0 x4 capture card in a PCIe 3.0 x16 slot that is wired for x4. Does the card work? Roughly how much bandwidth does it get in each direction?
Show answer
Yes. The x4 card fits in the larger slot, and the two devices negotiate down to PCIe 3.0. With four lanes at about 1 GB/s each, the card gets about 4 GB/s in each direction.
Exercise
A user adds an M.2 drive and one of the board's SATA ports stops working. What is the likely cause and where do you confirm it?
Show answer
The M.2 socket and that SATA port share chipset lanes, so using one disables the other. Confirm it in the motherboard manual's lane-sharing table.
Exercise
Why does a PCIe slot give a card more reliable bandwidth than a PCI slot?
Show answer
PCI is a shared parallel bus, so all PCI cards divide one 133 MB/s pool. Each PCIe slot has its own dedicated serial lanes, so cards do not compete with one another.