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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Row | Feature | Check result | Coverage bin hits |
|---|---|---|---|
| S1 | Data comes out in order | pass | 1,204 pops |
| S2 | A push when full is refused | pass | 0 pushes while full |
| S3 | A push and a pop together | pass | 311 |
| S4 | Reset during traffic empties it | fail: 2 errors | 9 resets with data |
| S5 | The pointers wrap | pass | 298 wraps |
| Code | Row status |
|---|---|
| 1 | Closed |
| 2 | Not closed: the check failed |
| 3 | Not closed: the coverage bin is empty |
| Entry | Your decision |
|---|---|
| S1 | Status of S1. |
| S2 | Status of S2. |
| S3 | Status of S3. |
| S4 | Status of S4. |
| S5 | Status of S5. |
| CLOSED | How many rows are closed? |
| SIGN_NOW | Can the FIFO be signed off now? 1 yes, 0 no. |
| BUG_ROW | Which row needs a bug report? Enter 1 to 5 for S1 to S5. |
| STIM_ROW | Which row needs new stimulus, not a bug report? Enter 1 to 5. |
| VERDICT | Another 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