Description
Check ownership across four independent pads, including their handoff to the board during reset.
Three functions can request each pad. Bits 2:0 of drive are the actual driver enables for pad zero. The next three bits belong to pad one, and so on. Read request in the same order.
Assert that at most one driver owns each pad at each rising edge. A released pad is legal. Different pads may drive together. When reset is high every driver must release immediately at that sample.
Pinned interface
| Port | Direction | Bits |
|---|---|---|
| clk | input | 1 |
| reset | input | 1 |
| request | input | 12 |
| drive | output | 12 |
Full specification
The ownership policy may choose any legal grant. Prove safety for unrestricted binary requests, including simultaneous requests. No relationship between requests and grants is part of your assertion contract.
Measured Counterexample
FAIL · bmc · depth 4 · smtbmc yices · 734 ms
This measured failing run uses the published interface. Follow the sampled violation back to the preceding inputs and state. The worked solution below explains the required behaviour and the failure mechanisms.
Samples from the measured run. Free input lanes are shaded; the terminal VCD record is omitted.
At sample zero drive is 010 010 010 011. Pad zero has two active enables. Each other group has a single active enable. The solver reports the sampled collision at step one.
Examples
Sample 0x000, reset=0
0x000, reset=0
Pass
All four pads may release.
Sample 0x009, reset=0
0x009, reset=0
Pass
Pads zero and one each have one driver.
Sample 0x009, reset=1
0x009, reset=1
Fail
Reset releases both pads.
Requirements
- Submit rising-edge assert property statements. Include the reset sample and use only the published ports. Use bit masks and comparisons for packed fields. Part-selects and counting functions are outside this checker’s subset.
Hints
Hint 1
Group enables by destination pad.
Hint 2
Would the assertion catch two functions driving the same value?
Hint 3
Consider reset with a single active enable.
Binary sampled enables. Electrical strength and hazards between edges require separate checks.
INCONCLUSIVE never counts as acceptance or a rated miss. Run previews the same checks that Submit uses.
More problems on this topic