Skip to content
VLSI Mentor
Learnings · PCIe · Labs

PCIe RTL Design & UVM Verification Labs.

A structured, hands-on learning path covering PCIe architecture, transaction-layer RTL, TLP processing, flow control, Data Link Layer reliability, link-training abstractions, UVM verification, debugging, DMA, and verification sign-off. Link training is modelled at the state-machine level — there is no electrical or SerDes modelling.

50Labs
10Modules
50Published
Foundation → ExpertLevel
RTL Design & Design VerificationCategory
All 50 labs are published. One purchase covers the entire collection.
PCIe

Ten modules — TLP fundamentals to verification sign-off

Module 1Foundation · 5 labs

PCIe Architecture & Transaction Fundamentals

Root Complex and Endpoint roles, a configuration-space model, BAR decode, TLP classification and header parsing.

PCIe-01 · PCIe-02 · PCIe-03 · PCIe-04 · PCIe-05

Module 2Intermediate · 5 labs

TLP Generation & Processing

Memory write and read request generation with tag allocation, completion generation, malformed-TLP detection and a request-to-completion scoreboard.

PCIe-06 · PCIe-07 · PCIe-08 · PCIe-09 · PCIe-10

Module 3Intermediate · 5 labs

Flow Control & Buffer Management

Posted, non-posted and completion credit accounting, a credit-aware scheduler, receive-buffer capacity, credit return and backpressure verification.

PCIe-11 · PCIe-12 · PCIe-13 · PCIe-14 · PCIe-15

Module 4Advanced · 5 labs

Data Link Layer Reliability

Sequence numbers, LCRC generation and checking, ACK/NAK processing, the replay buffer, and replay-timeout and corruption verification.

PCIe-16 · PCIe-17 · PCIe-18 · PCIe-19 · PCIe-20

Module 5Advanced · 5 labs

Link Training & State Machines

An abstracted LTSSM, transition assertions, a simplified lane-training controller, link-width negotiation and recovery verification.

PCIe-21 · PCIe-22 · PCIe-23 · PCIe-24 · PCIe-25

Module 6Advanced · 5 labs

Ordering, Tags & Completion Handling

Outstanding-request tracking, split-completion reassembly, ordering checks, out-of-order completions and completion-timeout detection.

PCIe-26 · PCIe-27 · PCIe-28 · PCIe-29 · PCIe-30

Module 7Advanced · 5 labs

PCIe UVM Verification Architecture

A TLP sequence item, sequencer, driver and monitor, an active/passive agent, a reference model and scoreboard, and transaction coverage.

PCIe-31 · PCIe-32 · PCIe-33 · PCIe-34 · PCIe-35

Module 8Expert · 5 labs

Advanced UVM Stress & Debugging

Constrained-random mixed traffic, multi-agent virtual sequences, error injection, protocol invariants and seeded-defect debugging.

PCIe-36 · PCIe-37 · PCIe-38 · PCIe-39 · PCIe-40

Module 9Expert · 5 labs

DMA & Endpoint Subsystem Design

DMA read and write engines, completion-buffer management, an integrated endpoint transaction subsystem and end-to-end data-integrity verification.

PCIe-41 · PCIe-42 · PCIe-43 · PCIe-44 · PCIe-45

Module 10Expert · 5 labs

Final Integration & Verification Sign-Off

A configurable transaction-layer endpoint, an integrated UVM environment, regression, coverage closure and a verification sign-off capstone.

PCIe-46 · PCIe-47 · PCIe-48 · PCIe-49 · PCIe-50

Lab numbers are stable IDs (Lab 7 is PCIe-07). Labs marked “Coming soon” are not yet available.

All 50 labs

Search and filter the full curriculum. Titles, previews and metadata are free to browse — full lab content requires the labs package.

50 of 50
Module
Difficulty
Status

Module 1PCIe Architecture & Transaction Fundamentals

Root Complex and Endpoint roles, a configuration-space model, BAR decode, TLP classification and header parsing.

5 labs · 5 published
  1. Lab 1
    PCIe Architecture & Transaction Fundamentals

    Root Complex and Endpoint Transaction-Flow Model

    How would you model the request and completion flow between a Root Complex and an Endpoint, so that every non-posted request is answered and no posted write expects a reply?

    Foundation·90 min·Testbench·4 challenges
    FoundationPublishedPaid
  2. Lab 2
    PCIe Architecture & Transaction Fundamentals

    PCIe Configuration-Space Register Model

    How would you model a Type 0 configuration header whose read-only, read-write and write-1-to-clear fields behave correctly under configuration reads and writes?

    Foundation·120 min·Testbench·4 challenges
    FoundationPublishedPaid
  3. Lab 3
    PCIe Architecture & Transaction Fundamentals

    BAR Address-Decode Unit

    How would you design a BAR decoder that supports size discovery and claims only the address windows software has programmed?

    Foundation·120 min·Testbench·4 challenges
    FoundationPublishedPaid
  4. Lab 4
    PCIe Architecture & Transaction Fundamentals

    Memory Read / Write TLP Classifier

    How would you classify incoming TLPs by their Fmt and Type fields so memory reads, memory writes and every other TLP take the correct path?

    Foundation·90 min·Testbench·4 challenges
    FoundationPublishedPaid
  5. Lab 5
    PCIe Architecture & Transaction Fundamentals

    TLP Header Parser and Field Validation

    How would you parse a TLP header into its fields and reject headers whose Length, address or reserved encodings are inconsistent?

    Foundation·120 min·Testbench·4 challenges
    FoundationPublishedPaid

