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.

Five modules — protocol RTL to verification closure
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
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
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
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
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.
Module 1APB Protocol Fundamentals & RTL Foundations
SETUP and ACCESS phases, register decode, PREADY wait states, PSLVERR and a parameterized register bank.
- Lab 1APB 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 challengesFoundationPublishedPaid - Lab 2APB 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 challengesFoundationPublishedPaid - Lab 3APB 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 challengesFoundationPublishedPaid - Lab 4APB 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 challengesFoundationPublishedPaid
Module 2Intermediate RTL Architecture & Timing
Real peripherals behind APB — GPIO, a programmable timer, a UART register interface and a multi-completer interconnect.
- Lab 5Intermediate 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 challengesIntermediatePublishedPaid - Lab 6Intermediate 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 challengesIntermediatePublishedPaid - Lab 7Intermediate 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 challengesIntermediatePublishedPaid - Lab 8Intermediate 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 challengesIntermediatePublishedPaid
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.
- Lab 9SystemVerilog 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 challengesIntermediatePublishedPaid - Lab 10SystemVerilog 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 challengesIntermediatePublishedPaid - Lab 11SystemVerilog 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 challengesIntermediatePublishedPaid - Lab 12SystemVerilog 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 challengesIntermediatePublishedPaid
Module 4Advanced UVM, Assertions & Coverage
A UVM register model over APB, protocol assertions, functional coverage, and verification of the multi-completer interconnect.
- Lab 13Advanced 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 challengesAdvancedPublishedPaid - Lab 14Advanced 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 challengesAdvancedPublishedPaid - Lab 15Advanced 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 challengesAdvancedPublishedPaid - Lab 16Advanced 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 challengesAdvancedPublishedPaid
Module 5Expert Debugging, Integration & Verification Closure
Injected-defect debugging, reset during active transfers, regression and coverage closure, and a multi-peripheral capstone.
- Lab 17Expert 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 challengesExpertPublishedPaid - Lab 18Expert 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 challengesExpertPublishedPaid - Lab 19Expert 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 challengesExpertPublishedPaid - Lab 20Expert 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 challengesExpertPublishedPaid
