Review reset cuts on a live timer port. Find the captures and transactions that still lack protection.
Hardware context: Live bridge beside a resettable timer. Peripheral recovery without rebooting the chip
For each service ticket return a hazard mask. Bit 0 flags a possible sampling violation. Bit 1 flags an accepted read that can never finish. Bit 2 flags a false event after restart. Add the weights 1, 2 and 4. Use zero when every listed path is protected.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
These are ap_soc exercise assumptions. An asynchronous change on an enabled raw receiver can hit its capture window. A confirmed clamp is stable before reset and through startup. A closed qualifier holds the receiver disabled for that entire interval.
The timer reserves a read in setup. Reset destroys its reservation. The bridge waits forever unless the reservation survives or the live side returns an explicit error. A synchronized toggle can settle safely yet look like an event if reset changes its remembered phase.
Each ticket lists all active paths. A parked path has no outstanding transfer or enabled observer. A masked toggle detector rearms from a fresh baseline before it observes events.
| Entry | Your decision |
|---|---|
| PARKED | Every path is parked. |
| RAW | Only a raw status flop changes asynchronously into an enabled receiver. |
| DEBT | Only a pending read loses its reservation. All physical crossings are clamped. |
| SHARED_CLOCK | The timer and bridge share a clock. Reset changes raw status at an enabled receiver and clears the timer’s only read reservation between edges. The bridge stays in access. |
| PHASE | The live detector last stored one. Reset clears the synchronized event source to zero. The detector compares each clean sample against its stored phase. No read is pending. |
| LATE_CLAMP | Reset asserts before edge E. The enabled status receiver’s clamp takes effect at E+1. A live responder completes the read with an error at E. The toggle goes from one to zero while its detector runs. |
| MASKED | Before reset, firmware closes the status sampler and masks the event detector. The detector later reloads its baseline. DMA already owns an access. Only the timer can complete it, and reset clears its reservation. |
| ALL_LIVE | Debug still samples raw status when reset asserts. A previous DMA read already consumed setup. The live event detector remembers one while the timer restarts at zero. No live error responder exists. |
| REOPEN | The bridge accepts the last response before isolation. Raw status stays clamped through initialization. A detector storing one unmasks one edge before loading the newly synchronized zero. |
| REVIEW | Start with all three hazards. GUARDS bit 0 supplies a live error, bit 1 rearms the toggle, bit 2 confirms isolation for RAW. Return the remaining hazard mask. |
Examples
Example 1
PARKED- Input
Every path is parked.
- Output
matches = 1
No enabled capture or transaction spans reset.
Example 2
RAW- Input
Only a raw status flop changes asynchronously into an enabled receiver.
- Output
matches = 1
Its data can change inside the sampling window.
Example 3
DEBT- Input
Only a pending read loses its reservation. All physical crossings are clamped.
- Output
matches = 1
The clamp settles the wires but the bridge still owes a response.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For REVIEW, enter a constant expression using GUARDS. Only this entry changes with the parameter. The supported integer range is 0 through 7, inclusive.
Hints
Hint 1
Check the receiver enable and when the clamp becomes effective.
Hint 2
Trace every accepted request to a completion.
Hint 3
Find the phase stored on each side when observation resumes.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
10 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