Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Turn an APB3 agent into reusable verification IP

Hardware interview practice

Turn an APB3 agent into reusable verification IP

HardUVM ComponentsSystemVerilog

Upgrade an active-only Advanced Peripheral Bus 3 (APB3) master agent into reusable active/passive verification IP (VIP) with wait-state handling, checking, assertions, and coverage.

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

PCLK, PRESETn, PSEL, PENABLE, PREADY;
PADDR, PWRITE, PWDATA, PRDATA, PSLVERR;
Reviewed example

Work through one case

Input
APB read with three PREADY-low wait cycles followed by one PREADY-high ACCESS cycle
Expected output
one observed read; stable address/control through all waits; PRDATA sampled on completion

Elapsed ACCESS cycles do not create extra transactions; the monitor publishes only the completed handshake.

What to cover

Requirements

  1. Always create the monitor; create driver and sequencer only in active mode.
  2. Drive one SETUP cycle, then ACCESS, holding address/control/data stable while PREADY is low.
  3. Publish a fresh observed transaction only on PSEL && PENABLE && PREADY.
  4. Check progression and stability; cover direction, waits, error, address region, and back-to-back transfers.
asic.fyi · Learn silicon end to end.info@asic.fyi