# PCIe Slots and Expansion Cards

> Chapter 73 of the Courseiva A-PLUS-CORE-1 curriculum — https://courseiva.com/learn/a-plus-core-1/pcie-slots-expansion

**Official objective:** 3.1 — Hardware

## Introduction

How do you install and configure PCIe slots and expansion cards to meet Objective 2.6 (Given a scenario, install and configure a motherboard) of Domain 2.0 (Hardware) on the CompTIA A+ 220-1101 exam? You'll learn about PCIe generations, lane configurations, slot sizes, and how to select the right card for a slot. Expect 3-5 exam questions on PCIe, focusing on compatibility (e.g., x16 card in x8 slot), bandwidth calculations, and identifying slot types by physical size. Master this to avoid common mistakes like assuming a x16 card won't work in a smaller slot.

## PCIe Slots: Like Highway Lanes with Toll Booths

Suppose you've just built a multi-lane highway connecting a city (the expansion card) to the main city (the CPU and memory). Each lane is a 'lane' of data transfer, and the number of lanes (x1, x4, x8, x16) determines how many cars (data packets) can travel simultaneously. But it's not just about lanes; there are also 'toll booths' at each end—the PCIe controller on the card and the root complex on the motherboard. These toll booths use a protocol to manage traffic: they split data into packets, add headers with destination and sequencing info, and send them over the lanes. The lanes are full-duplex, meaning cars can travel in both directions at the same time. The speed of each lane depends on the PCIe generation (e.g., Gen 3 = 8 GT/s, Gen 4 = 16 GT/s). If you plug a Gen 4 card into a Gen 3 slot, both sides negotiate down to Gen 3 speeds—like a highway with a lower speed limit. The number of lanes is also negotiated: a x16 card in a x8 slot will only use 8 lanes, but it still works. This negotiation happens during initialization, where each card identifies itself and requests resources. The root complex then assigns memory addresses and interrupt lines. So, PCIe is a scalable, high-speed, point-to-point serial bus that dynamically configures itself for optimal performance.

## Core explanation

### What is PCIe?
PCI Express (PCIe) is a high-speed serial expansion bus standard that connects peripheral devices to the motherboard. It replaced older parallel buses like PCI and AGP. PCIe uses point-to-point topology—each device has a dedicated connection to the root complex (part of the chipset or CPU), unlike shared buses. This eliminates contention and allows full bandwidth per device.

### How PCIe Works
PCIe uses lanes, each consisting of two differential signal pairs (one transmit, one receive), providing full-duplex communication at up to 1 GB/s per lane per direction (Gen 3). Data is sent as packets with sequence numbers and CRC for error detection. The link is negotiated during initialization: the device and root complex exchange training sequences to determine lane width and speed. The maximum negotiated link width and speed are used. If a card supports x16 but the slot is x8, only 8 lanes are active. Similarly, if a Gen 3 card is inserted into a Gen 2 slot, it operates at Gen 2 speeds.

### PCIe Generations and Speeds
- PCIe 1.0: 2.5 GT/s per lane, ~250 MB/s per lane (8b/10b encoding)
- PCIe 2.0: 5 GT/s per lane, ~500 MB/s per lane (8b/10b)
- PCIe 3.0: 8 GT/s per lane, ~1 GB/s per lane (128b/130b encoding, more efficient)
- PCIe 4.0: 16 GT/s per lane, ~2 GB/s per lane (128b/130b)
- PCIe 5.0: 32 GT/s per lane, ~4 GB/s per lane (128b/130b)
Note: GT/s = gigatransfers per second. Actual data rate per lane is about 80% of GT/s for Gen 1/2 (due to 8b/10b overhead) and ~98.5% for Gen 3+ (128b/130b). For exam purposes, memorize the per-lane bandwidth in MB/s: Gen 1 = 250, Gen 2 = 500, Gen 3 = 1000, Gen 4 = 2000, Gen 5 = 4000.

### Physical Slot Sizes and Lane Configurations
PCIe slots are physically keyed to match lane counts:
- x1: smallest, 25 pins, 1 lane
- x4: 39 pins, 4 lanes (often open-ended)
- x8: 49 pins, 8 lanes (open-ended)
- x16: 82 pins, 16 lanes (common for GPUs)

Cards can be inserted into slots with equal or more lanes (e.g., x1 card in x16 slot works). But a x16 card in a x1 slot will physically fit only if the slot is open-ended; otherwise, it won't. The exam tests that a x16 card can work in a x8 slot (electrically) but at reduced performance.

