Skip to content

AMBA AXI · Module 18

AXI Verification Interview Questions

Answer AXI verification prompts — how you'd verify a slave, what goes in the checker vs. the scoreboard, the compliance-vs-correctness split, coverage closure, the UVM AXI agent, and buy-vs-build VIP — with the layered mental model (assertions, monitor, scoreboard, coverage) that turns any 'how would you verify X' question into a structured answer.

Where design questions (18.5) ask you to build AXI RTL, verification questions ask how you'd prove it correct — "how would you verify an AXI slave?", "what's the difference between an assertion and a scoreboard?", "how do you know you're done?". They test whether you hold the layered verification model (assertions, monitor, scoreboard, coverage) and the two ideas that organize it: compliance vs. correctness and checking vs. coverage. The strong answer to any "how would you verify X" prompt isn't a list of tools — it's the structured model: assertions for protocol legality, a monitor to reconstruct transactions, a scoreboard for functional correctness against a reference, and coverage to prove the scenarios were exercised. This chapter gives that model and the verification prompts it answers.

1. The Layered Verification Model

The answer to almost every AXI verification question is the same four-layer model, each layer with a distinct job. Assertions (SVA) check protocol legality per cycle (handshake, stability, encoding). Monitor passively reconstructs transactions from beats. Scoreboard checks functional correctness (data, ordering) against a reference model. Coverage measures whether the scenarios were exercised. Knowing this model — and which layer answers which concern — turns any "how would you verify X" into a structured answer rather than a tool list.

Four layers: assertions (legality), monitor (reconstruct), scoreboard (correctness), coverage (completeness).Assertionsprotocol legality / cycleMonitorreconstruct transactionsScoreboardcorrectness vs. referenceCoveragescenarios exercised12
Figure 1 — the four-layer AXI verification model, the answer to almost every verification prompt. Assertions check protocol legality per cycle; the monitor passively reconstructs transactions from beats; the scoreboard checks functional correctness against a reference model; coverage measures whether the scenarios were exercised. Each layer has a distinct job, and a strong verification answer maps the question to the right layer(s) rather than listing tools — assertions for legality, scoreboard for correctness, coverage for completeness.

2. The Two Organizing Ideas: Compliance vs. Correctness, Checking vs. Coverage

Two distinctions organize the whole model and are probed constantly. Compliance vs. correctness: assertions prove the traffic is legal AXI (compliance); the scoreboard proves the design does the right thing (correctness) — a slave can be perfectly compliant and return wrong data, so you need both. Checking vs. coverage: checks (assertions/scoreboard) decide correctness when a scenario occurs; coverage measures whether it occurred — a perfect check never triggered protects nothing. Stating these two splits crisply is the signal that you understand verification as a system, not a pile of tools.

Compliance (assertions) vs correctness (scoreboard); checking (decides when occurs) vs coverage (measures whether occurred).Compliancelegal traffic (assertions)Correctnessright behavior (scoreboard)Checkingcorrect when it occursCoveragedid it occur?12
Figure 2 — the two organizing distinctions of AXI verification. Compliance vs. correctness: assertions prove legal traffic (compliance), the scoreboard proves the right behavior (correctness) — a compliant slave can still return wrong data, so both are needed. Checking vs. coverage: checks decide correctness when a scenario occurs, coverage measures whether it occurred — a check never triggered protects nothing. These two splits organize the four layers and are the distinctions interviewers probe most.

3. "How Would You Verify an AXI Slave?" — The Structured Answer

The canonical verification prompt. The structured answer walks the layers: (1) Protocol compliance — attach assertions (or a VIP) checking the handshake, payload stability, and legal encodings on every channel. (2) Reconstruct — a passive monitor assembling transactions by ID. (3) Functional correctness — a scoreboard with a reference memory model (apply WSTRB byte-wise), checking write-then-read data integrity and per-ID ordering, plus end-of-test checks for dropped transactions. (4) Stimulus + coverage — constrained-random traffic (legal by construction) driven to coverage closure across burst types/lengths/IDs/responses, plus negative tests for error responses. (5) Sign-off — clean assertions + closed coverage + scoreboard passing. This layered walk is the answer.

