B4.6.2 Sign off Against the Plan

MediumImplement22 minIcarus Verilog · serverReview the topic

Read the results of a FIFO's verification against its plan, and decide row by row whether it can be signed off.

Hardware context: A saturating counter, then a FIFO with hidden bugs. A sign-off review.

A FIFO four entries deep, with five plan rows. The results below are exercise values in the shape of a real sign-off review. A row is closed when its check passed and its coverage bin was hit.

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
RowFeatureCheck resultCoverage bin hits
S1Data comes out in orderpass1,204 pops
S2A push when full is refusedpass0 pushes while full
S3A push and a pop togetherpass311
S4Reset during traffic empties itfail: 2 errors9 resets with data
S5The pointers wrappass298 wraps
CodeRow status
1Closed
2Not closed: the check failed
3Not closed: the coverage bin is empty
EntryYour decision
S1Status of S1.
S2Status of S2.
S3Status of S3.
S4Status of S4.
S5Status of S5.
CLOSEDHow many rows are closed?
SIGN_NOWCan the FIFO be signed off now? 1 yes, 0 no.
BUG_ROWWhich row needs a bug report? Enter 1 to 5 for S1 to S5.
STIM_ROWWhich row needs new stimulus, not a bug report? Enter 1 to 5.
VERDICTAnother review has OPEN rows still open out of five. Enter 1 if it can be signed off, 0 if not.

Examples

Example 1

S1
Input
Status of S1.
Output
matches = 1

Passed, and reached many times.

Example 2

S2
Input
Status of S2.
Output
matches = 1

It passed only because no push ever came while full.

Example 3

S3
Input
Status of S3.
Output
matches = 1

Passed and reached.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For VERDICT, enter a constant expression using OPEN. Only this entry changes with the parameter. The supported integer range is 0 through 5, inclusive.

Hints

Hint 1

A failing check means the row is open, with a bug to report.

Hint 2

A passing check on an empty bin means the row was never tested.

Hint 3

Every row closed, or "not yet".

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

14 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

S1

Input
Status of S1.
Expected output
matches = 1

Passed, and reached many times.

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

Icarus Verilog · server