Hardware interview practice
Verify a four-by-four AXI bridge
Four AXI masters share a bridge to four slaves. Address selects the slave, and responses may reorder across IDs. Design a UVM environment and test plan for the bridge.
Starting point
Question code
4 AXI master-side interfaces
4 AXI slave-side interfaces
address map: one range per slave
ID width: 4 bits
per-slave round robin: a continuous requester is served within 4 accepted address transfers when the target accepts continuously
active-low synchronous resetReviewed example
Work through one case
Input
Case 1: Master 2, ID 5, address in slave-3 range
Case 2: IDs 1 and 2
Case 3: An unmapped addressExpected output
Case 1: Must exit slave 3 and return to master 2.
Case 2: May respond in reverse issue order; two ID-1 requests may not.
Case 3: Returns DECERR and creates no slave transfer.The shown result follows by applying this rule: Prediction includes address routing and response return routing. The cases also demonstrate this requirement: Cover every master × slave × response and concurrent requests from all four masters.
What to cover
Requirements
- Use active master agents, passive monitors on both sides, an address predictor, and an ID-aware scoreboard.
- Check arbitration, decode errors, reset in flight, and backpressure. Assert that a continuously requesting master is served within four eligible address handshakes whenever the selected slave remains able to accept.
- Enforce order within one ID while permitting legal reordering across different IDs.
- Cover every master × slave × response and concurrent requests from all four masters.
