Reassemble a cold-start log and locate the first safe instruction fetch.
Hardware context: Boot ROM and SRAM handover. Cold-start diagnosis
A recorder lost its timestamps. Number the milestones from 1 to 8 on the normal path. Use this board’s dependencies.
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
| Probe | What the board guarantees |
|---|---|
| Application port | Its first fetch waits for ROM to approve the image. |
| Clock monitor | The oscillator starts only after power-good. |
| SPI port | ROM must select flash mode before it can start reading the image. |
| Instruction port | The vector fetch is the first request after release. |
| Image checker | ROM can check the image only after the last SRAM write completes. |
| Reset monitor | Reset stays asserted until the oscillator is stable. |
| Boot strap | Saved as 0 on this board, so the core starts in ROM. ROM sets up flash only after its first fetch. |
| Entry | Your decision |
|---|---|
| SUPPLY | Power-good rises. |
| CLOCK | Clock becomes stable. |
| RELEASE | Reset releases. |
| ENTRY | SRAM supplies the first application word. |
| MODE | ROM puts the SPI port in flash mode. |
| CHECK_IMAGE | ROM finishes checking the copied image. |
| VECTOR | ROM answers the first instruction fetch. |
| COPY_END | The last flash word reaches SRAM. |
| FETCH_EDGE | In a second capture, the first of WORDS SRAM writes completes at edge 9. One word completes each edge. The check takes the next edge and the entry fetch completes one edge later. When does the fetch complete? |
Examples
Example 1
SUPPLY- Input
Power-good rises.
- Output
matches = 1
The clock is held off until the supply is good.
Example 2
CLOCK- Input
Clock becomes stable.
- Output
matches = 1
Only the supply milestone precedes clock stability.
Example 3
RELEASE- Input
Reset releases.
- Output
matches = 1
Release follows the live clock and precedes instruction traffic.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For FETCH_EDGE, enter a constant expression using WORDS. Only this entry changes with the parameter. The supported integer range is 1 through 16, inclusive.
Hints
Hint 1
Mark what must already be available for each event.
Hint 2
Distinguish the ROM that sets up flash from the memory supplying instructions.
Hint 3
Use one word as a boundary check.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
9 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