Two accepted addresses wait for data. Find the first beat offered to the wrong target and repair the routing queue.
Hardware context: AXI response and write routing slice. Bus fabric integration
A console byte reaches SRAM when another write address arrives. Diagnose the first wrong wire in the waveform, then repair the single-beat write steering block.
This exercise begins after address decode. The decoded awdest bit names target zero or one. The queue holds two accepted routes. Each data beat belongs to the oldest route already queued before this edge.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
sample | 11 | input of each check |
Full specification
send is a one-hot offer whenever wvalid and a saved route exist. The target can stall. Remove the route only when its own ready bit and send bit meet.
Accept AW on awvalid and awready. Advertise space whenever the queue has room or a beat leaves this edge. A full queue can replace its oldest entry on that edge. Empty has no forwarding bypass.
While reset_n is low suppress both outputs. Reset clears the queue only on a rising edge. Preserve the order of remaining routes on every simultaneous push and pop.
Diagnose the Failing Run
The test below runs the buggy design. Read its log, then find where it first goes wrong in the waveform.
Log
Waveform
Click a signal at a cycle to select it. Or focus the waveform and use the arrow keys: Left and Right move one cycle, Up and Down one signal.
Step 3 is optional: fix the code in the editor, then run the tests.
Examples
Example 1
Reset Edge- Input
reset_n=0, AW valid/dest=0/0, W valid=0, target ready=00
- Output
awready = 0, send = 'b00
All handshake outputs are quiet while the queue clears.
Example 2
First Address- Input
reset_n=1, AW valid/dest=1/1, W valid=0, target ready=00
- Output
awready = 1, send = 'b00
The empty queue has room for target one.
Example 3
Second Address- Input
reset_n=1, AW valid/dest=1/0, W valid=1, target ready=01
- Output
awready = 1, send = 'b10
Target zero enters behind the stalled offer to target one.
Constraints and Contract
- Implement write_path, a local queue interface behind the AXI channel registers. All transfers are sampled at the rising edge.
Hints
Hint 1
Mark accepted addresses on paper.
Hint 2
Cross one off only when its own target accepts a data beat.
Hint 3
Look at the queue before and after a full replacement.
What the grader checks: Every queue content and binary combination of address, data and readiness is exercised, then drained.
1231 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path