A two-edge antecedent: say which attempts really checked done, which passed vacuously, and where each was decided.
Hardware context: A request, grant and completion handshake. Count only the attempts whose antecedent matched as real checks.
After a request that is granted at the next edge, done must come one edge after the grant.
The trace gives the sampled values at ten rising edges. Eight attempts are asked. For each, choose its verdict and the edge where it is decided, for vacuous successes too.
The Assertion and the Trace
Read the sampled values as text
req: edge 1 = 1, edge 2 = 1, edge 3 = 0, edge 4 = 1, edge 5 = 0, edge 6 = 0, edge 7 = 1, edge 8 = 0, edge 9 = 0, edge 10 = 0gnt: edge 1 = 0, edge 2 = 1, edge 3 = 1, edge 4 = 0, edge 5 = 0, edge 6 = 0, edge 7 = 0, edge 8 = 1, edge 9 = 0, edge 10 = 0done: edge 1 = 0, edge 2 = 0, edge 3 = 1, edge 4 = 0, edge 5 = 1, 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.
How to Answer
For each attempt, choose its verdict and the edge where that verdict is decided. A vacuous attempt is decided at the edge where its antecedent can no longer match: give that edge too. 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
a1: assert property (@(posedge clk) req ##1 gnt |=> done);
The clock rises at 5, 15, 25, ... 95. The run ends at 100.
Hints
Hint 1
The antecedent needs req at one edge and gnt at the next.
Hint 2
When gnt is missing, the antecedent has no match. What is the attempt then?
Hint 3
A real check passes or fails at the edge of done.
What is checked: The verdict and decision edge of eight attempts, against the key in docs/sva-standard-traces/A1.md (sva-033), checked against an independent evaluator.
More problems on this topic