Generate four legal reads that stop both bridges only when the younger replies win the race.
Hardware context: Ordered crossbar return path. Crossbar and bridge integration
Managers A and B each issue two single-beat reads. The fixture asks your generator for A first, B first, A second and B second. All four must be sent. The first A read goes to home_a with tag_a. The first B read uses the other target with tag_b. Choose both later routes and IDs.
Each bridge has one return slot. When empty it takes the earliest issued available reply for its target. A held reply leaves if its manager has no earlier unfinished read of the same tag. A slot that drains refills on a later tick. Both managers always accept eligible replies.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
trial | 12 | input of each check |
Full specification
Normal schedule: all replies become available together. Every read must finish. Stress schedule: both younger replies become available two ticks before either older one. Create a closed wait spanning both bridges. A local self-wait or a manager withholding readiness does not qualify.
Examples
Example 1
Control Run- Input
First A target=0, A tag=1, B tag=2, normal latency
- Output
result = 1
All four legal reads drain on the ordinary schedule.
Example 2
Swap Homes- Input
First A target=1, A tag=3, B tag=0, normal latency
- Output
result = 1
Switching the wiring preserves the control result.
Example 3
Equal Numeric Tags- Input
First A target=0, A tag=0, B tag=0, normal latency
- Output
result = 1
The manager identity still separates the two streams.
Constraints and Contract
- manager is 0 for A and 1 for B. second is 0 for its first read and 1 for its next. Use only binary outputs. Work for either home assignment and all two-bit tags, including equal tags across managers.
Hints
Hint 1
Draw a box for each occupied slot.
Hint 2
Track the manager as well as the tag.
Hint 3
Work backward from two blocked older replies.
What the grader checks: Both return schedules run on every home and tag combination. The harness inspects queue ownership as well as completion.
67 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