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.
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.
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.
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.
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:
- 18.7 — Performance Interview Questions (coming next) — bandwidth, latency, and bottleneck prompts, where you reason quantitatively about throughput and where it's lost.
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.