A stalled read appears to belong to the next address. Find the first wrong return ticket in the waveform.
Hardware context: ap_soc read return path. Peripheral integration
The response mux uses a three-bit ticket. The high bit marks a valid owner and the low bits identify one of four targets. Diagnose the failing run and fix the ticket generator.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
sample | 10 | input of each check |
Full specification
Sample on rising edges. Synchronous active-low reset clears the whole ticket. When advance is low, retain every bit. On advance, an active address installs a valid ticket with its route. An inactive address clears the whole ticket.
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- Input
reset_n=0, advance=0, active=0, route=0
- Output
ticket = 0
The empty pipeline owns no response.
Example 2
Accepted Read- Input
reset_n=1, advance=1, active=1, route=1
- Output
ticket = 5
The ticket carries a valid bit and route one.
Example 3
Blocked Successor- Input
reset_n=1, advance=0, active=1, route=2
- Output
ticket = 5
The next address is visible while the first ticket stays live.
Constraints and Contract
- Keep ticket stable between edges, including when address wires move.
Hints
Hint 1
Find the first edge with a new route but no advance.
Hint 2
Compare the tag before and after the clock.
Hint 3
Check the bubble after a valid read.
What the grader checks: Pre-edge and post-edge tickets checked across active, idle, reset and wait inputs from each prior owner.
324 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