Description
Prove that a small fabric always has exactly one response owner, including the default route.
A four-way routing slice exposes a four-bit route vector. Bits zero through two select devices. Bit three selects the default responder. page is an unconstrained two-bit request.
Write rising-edge assertions that accept every legal one-hot vector and reject every other vector. Do not assume a page or specify its address assignment.
Pinned interface
| Port | Direction | Bits |
|---|---|---|
| clk | input | 1 |
| page | input | 2 |
| route | output | 4 |
Full specification
There is no idle cycle or reset exemption in this combinational slice. Every binary page needs exactly one responder on every sample. The correct fabric can permute its four destinations between products.
Measured Counterexample
FAIL · bmc · depth 4 · smtbmc yices · 663 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, page is 00 and route is 0000. No two devices collide, yet nobody owns the response. The solver reports that sampled violation at step one.
Examples
Sample 0001
route = 0001
Pass
Only the first device answers.
Sample 1000
route = 1000
Pass
The default is a legitimate owner.
Sample 1010
route = 1010
Fail
A device and default would both answer.
Requirements
- Submit assert property statements clocked on the rising edge of clk. The environment is unrestricted. The checker must work on each sample independently of earlier pages. The supported expressions include whole-vector comparisons, bit masks and bit-count functions.
Hints
Hint 1
Could a missing response pass your exclusion check?
Hint 2
Consider each pair of wires, including the default wire.
Hint 3
Try a vector with three asserted bits.
The formal judge proves the submitted assertions on the correct fabric, checks implication and seeks counterexamples on faulty copies.
INCONCLUSIVE never counts as acceptance or a rated miss. Run previews the same checks that Submit uses.
More problems on this topic