Sort a night's failures into buckets by their first error and the condition behind them. Then count the bug reports and the runs.
Hardware context: The UART transmitter under eight seeds of random bytes and gaps. Nightly regression triage.
A nightly regression of the UART transmitter. Each line below is the first error of one failing run, with the condition the bench recorded. The lines are exercise values, made in the shape of real logs.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 255 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Bucket |
|---|---|
| 1 | Frame error on a byte sent straight after another |
| 2 | Timeout: busy never fell |
| 3 | Wrong data bit, frame correct |
| 4 | A bench mistake: an input the specification forbids |
| Entry | Your decision |
|---|---|
| F1 | seed 303: frame error on byte 1; gap before byte 1 was 0 |
| F2 | seed 118: timeout after 10,000 clocks waiting for busy to fall |
| F3 | seed 606: frame error on byte 2; gap before byte 2 was 0 |
| F4 | seed 512: byte 3 arrived as 4D instead of CD; no frame error |
| F5 | seed 77: start was pulsed while reset was high |
| F6 | seed 909: frame error on byte 2; gap before byte 2 was 0 |
| F7 | seed 640: byte 0 arrived as 12 instead of 92; no frame error |
| F8 | seed 251: timeout after 10,000 clocks waiting for busy to fall |
| BUCKETS | How many buckets do these eight failures fill? |
| DESIGN_BUGS | How many bug reports go to the designer? (The bench mistake is fixed in the bench.) |
| RUNS | The regression has 4 tests, each run with SEEDS seeds every night. How many runs is that? |
Examples
Example 1
F1- Input
seed 303: frame error on byte 1; gap before byte 1 was 0
- Output
matches = 1
A frame error right after a byte sent with no gap.
Example 2
F2- Input
seed 118: timeout after 10,000 clocks waiting for busy to fall
- Output
matches = 1
busy never fell: a different first error.
Example 3
F3- Input
seed 606: frame error on byte 2; gap before byte 2 was 0
- Output
matches = 1
Same signature as F1, different seed and byte.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For RUNS, enter a constant expression using SEEDS. Only this entry changes with the parameter. The supported integer range is 10 through 60, inclusive.
Hints
Hint 1
Sort by the first error, not by the test name.
Hint 2
Failures in one bucket share a condition, such as a gap of 0.
Hint 3
And none for a bucket that is the bench's own mistake.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
15 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path