S1.4.1 Who Catches This Bug

EasyImplement12 minIcarus Verilog · serverReview the topic

For each bug, name the earliest stage of the design flow that can see it. Then count what a late find costs.

Hardware context: A small counter block taken through the stages of the design flow. Design flow planning and sign-off

A team builds a small SoC. Ten bugs are listed below. Each can be caught first at one stage of the flow.

This worksheet uses named constants. The first three entries show how to record your decisions.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeStageWhat is looked atCost of a fix (units)
1Architecture reviewthe architecture document1
2Block specification reviewthe document of one block2
3Simulation of one blockthe RTL of one block5
4Simulation of the whole chipall blocks joined10
5Synthesis and timing reportsthe gates and their delays20
6Physical design checksthe layout50
7Bring-up in the labthe finished chip on a board200

The costs are exercise numbers. They rise at each stage because more work must be done again.

EntryYour decision
SAME_ADDRESSThe memory map gives two devices the same address range. Earliest stage?
COUNTERThe counter of one block wraps where its specification says it stops. Earliest stage?
LONG_PATHOne path of logic is too long for the clock period. Earliest stage?
SWAPPED_IRQTwo interrupt wires are swapped at the top level. Each block alone is right. Earliest stage?
NO_STATUS_BITThe document of a block lacks a status bit that software needs. Earliest stage?
WIRES_CLOSETwo wires of the layout are closer than the factory allows. Earliest stage?
ONE_UARTThe product needs two UARTs. The architecture document has one. Earliest stage?
RESET_SENSEA block wants its reset active at 1. The top level drives it active at 0. Earliest stage?
DONE_LATEA timer block raises done one edge later than its specification says. Earliest stage?
LATE_FINDThe swapped interrupt wires are found in the lab, not at their earliest stage. How many times more does the fix cost?
SAVEDA review finds the address clash at stage 1. Chip simulation would have found it at stage 4. How many units are saved?
EXTRA_COSTThe counter bug of entry COUNTER could be caught at stage 3. It is found at stage FOUND. How many cost units more than at stage 3?

Examples

Example 1

SAME ADDRESS
Input
The memory map gives two devices the same address range. Earliest stage?
Output
matches = 1

The memory map is part of the architecture document. A review of it finds the clash.

Example 2

COUNTER
Input
The counter of one block wraps where its specification says it stops. Earliest stage?
Output
matches = 1

The RTL of one block disagrees with its specification. A simulation of that block shows it.

Example 3

LONG PATH
Input
One path of logic is too long for the clock period. Earliest stage?
Output
matches = 1

Delays exist only once there are gates. The timing report after synthesis shows them.

Constraints and Contract

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

Hints

Hint 1

Is it a document, one block, a join, a delay or a shape?

Hint 2

Each stage looks at one kind of thing.

Hint 3

Later stages also see the bug, and each costs more.

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

12 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 1 problem 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

SAME ADDRESS

Input
The memory map gives two devices the same address range. Earliest stage?
Expected output
matches = 1

The memory map is part of the architecture document. A review of it finds the clash.

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

Icarus Verilog · server