B4.3.1 Sort the Failures

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeBucket
1Frame error on a byte sent straight after another
2Timeout: busy never fell
3Wrong data bit, frame correct
4A bench mistake: an input the specification forbids
EntryYour decision
F1seed 303: frame error on byte 1; gap before byte 1 was 0
F2seed 118: timeout after 10,000 clocks waiting for busy to fall
F3seed 606: frame error on byte 2; gap before byte 2 was 0
F4seed 512: byte 3 arrived as 4D instead of CD; no frame error
F5seed 77: start was pulsed while reset was high
F6seed 909: frame error on byte 2; gap before byte 2 was 0
F7seed 640: byte 0 arrived as 12 instead of 92; no frame error
F8seed 251: timeout after 10,000 clocks waiting for busy to fall
BUCKETSHow many buckets do these eight failures fill?
DESIGN_BUGSHow many bug reports go to the designer? (The bench mistake is fixed in the bench.)
RUNSThe 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

F1

Input
seed 303: frame error on byte 1; gap before byte 1 was 0
Expected output
matches = 1

A frame error right after a byte sent with no gap.

Run samples executes all 3 public checks. Check all tests runs 15 checks on the server.

Icarus Verilog · server