AXI Verification Interview Questions and Real-World Debugging
Common protocol violations, how to read them off a waveform, and a curated set of interview questions with concise, correct answers — the capstone of the core 10-day series.
This wraps up the core 10-day series. Everything here draws directly on Days 1–9 — if any answer below feels unfamiliar, that's a good signal for which earlier post to revisit. (If you want to go further, see the 20-day extended list at the end of this post.)
In This Article
1.Common Protocol Violations
- VALID deasserted before handshake — a source drops VALID before READY ever went high (violates the Day 8 stability rule).
- Signal changes mid-wait — AWADDR or WDATA changes value while VALID is high and READY hasn't arrived.
- 4KB boundary crossing — a burst's address range spans two 4KB pages (violates the Day 7 constraint).
- ID mismatch — a slave returns BID/RID that doesn't match any currently outstanding AWID/ARID.
- Missing or misplaced WLAST/RLAST — asserted on the wrong beat, corrupting how the monitor reconstructs the burst.
- Combinational VALID/READY dependency loops — the deadlock pattern from Day 8.
2.Debugging From a Waveform
When a testbench flags an AXI failure, a reliable debug sequence is:
- Identify which channel the failure is on (AW/W/B/AR/R) from the error message or scoreboard mismatch.
- Find the exact cycle where VALID and READY are both high — that's the actual transfer edge; ignore cycles where only one is asserted.
- Check whether address/control/data signals were stable for the entire time VALID was high, not just at the final transfer edge.
- Trace the ID field back to its originating AW/AR request to confirm response matching is correct.
- For burst issues, verify the beat count matches AxLEN+1 and that WLAST/RLAST land exactly on the final beat.
3.Interview Questions and Answers
Q1. Why does AXI use separate channels instead of one shared bus like AHB?
To allow multiple transactions to be in flight simultaneously and complete out of order, removing the single-shared-bus bottleneck that limits AHB's throughput.
Q2. Can AWVALID depend combinationally on AWREADY?
No — this creates a potential deadlock. VALID must be generated independently of the current cycle's READY signal.
Q3. What happens if a slave never asserts READY?
The master must hold VALID and all associated signals stable indefinitely — the transaction simply never completes. This is a protocol-legal (if undesirable) state, not a violation.
Q4. How does AXI guarantee a read response is matched to the correct request?
Via the ID field: the slave returns RID equal to the ARID of the original request, letting the master correctly match responses even when multiple reads are outstanding and complete out of order.
Q5. Why can't a burst cross a 4KB boundary?
Because interconnects and memory controllers are commonly organized around 4KB address regions/pages; allowing a burst to cross that boundary would complicate routing and page-based memory management.
Q6. What's the difference between AXI4 and AXI4-Lite in terms of outstanding transactions?
AXI4 supports multiple outstanding, ID-tagged transactions; AXI4-Lite supports only one outstanding transaction at a time and has no ID signals.
Series Recap: The Full 10-Day Journey
- Days 1–2 built the conceptual foundation: what AMBA is and how APB, AHB, AXI, and ACE relate.
- Days 3–4 went signal-level on APB and AHB.
- Days 5–7 covered AXI4's architecture, its Lite/Stream variants, and burst/address math.
- Day 8 nailed down the VALID/READY handshake rules that govern every AMBA channel.
- Days 9–10 connected the protocol to how it's actually verified and debugged in industry.
4.Extending the Series
If you want to go deeper into AXI specifically — the protocol that dominates real-world SoC verification work — this series continues as a 10-day extension (Days 11–20) covering read/write transaction timing diagrams, response channels, outstanding transactions, transaction ordering, interconnects, arbitration, SVA properties, coverage models, and a Top 30 AXI interview question set.
AXI4 Read Transaction – Step-by-Step Timing Diagram
The extended series begins with a full cycle-by-cycle timing diagram walkthrough of an AXI4 read, including wait states and multi-beat bursts.
Comments
Post a Comment