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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Stage | What is looked at | Cost of a fix (units) |
|---|---|---|---|
| 1 | Architecture review | the architecture document | 1 |
| 2 | Block specification review | the document of one block | 2 |
| 3 | Simulation of one block | the RTL of one block | 5 |
| 4 | Simulation of the whole chip | all blocks joined | 10 |
| 5 | Synthesis and timing reports | the gates and their delays | 20 |
| 6 | Physical design checks | the layout | 50 |
| 7 | Bring-up in the lab | the finished chip on a board | 200 |
The costs are exercise numbers. They rise at each stage because more work must be done again.
| Entry | Your decision |
|---|---|
| SAME_ADDRESS | The memory map gives two devices the same address range. Earliest stage? |
| COUNTER | The counter of one block wraps where its specification says it stops. Earliest stage? |
| LONG_PATH | One path of logic is too long for the clock period. Earliest stage? |
| SWAPPED_IRQ | Two interrupt wires are swapped at the top level. Each block alone is right. Earliest stage? |
| NO_STATUS_BIT | The document of a block lacks a status bit that software needs. Earliest stage? |
| WIRES_CLOSE | Two wires of the layout are closer than the factory allows. Earliest stage? |
| ONE_UART | The product needs two UARTs. The architecture document has one. Earliest stage? |
| RESET_SENSE | A block wants its reset active at 1. The top level drives it active at 0. Earliest stage? |
| DONE_LATE | A timer block raises done one edge later than its specification says. Earliest stage? |
| LATE_FIND | The swapped interrupt wires are found in the lab, not at their earliest stage. How many times more does the fix cost? |
| SAVED | A review finds the address clash at stage 1. Chip simulation would have found it at stage 4. How many units are saved? |
| EXTRA_COST | The 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