Repair a crossbar that lets an ID change targets while its earlier read still needs the return path.
Hardware context: Ordered crossbar return path. Crossbar and bridge integration
A manager has four IDs and can use two target bridges. Each ID has room for two outstanding reads. The bridge guarantees in-order returns within one target. Repair the admission guard while preserving throughput.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
trial | 12 | input of each check |
Full specification
At each rising edge retire one outstanding read of rid if requested. Ignore a return for an empty ID. Evaluate the offer with that retirement counted. Outstanding reads of one ID must share a destination. Accept every eligible offer.
Examples
Example 1
Reset- Input
reset=1, offer=1, ID=0, destination=0, retire=0, return ID=0
- Output
result = 0
Reset vetoes even a valid offer.
Example 2
First Read- Input
reset=0, offer=1, ID=0, destination=0, retire=0, return ID=0
- Output
result = 1
ID zero starts empty.
Example 3
Another Bridge- Input
reset=0, offer=1, ID=0, destination=1, retire=0, return ID=0
- Output
result = 0
Its earlier read still owns the original route.
Constraints and Contract
- admit is combinational before the edge. Active-high synchronous reset vetoes admission immediately and clears every count at the edge. Update state only for accepted work. Each case continues the preceding state.
- Icarus 12.0 can abort on a variable-indexed read from an unpacked bit array in combinational logic. An unpacked logic array works here.
Hints
Hint 1
Track ownership separately for each ID.
Hint 2
Look at what remains after the return.
Hint 3
Check the edge where the last old read leaves.
What the grader checks: Sequential ID, destination, capacity, reset and simultaneous-event observations on a single manager.
381 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