B4.1.2 Rank by Risk

EasyImplement12 minIcarus Verilog · serverReview the topic

Score the transmitter's plan rows by likelihood and impact and put them in order. Then see which rows fit in the time you have.

Hardware context: A small UART transmitter. Finding a promise no row tests.

Risk = likelihood x impact, each from 1 (low) to 3 (high). The likelihood and impact below are exercise values a team might agree on. Rows with risk 6 or more are high priority. A row takes one day to close.

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
RowFeatureLikelihoodImpact
B2BBack-to-back frames: new logic at the end of the stop bit33
ONEOne byte, one frame: the common path, written first13
RESETReset during a frame: rarely exercised, but a stuck line would block the board23
IGNOREstart while busy is ignored: one simple condition12
EntryYour decision
R_B2BRisk of B2B.
R_ONERisk of ONE.
R_RESETRisk of RESET.
R_IGNORERisk of IGNORE.
HIGH_COUNTHow many rows are high priority (risk 6 or more)?
FIRSTWhich row comes first? 1 B2B, 2 ONE, 3 RESET, 4 IGNORE.
LASTWhich row comes last? 1 B2B, 2 ONE, 3 RESET, 4 IGNORE.
TWO_DAYSWith two days, how many high-priority rows can be closed?
NEW_ROWA new row, "data read one clock late", has likelihood 3 and impact IMPACT. Enter 1 if it is high priority (risk 6 or more), 0 if not.

Examples

Example 1

R B2B
Input
Risk of B2B.
Output
matches = 1

3 x 3 = 9.

Example 2

R ONE
Input
Risk of ONE.
Output
matches = 1

1 x 3 = 3.

Example 3

R RESET
Input
Risk of RESET.
Output
matches = 1

2 x 3 = 6.

Constraints and Contract

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

Hints

Hint 1

Risk is likelihood times impact.

Hint 2

Highest risk first; ties keep the order of the plan.

Hint 3

Rows at or above the threshold are high priority.

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

13 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

R B2B

Input
Risk of B2B.
Expected output
matches = 1

3 x 3 = 9.

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

Icarus Verilog · server