Verify a slave: compliance assertions, reconstruct monitor, correctness scoreboard, stimulus+coverage, sign-off.1. Protocolcompliance(assertions/VIP)2. Reconstruct(passive monitor)3. Correctness(scoreboard + refmodel)4. Stimulus +coverage (CRV +negative)5. Sign-off(clean + closed+ passing)
Figure 3 — the structured answer to 'how would you verify an AXI slave.' Protocol compliance (assertions/VIP) → reconstruct (passive monitor by ID) → functional correctness (scoreboard with WSTRB-aware reference memory, data integrity, per-ID ordering, end-of-test dropped-transaction checks) → stimulus + coverage (constrained-random to closure, plus negative tests) → sign-off (clean assertions + closed coverage + passing scoreboard). Walking the layers in order is the structured answer that beats a tool list.

4. UVM Agent, Coverage Closure, and Buy-vs-Build

Three more verification prompts round out the round. "What's the UVM AXI agent?" — the reusable unit bundling sequencer + driver + monitor for one interface, configurable active (drive+observe) or passive (observe-only), exporting transactions via an analysis port; checking lives at the env level. "How do you know you're done / coverage closure?" — when every meaningful coverage bin is hit (burst types/lengths/IDs/responses/corners) or justified as unreachable, with assertions clean and the scoreboard passing — coverage answers "did we test it?", checks answer "was it right?". "Build or buy VIP?" — buy for complex standard protocols (full AXI — the compliance layer is exhaustive vendor work); build for simple/custom interfaces or to learn; a VIP is a pre-verified agent + checker + coverage, and still needs your functional scoreboard.

UVM agent (seqr/drv/mon, active/passive); coverage closure (bins hit or justified); buy-vs-build VIP (compliance free, still need scoreboard).UVM agentseqr/drv/mon, act/passCoverage closurebins hit or justifiedBuy-vs-build VIPbuy complex/standardChecking at envagent feeds scoreboardDone =clean+closed+passchecks + coverageVIP ≠ donestill need scoreboard12
Figure 4 — three more verification prompts. The UVM agent: sequencer + driver + monitor for one interface, active or passive, checking at the env level. Coverage closure / done: every meaningful bin hit or justified, assertions clean, scoreboard passing — coverage answers 'did we test it', checks answer 'was it right'. Buy-vs-build VIP: buy for complex standard protocols (exhaustive vendor compliance layer), build for simple/custom; a VIP is a pre-verified agent+checker+coverage but still needs your functional scoreboard.

5. Common Misconceptions

6. Debugging Insight

7. Verification Insight

8. Interview Questions

9. Summary

Verification questions test whether you hold the layered verification model rather than a tool list: four layers — assertions (protocol legality per cycle), monitor (reconstruct transactions), scoreboard (functional correctness vs. a reference), coverage (scenarios exercised) — organized by two distinctions: compliance vs. correctness (assertions prove legal traffic, the scoreboard proves right behavior — a compliant slave can return wrong data, so both are needed) and checking vs. coverage (checks decide correctness when a scenario occurs, coverage measures whether it occurred — both required). The structured answer to "how would you verify an AXI slave?" walks the layers: compliance assertions → passive monitor → scoreboard with a WSTRB-aware reference and per-ID ordering → constrained-random stimulus to coverage closure plus negative tests → sign-off (clean assertions + passing scoreboard + closed coverage).

Three more prompts: the UVM agent (reusable seqr/drv/mon, active/passive, checking at the env level), coverage closure / "done" (every meaningful bin hit or justified, with checks passing), and buy-vs-build VIP (buy for complex standard protocols — exhaustive vendor compliance layer; build for simple/custom; a VIP still needs your functional scoreboard). The most-probed distinctions are compliance≠correctness and checking≠coverage, where shallow answers collapse. The model is complete for an interface's contract in simulation — the senior caveats are coverage-model completeness, system-level properties (deadlock/ordering/performance), reference-model independence, formal for provable properties, and monitor self-verification. Verification is the complement to design (18.5): the same models, mental and otherwise, viewed from the prove-side; a strong candidate articulates both building a slave and proving it correct. Next, performance questions test reasoning about bandwidth, latency, and bottlenecks.

10. What Comes Next

You can now describe how to verify AXI; next, reasoning about its performance:

Previous: 18.5 — Design Interview Questions. Related: 16.1 — The Protocol-Checker Mindset for compliance vs. correctness, 16.4 — AXI Scoreboards for the correctness layer, and 16.8 — UVM AXI Agent Overview for the agent.