### PCIe Configuration and Verification
In Windows, you can check PCIe link speed and width using:
- Device Manager > View devices by connection > find the device > Properties > Details > PCI Express link speed/width (not always visible)
- GPU-Z for graphics cards
- PowerShell: `Get-WmiObject Win32_PnPEntity | Where-Object {$_.Name -like "*PCI*"}` (limited)

In Linux: `lspci -vv` shows link speed and width under "LnkSta:".

### PCIe vs Other Expansion Slots
- PCI (legacy): 32-bit parallel bus, up to 133 MB/s, shared bandwidth. Not on modern motherboards.
- AGP: dedicated port for graphics, 2.1 GB/s max. Obsolete.
- M.2: uses PCIe lanes (x4) for NVMe SSDs, but physically different connector.
- Thunderbolt: combines PCIe and DisplayPort over USB-C, up to 40 Gbps.

The exam focuses on PCIe, but you may need to identify older slots for troubleshooting.

### PCIe Interaction with CPU and Chipset
Lanes come from CPU or chipset. Consumer CPUs (e.g., Intel Core) have 16-20 lanes directly for graphics and M.2. Chipset provides additional lanes (e.g., 24 lanes from Z690). If you install multiple GPUs, lane splitting occurs: two x16 cards may run at x8/x8. The exam may ask about shared bandwidth—e.g., using an M.2 slot can disable a SATA port.

### Common PCIe Devices
- Graphics cards (x16)
- NVMe SSDs (x4 via M.2 or add-in card)
- Network cards (x1, x4)
- USB 3.0/3.1 expansion cards (x1, x4)
- Sound cards (x1)
- Capture cards (x1, x4)
- RAID controllers (x8, x16)

### Power Delivery
PCIe slot provides up to 75W (x16 slot) for devices. High-power GPUs require additional 6-pin (75W) or 8-pin (150W) power connectors from PSU. The exam may test that a slot can supply 75W max.

### Hot-Plugging
PCIe supports hot-plugging if the motherboard and OS support it (e.g., ExpressCard, Thunderbolt). Standard internal PCIe is not hot-pluggable; power down before inserting/removing.

### Troubleshooting PCIe Issues
- Card not detected: reseat, check BIOS settings, update drivers.
- Performance lower than expected: check link speed/width in BIOS or OS; ensure card is in correct slot (e.g., GPU in primary x16 slot).
- System won't boot: card may be faulty or require more power; try different slot.
- Intermittent issues: dust, loose connection, insufficient PSU.

The exam emphasizes that a x16 card can run in a x8 slot at x8 speed, and that mixing generations negotiates to the lower speed.

### Summary of Key Numbers for Exam
- PCIe Gen 3 x16: 16 GB/s total (bidirectional, but typically considered 16 GB/s in one direction)
- PCIe Gen 4 x16: 32 GB/s
- Slot power: 75W max from slot
- Lane counts: 1,4,8,16 (also x2 but rare)
- Backward compatible: yes, but at lowest common denominator.

### Trap Patterns
- Trap: "A x16 card requires a x16 slot." Wrong: it works in x8 slot (electrically) but at x8 speed.
- Trap: "PCIe Gen 4 is twice as fast as Gen 3." True for raw GT/s, but actual bandwidth is exactly double (2 GB/s vs 1 GB/s per lane).
- Trap: "All PCIe slots are x16." No, slots vary; x16 slots are common for GPUs, but many x1, x4 slots exist.
- Trap: "You can install a PCIe card in a PCI slot." No, physically and electrically incompatible.

## Real-world context

In enterprise environments, PCIe slots are used for high-performance GPUs for AI/ML workloads, NVMe storage arrays, and 10/25/40 GbE network adapters. For example, a data center server may have multiple x16 slots for GPUs (e.g., NVIDIA A100) and x8 slots for dual-port 25GbE NICs. The key challenge is lane allocation: with a CPU that has only 64 lanes (e.g., AMD EPYC), you must carefully assign lanes to slots via BIOS to avoid bottlenecks. A common misconfiguration is installing a GPU in a chipset-connected x4 slot, severely limiting performance. Another scenario: a workstation used for video editing may have a high-end GPU in the primary x16 slot and a capture card in a x4 slot. If the capture card is mistakenly placed in a x1 slot, it may not have enough bandwidth for uncompressed 4K video. In production, we use tools like `lspci -vv` on Linux to verify link width and speed. For example, if a GPU shows 'LnkSta: Speed 8GT/s (ok), Width x8 (downgraded)', it indicates the slot is electrically x8, not x16. The fix: move the card to a different slot or check BIOS settings. Another common issue: thermal throttling due to inadequate airflow when multiple cards are packed closely. We always leave a slot gap between high-power cards. For storage, enterprise NVMe SSDs (e.g., Samsung PM9A3) use x4 lanes; installing them in a x2 slot halves throughput, causing I/O bottlenecks. We always verify slot capabilities before deployment. When troubleshooting, we check for BIOS updates that may fix lane negotiation issues. A typical mistake: assuming all x16 slots are wired as x16—many consumer boards have one x16 slot, with others limited to x4 electrically. Always consult the manual.

