A3.9.2 Always Family on a Trace

MediumDebug15 minKey: IEEE 1800-2017, checkedReview the topic

An open always window: give each attempt's verdict, including the ones still open when the test ends.

Hardware context: A link that must stay ok from two edges after each request on. Read open, weak always windows at the end of a test.

From two edges after each request on, ok must hold at every edge. The window never closes.

The trace gives the sampled values at ten rising edges; the test ends after the tenth. Six attempts are asked. For each, choose its verdict and the edge where it is decided.

The Assertion and the Trace

Req |-> Always [2:$] Okreq |-> always [2:$] ok
req |-> always [2:$] okAttempts start at edge 1 (t=5), edge 2 (t=15), edge 4 (t=35), edge 5 (t=45), edge 9 (t=85), edge 10 (t=95).edgetime152153254355456557658759851095clkreqokattemptsattempt @5?attempt @15?attempt @35?attempt @45?attempt @85?attempt @95?
Scroll horizontally ↔
Read the sampled values as text
  • req: edge 1 = 1, edge 2 = 0, edge 3 = 0, edge 4 = 1, edge 5 = 0, edge 6 = 0, edge 7 = 0, edge 8 = 0, edge 9 = 1, edge 10 = 0
  • ok: edge 1 = 0, edge 2 = 1, edge 3 = 1, edge 4 = 1, edge 5 = 0, edge 6 = 1, edge 7 = 1, edge 8 = 1, edge 9 = 1, edge 10 = 1

Standard behaviour: no free simulator runs this construct correctly. The key was derived by hand from IEEE 1800-2017 and checked independently.

Simulator note: Verilator 5.052 does not report failures of an open always window (measured). The key is the standard behaviour, checked against an independent evaluator.

How to Answer

For each attempt, choose its verdict and the edge where that verdict is decided. A vacuous attempt is graded on its verdict only. A pending one is still running at the end of the run.

  • Answer every attempt: its verdict, and the edge where that verdict is decided.
  • Read the values the assertion samples at each edge (the dots), not the values after the edge.
  • Run grades the first attempt and says whether it is right. Submit grades every attempt and says only whether all are right.
Full specification
The assertion
a1: assert property (@(posedge clk) req |-> always [2:$] ok);

The clock rises at 5, 15, 25, ... 95. The test ends at 100, after the tenth edge.

Hints

Hint 1

The window of an attempt at edge k opens at edge k+2. Earlier edges do not count.

Hint 2

An open window can fail, but it can never finish. What is it when the test ends?

Hint 3

always [m:$] is weak.

What is checked: The verdict and decision edge of six attempts, against the standard key derived in docs/sva-standard-traces/A3.md (sva-091-b).

More problems on this topic

Report a problem with this page

Your answers 6 attemptsSaved locally

req |-> always [2:$] ok

AttemptVerdictDecided atResult
attempt @5starts at edge 1 (t=5)
attempt @15starts at edge 2 (t=15)
attempt @35starts at edge 4 (t=35)
attempt @45starts at edge 5 (t=45)
attempt @85starts at edge 9 (t=85)
attempt @95starts at edge 10 (t=95)

Edges and times match the trace figure. Your answers stay in this browser until you submit.

Not checked yet

Run checks the first attempt. Submit checks every attempt.

Key: IEEE 1800-2017, checked