S5.6.2 Which Crossings Are Unsafe

HardImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input 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.

EntryYour decision
PARKEDEvery path is parked.
RAWOnly a raw status flop changes asynchronously into an enabled receiver.
DEBTOnly a pending read loses its reservation. All physical crossings are clamped.
SHARED_CLOCKThe 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.
PHASEThe 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_CLAMPReset 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.
MASKEDBefore 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_LIVEDebug 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.
REOPENThe 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.
REVIEWStart 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

PARKED

Input
Every path is parked.
Expected output
matches = 1

No enabled capture or transaction spans reset.

Run samples executes all 3 public checks. Check all tests runs 10 checks on the server.

Icarus Verilog · server