B4.1.1 Plan Rows for the Transmitter

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort the pieces of the transmitter's plan into feature, stimulus, check and coverage. Find the promise no row tests, and size the stimulus.

Hardware context: A small UART transmitter. The verification plan of a block.

The transmitter sends a start bit (0), eight data bits low bit first, and a stop bit (1). Each bit lasts CPB clocks. A start pulse is taken only while busy is 0, and data is read in that same clock. Reset makes the line idle (1). In the lesson, CPB is 4.

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
CodePart of a plan row
1Feature: a promise of the specification
2Stimulus: how the feature is reached
3Check: how pass or fail is decided
4Coverage: how we know it was reached
5Priority: how soon it must be done
EntryYour decision
P_START_IGNORED"start while busy is ignored"
P_SEND_55_AA"send 55, then AA"
P_BOTH_ARRIVE"both bytes arrive at the receiver model, with no frame error"
P_COUNT_B2B"count the starts that come the clock busy falls"
P_HIGH"high: new logic, and every byte depends on it"
P_RESET_MID"reset in the middle of a frame"
P_IDLE_ONE"after reset, tx is 1 and busy is 0"
P_DATA_READ"data is read in the same clock as start"
GAP_ROWWhich of the lesson's five rows (R1 to R5) changes data straight after the start clock? Enter 0 if none.
FRAME_CLOCKS_4With CPB = 4, how many clocks does one frame last?
TWO_FRAMESEach bit lasts CPB clocks. Two frames go back to back. How many clocks pass from the first start bit to the end of the second stop bit?

Examples

Example 1

P START IGNORED
Input
"start while busy is ignored"
Output
matches = 1

A promise of the specification: a feature.

Example 2

P SEND 55 AA
Input
"send 55, then AA"
Output
matches = 1

Inputs chosen to reach a feature: stimulus.

Example 3

P BOTH ARRIVE
Input
"both bytes arrive at the receiver model, with no frame error"
Output
matches = 1

It decides pass or fail: a check.

Constraints and Contract

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

Hints

Hint 1

A promise of the specification is a feature; an action that reaches it is stimulus.

Hint 2

A check decides pass or fail; coverage counts that the feature happened.

Hint 3

A promise with no row has no test.

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

P START IGNORED

Input
"start while busy is ignored"
Expected output
matches = 1

A promise of the specification: a feature.

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

Icarus Verilog · server