A3.1.3 Weak at the End of the Test

MediumDebug10 minKey: IEEE 1800-2017, checkedReview the topic

The same bounded window wrapped in weak(...): give each attempt's verdict, and say what weak changes and what it does not.

Hardware context: A request/acknowledge window checked with an explicit weak strength. Tell what weak forgives at the end of a run from what it never forgives.

After a request, ack must come 1 to 3 edges later. This time the window is wrapped in weak(...).

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

The Assertion and the Trace

Req |-> weak(##[1:3] Ack)req |-> weak(##[1:3] ack)
req |-> weak(##[1:3] ack)Attempts start at edge 1 (t=5), edge 3 (t=25), edge 4 (t=35), edge 6 (t=55), edge 8 (t=75), edge 9 (t=85).edgetime152153254355456557658759851095clkreqackattemptsattempt @5?attempt @25?attempt @35?attempt @55?attempt @75?attempt @85?
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 = 1, edge 9 = 1, edge 10 = 0
  • ack: edge 1 = 0, edge 2 = 0, edge 3 = 1, edge 4 = 0, edge 5 = 0, edge 6 = 0, edge 7 = 0, edge 8 = 0, edge 9 = 1, edge 10 = 0

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 accept weak(...) (lesson A3.1); under assert, the bare window is its runnable form. The key is the standard behaviour, derived by hand and checked by the trace oracle.

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
a2: assert property (@(posedge clk) req |-> weak(##[1:3] ack));

The clock rises at 5, 15, 25, ... 95. The run ends at 100, with no further edge.

Hints

Hint 1

weak(s) is false only when the run seen so far already rules every match out.

Hint 2

Does a closed window with no ack rule the match out?

Hint 3

Which attempts are still waiting when the run ends, with a match still possible?

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

More problems on this topic

Report a problem with this page

Your answers 6 attemptsSaved locally

req |-> weak(##[1:3] ack)

AttemptVerdictDecided atResult
attempt @5starts at edge 1 (t=5)
attempt @25starts at edge 3 (t=25)
attempt @35starts at edge 4 (t=35)
attempt @55starts at edge 6 (t=55)
attempt @75starts at edge 8 (t=75)
attempt @85starts at edge 9 (t=85)

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