Choose recorded read samples that distinguish incorrect return masks from a correct filter.
Hardware context: APB service register gate. Peripheral access control
Audit a byte-wide read filter using synthetic samples. Field reports cover all eight lanes. Eight copies pass one lane in one denied caller class. A ninth copy suppresses permitted data. A sample describes a completed read, with independently recorded privilege and security tags.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
hidden_bug | 8 | input of each check |
Full specification
Call try_sample(priv, ns, sample). Only privileged Secure reads may pass data. ns is 1 for Non-secure. The other three caller classes must return zero. Each class can be tested with a byte containing several set bits.
Examples
Run samples checks your input rules and any explicitly public sample faults. Submit runs every hidden faulty copy on the server. The worked bug examples below describe Submit results.
Example 1
Observation Budget- Input
Four completed observations fit the diagnostic budget.
- Output
inputs_legal = yes
Four completed observations fit the diagnostic budget.
Example 2
First Return Lane- Input
A normal Secure sample of 0x01 distinguishes public copy one.
- Output
caught = yes
A normal Secure sample of 0x01 distinguishes public copy one.
Example 3
Next Return Lane- Input
A normal Non-secure sample of 0x02 distinguishes public copy two.
- Output
caught = yes
A normal Non-secure sample of 0x02 distinguishes public copy two.
Constraints and Contract
- Submit a stimulus task with up to four samples. Cover the denied caller classes as well as the permitted return path. Use only the supplied observation task.
Hints
Hint 1
Make a table of the two tag bits.
Hint 2
A zero data lane cannot reveal an incorrect mask.
Hint 3
One byte can exercise several lanes at once.
What the grader checks: The response monitor compares synthetic read samples across eight independent data lanes.
10 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain public samples only. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path