Skip to content
VLSI Mentor
Learnings · AMBA APB · Labs

AMBA APB — RTL Design & UVM Verification Labs.

Twenty progressive APB labs, from a four-register completer to a verified multi-peripheral subsystem — synthesizable RTL, wait states and PSLVERR, real peripherals behind an interconnect, SystemVerilog interfaces and monitors, UVM agents and scoreboards, a register model, protocol assertions, functional coverage, debugging and regression closure. APB4 is the target protocol; features introduced in APB3 or APB4 are identified where they appear.

20Labs
5Modules
20Published
Foundation → ExpertLevel
All 20 labs are published. One purchase covers the entire collection.
APB

Five modules — protocol RTL to verification closure

Module 1Foundation · 4 labs

APB Protocol Fundamentals & RTL Foundations

SETUP and ACCESS phases, register decode, PREADY wait states, PSLVERR and a parameterized register bank.

APB-01 · APB-02 · APB-03 · APB-04

Module 2Intermediate · 4 labs

Intermediate RTL Architecture & Timing

Real peripherals behind APB — GPIO, a programmable timer, a UART register interface and a multi-completer interconnect.

APB-05 · APB-06 · APB-07 · APB-08

Module 3Intermediate · 4 labs

SystemVerilog Verification & UVM Foundations

An APB interface and protocol monitor, a reusable UVM agent, a scoreboard with a reference model, and wait-state and error tests.

APB-09 · APB-10 · APB-11 · APB-12

Module 4Advanced · 4 labs

Advanced UVM, Assertions & Coverage

A UVM register model over APB, protocol assertions, functional coverage, and verification of the multi-completer interconnect.

APB-13 · APB-14 · APB-15 · APB-16

Module 5Expert · 4 labs

Expert Debugging, Integration & Verification Closure

Injected-defect debugging, reset during active transfers, regression and coverage closure, and a multi-peripheral capstone.

APB-17 · APB-18 · APB-19 · APB-20

Lab numbers are stable IDs (Lab 7 is APB-07). Labs build on earlier ones in module order, ending in the Lab 20 capstone.

All 20 labs

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

20 of 20
Module
Difficulty
Status

Module 1APB Protocol Fundamentals & RTL Foundations

SETUP and ACCESS phases, register decode, PREADY wait states, PSLVERR and a parameterized register bank.

4 labs · 4 published
  1. Lab 1
    APB Protocol Fundamentals & RTL Foundations

    Design an APB Slave with a Four-Register Memory Map

    Design an APB completer that decodes four 32-bit registers from PADDR, updates them from PWDATA in the ACCESS phase of a write, and returns PRDATA on reads.

    Foundation·90 min·Testbench·4 challenges
    FoundationPublishedPaid
  2. Lab 2
    APB Protocol Fundamentals & RTL Foundations

    Design an APB Slave with Configurable Wait States

    Extend an APB completer with a parameterized number of wait states, using PREADY (introduced in APB3) to hold the transfer in the ACCESS phase.

    Foundation·90 min·Testbench·4 challenges
    FoundationPublishedPaid
  3. Lab 3
    APB Protocol Fundamentals & RTL Foundations

    Implement PSLVERR and Invalid Address Handling

    Report unmapped addresses and illegal accesses with PSLVERR (introduced in APB3), driven in the last cycle of the transfer, when PSEL, PENABLE and PREADY are all high.

    Foundation·90 min·Testbench·4 challenges
    FoundationPublishedPaid
  4. Lab 4
    APB Protocol Fundamentals & RTL Foundations

    Design a Parameterized APB Register Bank

    Build an APB register bank parameterized by register count and data width, with APB4 PSTRB byte-lane write strobes and per-register access types.

    Foundation·120 min·Testbench·4 challenges
    FoundationPublishedPaid

Module 2Intermediate RTL Architecture & Timing

Real peripherals behind APB — GPIO, a programmable timer, a UART register interface and a multi-completer interconnect.

4 labs · 4 published
  1. Lab 5
    Intermediate RTL Architecture & Timing

    Design an APB GPIO Peripheral

    Design an APB GPIO peripheral with output data, direction and input registers, synchronizing the external input pins before they are read over the bus.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 6
    Intermediate RTL Architecture & Timing

    Design an APB Programmable Timer

    Design an APB-programmable timer with load, control and status registers, a down-counter and a write-one-to-clear expiry flag.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 7
    Intermediate RTL Architecture & Timing

    Design an APB UART Configuration Register Interface

    Design the APB register interface of a UART — baud divisor, line control and status registers — and the control signals it drives into the UART core.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 8
    Intermediate RTL Architecture & Timing

    Design a Multi-Slave APB Interconnect

    Design an APB interconnect that decodes PADDR into one PSEL per completer and returns PRDATA, PREADY and PSLVERR from the selected completer, with an error response for unmapped regions.

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 3SystemVerilog Verification & UVM Foundations