## Exam focus

The 220-1101 exam tests PCIe under Objective 2.6 (Install and configure motherboards). Expect questions on:
- Identifying slot types by physical size (x1, x4, x8, x16) and knowing which cards fit where.
- Understanding that a x16 card can operate in a x8 slot (electrically) but at reduced bandwidth.
- Knowing PCIe generations and bandwidths: Gen 3 x16 = 16 GB/s, Gen 4 x16 = 32 GB/s.
- Recognizing that PCIe is backward compatible but negotiates to the lowest speed/lane count.

Common wrong answers:
1. "A x16 card requires a x16 slot." Wrong: it works in x8 or larger slot, but may not physically fit in a closed x4 slot.
2. "PCIe Gen 4 is exactly twice as fast as Gen 3." True for per-lane bandwidth (2 GB/s vs 1 GB/s), but some think it's 4x.
3. "All PCIe slots provide the same number of lanes." Wrong: slots vary; x1, x4, x8, x16 are different.
4. "You can plug a PCIe card into a PCI slot with an adapter." No, electrically incompatible.

Exam loves edge cases:
- A x1 network card in a x16 slot works fine at x1 speed.
- A x16 GPU in a x4 slot (if physically open-ended) works but is severely bottlenecked.
- Mixing Gen 3 and Gen 4: both operate at Gen 3 speeds.
- Slot power: max 75W from slot; high-power cards need additional power.

To eliminate wrong answers, focus on the mechanism: PCIe negotiates link width and speed during initialization. If a card is placed in a smaller slot, it uses fewer lanes. If the slot is older generation, it uses that generation. The exam phrases questions like "Which of the following is true?" and includes distractors that assume incompatibility. Always think: "Will it work?" Yes, but at reduced performance.

## Step by step

1. **Identify the required expansion card** — Determine what peripheral you need (e.g., GPU, network card, NVMe SSD). Note the PCIe generation and lane requirements. For example, a modern GPU needs x16 Gen 3 or higher. Check the card's documentation for recommended slot width and power requirements. Also consider physical size: some cards are dual-slot (occupying two slot spaces).
2. **Locate the appropriate PCIe slot** — Examine the motherboard for available PCIe slots. The primary x16 slot (closest to CPU) is usually for GPU and has the most lanes directly from CPU. Secondary slots may be x8 or x4 from chipset. Check the motherboard manual to confirm lane distribution and any shared bandwidth (e.g., some M.2 slots disable certain PCIe slots). Ensure the slot is physically compatible: a x16 card needs an open-ended x16 slot or a x16 slot (most are closed at the end, but x16 cards have a notch that fits only x16 or open-ended slots).
3. **Prepare the system and slot** — Power off the system and unplug the power cord. Ground yourself to prevent ESD. Remove the slot cover from the case aligned with the chosen PCIe slot. If installing a GPU, you may need to remove adjacent slot covers for cooling. Inspect the slot for debris or damage. For a new card, remove it from anti-static bag and handle by edges.
4. **Insert the expansion card** — Align the card's edge connector with the PCIe slot. The card's bracket should align with the case opening. Press firmly and evenly until the card clicks into place. The slot's latch (if present) should snap up to secure the card. Do not force; if resistance, check alignment. For heavy cards (e.g., large GPU), support the card to avoid bending the slot.
5. **Connect power and secure the card** — If the card requires auxiliary power (e.g., 6-pin or 8-pin PCIe power connectors from PSU), connect them. Ensure the cables are fully seated. Secure the card's bracket to the case with a screw (usually Phillips head). Close the case and reconnect power. Power on the system; the card should be detected during POST. Install drivers from the manufacturer's website.

## Comparisons

### PCIe Gen 3 x16 vs PCIe Gen 4 x16

**PCIe Gen 3 x16:**
- 8 GT/s per lane
- ~1 GB/s per lane
- 16 GB/s total bandwidth
- Common in systems from 2012-2020
- Sufficient for most GPUs until ~2020

