A1.3.3 Two Implications, Two Obligations

MediumDebug15 minKey: IEEE 1800-2017, checkedReview the topic

A nested implication: give each attempt's verdict and decision edge, telling real passes from vacuous ones.

Hardware context: A three-step handshake checked with an implication nested in another. Tell real passes, failures and vacuous successes apart in a nested rule.

After a, if b is followed by c, then d comes one edge after c. The rule nests one implication in another.

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.

The Assertion and the Trace

A |-> (b ##1 c |-> ##1 d)a |-> (b ##1 c |-> ##1 d)
a |-> (b ##1 c |-> ##1 d)Attempts start at edge 1 (t=5), edge 2 (t=15), edge 3 (t=25), edge 4 (t=35), edge 5 (t=45), edge 6 (t=55), edge 7 (t=65), edge 8 (t=75).edgetime152153254355456557658759851095clkabcdattemptsattempt @5?attempt @15?attempt @25?attempt @35?attempt @45?attempt @55?attempt @65?attempt @75?
Scroll horizontally ↔
Read the sampled values as text
  • a: edge 1 = 1, edge 2 = 0, edge 3 = 1, edge 4 = 0, edge 5 = 0, edge 6 = 1, edge 7 = 0, edge 8 = 1, edge 9 = 0, edge 10 = 0
  • b: edge 1 = 1, edge 2 = 0, edge 3 = 0, edge 4 = 0, edge 5 = 0, edge 6 = 1, edge 7 = 0, edge 8 = 1, edge 9 = 0, edge 10 = 0
  • c: edge 1 = 0, 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 = 0
  • d: 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 = 0, 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 reports this nested form correctly, but not every nested form. 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) a |-> (b ##1 c |-> ##1 d));

The clock rises at 5, 15, 25, ... 95. The run ends at 100.

Hints

Hint 1

The inner implication starts at the same edge as the outer one, because |-> overlaps.

Hint 2

If the inner antecedent b ##1 c does not match, what is the inner implication?

Hint 3

An attempt is real only when both antecedents matched.

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

More problems on this topic

Report a problem with this page

Your answers 8 attemptsSaved locally

a |-> (b ##1 c |-> ##1 d)

AttemptVerdictDecided atResult
attempt @5starts at edge 1 (t=5)
attempt @15starts at edge 2 (t=15)
attempt @25starts at edge 3 (t=25)
attempt @35starts at edge 4 (t=35)
attempt @45starts at edge 5 (t=45)
attempt @55starts at edge 6 (t=55)
attempt @65starts at edge 7 (t=65)
attempt @75starts at edge 8 (t=75)

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