Module 2TLP Generation & Processing

Memory write and read request generation with tag allocation, completion generation, malformed-TLP detection and a request-to-completion scoreboard.

5 labs · 5 published
  1. Lab 6
    TLP Generation & Processing

    Parameterized Memory Write TLP Generator

    How would you generate memory write TLPs whose header format, Length and byte enables follow from a parameterized address and payload?

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 7
    TLP Generation & Processing

    Memory Read Request Generator with Tag Allocation

    How would you issue memory read requests that never reuse a tag while an earlier request with that tag is still outstanding?

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 8
    TLP Generation & Processing

    Completion TLP Generator

    How would you build completions whose Requester ID, Tag, Byte Count and Lower Address let the requester match and reassemble them?

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 9
    TLP Generation & Processing

    Malformed TLP Detection and Validation

    How would you detect malformed TLPs — length mismatches, illegal field combinations, requests that cross a 4 KB boundary — and report them without disturbing legal traffic?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  5. Lab 10
    TLP Generation & Processing

    Request-to-Completion Scoreboard

    How would you build a scoreboard that pairs every non-posted request with its completions and flags missing, duplicate or mismatched responses?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 3Flow Control & Buffer Management

Posted, non-posted and completion credit accounting, a credit-aware scheduler, receive-buffer capacity, credit return and backpressure verification.

5 labs · 5 published
  1. Lab 11
    Flow Control & Buffer Management

    Posted, Non-Posted, and Completion Credit Accounting

    How would you track header and data credits separately for posted, non-posted and completion traffic?

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 12
    Flow Control & Buffer Management

    Credit-Aware TLP Transmit Scheduler

    How would you schedule TLPs so nothing is sent without sufficient credits, while blocked non-posted requests do not stall posted writes that ordering allows to proceed?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 13
    Flow Control & Buffer Management

    Receive Buffer and Header/Data Capacity Manager

    How would you size and manage receive buffers so the credits advertised never exceed the header and data space actually available?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 14
    Flow Control & Buffer Management

    Flow-Control Update and Credit Conservation

    How would you return credits through flow-control updates so that no credit is ever lost or created as buffers drain?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  5. Lab 15
    Flow Control & Buffer Management

    Credit Exhaustion and Backpressure Verification

    How would you verify that the transmitter stalls cleanly when credits run out and resumes without loss or reordering when they return?

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 6Ordering, Tags & Completion Handling

Outstanding-request tracking, split-completion reassembly, ordering checks, out-of-order completions and completion-timeout detection.

5 labs · 5 published
  1. Lab 26
    Ordering, Tags & Completion Handling

    Outstanding Request and Tag Tracker

    How would you track outstanding non-posted requests by tag so a tag is freed only when its final completion arrives?

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  2. Lab 27
    Ordering, Tags & Completion Handling

    Split Completion Reassembly Engine

    How would you reassemble a read whose data returns as several completions, using Byte Count and Lower Address to place each fragment?

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid
  3. Lab 28
    Ordering, Tags & Completion Handling

    PCIe Transaction Ordering Checker

    How would you check that posted, non-posted and completion traffic obey the PCIe ordering rules, including where Relaxed Ordering permits passing?

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid
  4. Lab 29
    Ordering, Tags & Completion Handling

    Out-of-Order Completion Verification

    How would you verify that completions for different tags may return in any order while the completions of one request still arrive in address order?

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid
  5. Lab 30
    Ordering, Tags & Completion Handling

    Completion Timeout and Unexpected Response Detector

    How would you detect requests whose completions never arrive and completions that match no outstanding request?

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid

Module 7PCIe UVM Verification Architecture

A TLP sequence item, sequencer, driver and monitor, an active/passive agent, a reference model and scoreboard, and transaction coverage.

5 labs · 5 published
  1. Lab 31
    PCIe UVM Verification Architecture

    PCIe TLP UVM Sequence Item

    How would you model a TLP as a UVM sequence item whose constraints produce legal headers by default and illegal ones only on request?

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  2. Lab 32
    PCIe UVM Verification Architecture

    PCIe UVM Sequencer, Driver, and Monitor

    How would you build a sequencer, driver and monitor so the monitor reconstructs every TLP independently of what the driver intended to send?

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid
  3. Lab 33
    PCIe UVM Verification Architecture

    Active and Passive PCIe UVM Agent

    How would you package these components into an agent that runs active or passive from configuration alone?

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid
  4. Lab 34
    PCIe UVM Verification Architecture

    PCIe Reference Model and Scoreboard

    How would you build a transaction-level reference model and scoreboard that predict completions and memory effects from observed requests?

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid
  5. Lab 35
    PCIe UVM Verification Architecture

    Functional Coverage for PCIe Transactions

    How would you define coverage for TLP types, lengths, byte-enable alignment, read concurrency and completion splitting so that coverage measures risk, not just traffic volume, and then prove every gap was closed?

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid

Module 8Advanced UVM Stress & Debugging

Constrained-random mixed traffic, multi-agent virtual sequences, error injection, protocol invariants and seeded-defect debugging.

5 labs · 5 published
  1. Lab 36
    Advanced UVM Stress & Debugging

    Constrained-Random Mixed PCIe Traffic

    How would you generate mixed reads, writes and completions with constraints that reach corner cases such as lengths ending at a 4 KB boundary and tag exhaustion?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  2. Lab 37
    Advanced UVM Stress & Debugging

    Multi-Agent UVM Virtual Sequences

    How would you coordinate two requester agents that share one completer with virtual sequences, so dependencies between them hold, reset stops them cleanly and their interleaving is reproducible from a seed?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  3. Lab 38
    Advanced UVM Stress & Debugging

    PCIe Error Injection and Negative Testing

    How would you inject malformed requests and wrong, duplicated, missing or unexpected completions, and prove that the intended detector reported each one, on the right transaction, and that the design recovered?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  4. Lab 39
    Advanced UVM Stress & Debugging

    Protocol Assertions and Invariant Checking

    How would you express handshake stability, Tag uniqueness, completion matching and capacity as assertions that hold on every cycle, prove that each one was really exercised, and state what a liveness property must assume?

    Expert·150 min·Testbench·4 challenges
    ExpertPublishedPaid
  5. Lab 40
    Advanced UVM Stress & Debugging

    Seeded RTL Defect Debugging with UVM

    Given a design with seeded defects, how would you use the UVM environment, logs and waveforms to localise each one to its line of RTL?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid

Module 9DMA & Endpoint Subsystem Design

DMA read and write engines, completion-buffer management, an integrated endpoint transaction subsystem and end-to-end data-integrity verification.

5 labs · 5 published
  1. Lab 41
    DMA & Endpoint Subsystem Design

    PCIe Endpoint DMA Read Engine

    How would you design a DMA engine that splits a host-memory read into requests that respect the maximum read request size and the 4 KB boundary?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  2. Lab 42
    DMA & Endpoint Subsystem Design

    PCIe DMA Write Engine

    How would you design a DMA write engine that segments payloads by the maximum payload size and the 4 KB boundary while respecting posted credits?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  3. Lab 43
    DMA & Endpoint Subsystem Design

    Completion Buffer and Backpressure Manager

    How would you reserve completion buffer space before issuing reads, so the endpoint never requests more data than it can absorb?

    Expert·150 min·Testbench·4 challenges
    ExpertPublishedPaid
  4. Lab 44
    DMA & Endpoint Subsystem Design

    Integrated Endpoint Transaction Subsystem

    How would you integrate configuration space, BAR decode, DMA engines and completion handling into one endpoint transaction subsystem with clean internal interfaces?

    Expert·240 min·Testbench·4 challenges
    ExpertPublishedPaid
  5. Lab 45
    DMA & Endpoint Subsystem Design

    End-to-End DMA Data Integrity Verification

    How would you show that every byte a DMA moves arrives exactly once, unmodified, at the right address — across splits, reordering and backpressure?

    Expert·210 min·Testbench·4 challenges
    ExpertPublishedPaid

Module 10Final Integration & Verification Sign-Off

A configurable transaction-layer endpoint, an integrated UVM environment, regression, coverage closure and a verification sign-off capstone.

5 labs · 5 published
  1. Lab 46
    Final Integration & Verification Sign-Off

    Configurable PCIe Transaction-Layer Endpoint

    How would you parameterize the endpoint — BAR count and size, tag count, payload and read-request sizes — and keep every configuration verifiable?

    Expert·240 min·Testbench·4 challenges
    ExpertPublishedPaid
  2. Lab 47
    Final Integration & Verification Sign-Off

    Integrated UVM Environment and Assertions

    How would you assemble agents, the reference model, scoreboards and bound assertions into one environment for the configurable endpoint?

    Expert·240 min·Testbench·4 challenges
    ExpertPublishedPaid
  3. Lab 48
    Final Integration & Verification Sign-Off

    Directed and Constrained-Random Regression

    How would you organise directed and random tests into a regression with seeds, pass/fail triage and reproducible failures?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  4. Lab 49
    Final Integration & Verification Sign-Off

    Functional Coverage Closure Analysis

    How would you analyse coverage holes, decide which are reachable, and close them with targeted tests or justified exclusions?

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  5. Lab 50
    Final Integration & Verification Sign-Off

    PCIe Verification Sign-Off Capstone

    What evidence — tests, coverage, assertions and bug history — would you present to sign off the endpoint, and how would you state what remains unverified?

    Expert·240 min·Testbench·4 challenges
    ExpertPublishedPaid