**PCIe Gen 4 x16:**
- 16 GT/s per lane
- ~2 GB/s per lane
- 32 GB/s total bandwidth
- Introduced in 2017, mainstream by 2020
- Required for modern high-end GPUs and NVMe 4.0 SSDs

## Common misconceptions

- **Misconception:** A x16 graphics card will not work in a x8 slot. **Reality:** It will work, but only at x8 link width, reducing bandwidth by half. The card negotiates to the slot's maximum lane count.
- **Misconception:** All PCIe slots on a motherboard are the same speed and width. **Reality:** Slots vary: some are x1, x4, x8, or x16. Also, slots connected to the chipset may share bandwidth, while the primary x16 slot is direct to CPU.
- **Misconception:** PCIe Gen 4 is four times faster than PCIe Gen 3. **Reality:** Per lane, Gen 4 is exactly twice as fast (2 GB/s vs 1 GB/s). The doubling of GT/s (16 vs 8) yields double bandwidth, not quadruple.
- **Misconception:** You can use a PCIe card in a legacy PCI slot with a simple adapter. **Reality:** PCI and PCIe are electrically and protocol-incompatible. No passive adapter exists; active bridge adapters are rare and not standard.
- **Misconception:** PCIe slots are hot-swappable like USB. **Reality:** Standard PCIe slots are not hot-swappable. You must power down the system before inserting or removing cards. Some specialized implementations (e.g., ExpressCard) support hot-plug, but not typical internal slots.

## Key takeaways

- PCIe uses serial point-to-point lanes; each lane is full-duplex.
- PCIe slot sizes: x1, x4, x8, x16; cards can fit in larger slots physically (if open-ended) but not smaller closed slots.
- PCIe is backward compatible: a Gen 4 card in a Gen 3 slot runs at Gen 3 speeds.
- A x16 card in a x8 slot operates at x8 width, reducing bandwidth by half.
- PCIe Gen 3 x16 = 16 GB/s; Gen 4 x16 = 32 GB/s.
- Maximum power from slot: 75W for x16; high-power cards need auxiliary power.
- PCIe slots are not hot-swappable (except specialized implementations).
- Lanes come from CPU or chipset; check motherboard manual for lane distribution.
- Common PCIe devices: GPU, NVMe SSD, NIC, sound card, capture card.
- Use lspci -vv (Linux) or GPU-Z (Windows) to check link speed and width.

## FAQ

**Can I put a PCIe x16 card in a PCIe x8 slot?**

Yes, electrically it will work, but it will only use 8 lanes, reducing bandwidth. Physically, a x16 card may not fit in a closed x8 slot (if the slot has a closed end). However, many x8 slots are open-ended to accommodate x16 cards. Check your motherboard.

**What happens if I use a PCIe Gen 4 GPU in a PCIe Gen 3 slot?**

The GPU will work, but it will operate at PCIe Gen 3 speeds. The link negotiates to the highest common generation supported by both the slot and the card. So you lose the extra bandwidth of Gen 4, but it's still functional.

**How much power does a PCIe slot provide?**

A standard PCIe x16 slot can provide up to 75W. x1 and x4 slots provide less (typically 25W and 25W respectively). High-power devices like gaming GPUs require additional 6-pin (75W) or 8-pin (150W) power connectors from the power supply.

**Can I use a PCIe NVMe SSD in a PCIe x1 slot?**

Yes, but performance will be severely limited because the SSD expects x4 lanes. A x1 slot provides only 1 lane, so bandwidth is 1/4 of what the SSD can handle. For example, a Gen 3 x4 SSD (4 GB/s) would be limited to 1 GB/s in a x1 slot.

**Why is my PCIe device not detected?**

Common causes: card not fully seated, power not connected (if required), BIOS settings (e.g., disabled slot), driver issues, or faulty card. Reseat the card, check power connections, and verify in BIOS if the slot is enabled. Also ensure the card is compatible with the slot (e.g., PCIe card in PCI slot won't work).

**What is PCIe bifurcation?**

Bifurcation is the ability to split a x16 slot into multiple smaller slots (e.g., x8/x8, x8/x4/x4) using a riser card. This is common in servers to connect multiple devices to one physical slot. It requires motherboard support and BIOS configuration.

**How do I check PCIe link speed in Windows?**

You can use GPU-Z for graphics cards, or in Device Manager, view the device properties and look for 'PCI Express link speed' (not always available). Third-party tools like HWiNFO provide detailed PCIe information. For Linux, use 'lspci -vv' and look for 'LnkSta:'.

---

Interactive version with quiz and diagrams: https://courseiva.com/learn/a-plus-core-1/pcie-slots-expansion