An APB interface and protocol monitor, a reusable UVM agent, a scoreboard with a reference model, and wait-state and error tests.

4 labs · 4 published
  1. Lab 9
    SystemVerilog Verification & UVM Foundations

    Build an APB SystemVerilog Interface and Protocol Monitor

    Build a SystemVerilog interface for the APB4 signal set with clocking blocks and modports, and a monitor that reconstructs each completed transfer, including its wait states and response.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 10
    SystemVerilog Verification & UVM Foundations

    Build a Reusable UVM APB Master Agent

    Build a reusable UVM APB requester agent — sequence item, sequencer, driver and monitor — configurable as active or passive through a configuration object.

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 11
    SystemVerilog Verification & UVM Foundations

    Develop an APB Register Scoreboard and Reference Model

    Develop a register reference model that predicts every APB read from reset values and earlier writes, and a scoreboard that reports each mismatch by address.

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 12
    SystemVerilog Verification & UVM Foundations

    Verify APB Wait-State and Error Responses Using UVM

    Verify wait-state and error behaviour with UVM sequences that vary the PREADY latency and target invalid addresses, checking every transfer's response.

    Intermediate·150 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 4Advanced UVM, Assertions & Coverage

A UVM register model over APB, protocol assertions, functional coverage, and verification of the multi-completer interconnect.

4 labs · 4 published
  1. Lab 13
    Advanced UVM, Assertions & Coverage

    Develop a UVM Register Abstraction Layer for an APB Peripheral

    Develop a UVM register model for an APB peripheral, connect it through a register adapter and predictor, and run front-door register accesses against the RTL.

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid
  2. Lab 14
    Advanced UVM, Assertions & Coverage

    Write SystemVerilog Assertions for APB Protocol Compliance

    Write SystemVerilog Assertions for APB4 protocol rules — the SETUP-to-ACCESS sequence, signal stability while PREADY is low, PSLVERR validity and PSTRB on reads.

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid
  3. Lab 15
    Advanced UVM, Assertions & Coverage

    Build Functional Coverage for APB Transactions

    Build functional coverage for APB transfers — direction, address region, wait states, error response, PSTRB patterns and back-to-back transfers — with crosses that expose untested combinations.

    Advanced·150 min·Testbench·4 challenges
    AdvancedPublishedPaid
  4. Lab 16
    Advanced UVM, Assertions & Coverage

    Verify Multi-Slave APB Interconnect Behavior Using UVM

    Verify the multi-completer APB interconnect in UVM — address decoding, response routing and unmapped-region behaviour, observed at every completer port.

    Advanced·180 min·Testbench·4 challenges
    AdvancedPublishedPaid

Module 5Expert Debugging, Integration & Verification Closure

Injected-defect debugging, reset during active transfers, regression and coverage closure, and a multi-peripheral capstone.

4 labs · 4 published
  1. Lab 17
    Expert Debugging, Integration & Verification Closure

    Debug an APB Slave with Injected RTL Defects

    Debug an APB completer seeded with RTL defects, using failing checks, assertions and waveforms to trace each failure to its root cause.

    Expert·150 min·Testbench·4 challenges
    ExpertPublishedPaid
  2. Lab 18
    Expert Debugging, Integration & Verification Closure

    Verify Reset During Active APB Transactions

    Verify PRESETn asserted in the middle of SETUP and ACCESS phases — the bus and the registers return to their reset state and the testbench discards the interrupted transfer.

    Expert·150 min·Testbench·4 challenges
    ExpertPublishedPaid
  3. Lab 19
    Expert Debugging, Integration & Verification Closure

    Build a Reusable APB UVM Regression and Coverage Closure Flow

    Build a reusable regression flow for the APB UVM environment — test lists, seeds, pass/fail collection and merged coverage — and use it to close coverage.

    Expert·180 min·Testbench·4 challenges
    ExpertPublishedPaid
  4. Lab 20
    Expert Debugging, Integration & Verification Closure

    Capstone: Design and Verify a Multi-Peripheral APB Subsystem

    Integrate the GPIO, timer and UART register peripherals behind the APB interconnect, then verify the subsystem with UVM, assertions and functional coverage.

    Expert·240 min·Testbench·4 challenges
    ExpertPublishedPaid