S6.6.1 Order the Boot

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
ProbeWhat the board guarantees
Application portIts first fetch waits for ROM to approve the image.
Clock monitorThe oscillator starts only after power-good.
SPI portROM must select flash mode before it can start reading the image.
Instruction portThe vector fetch is the first request after release.
Image checkerROM can check the image only after the last SRAM write completes.
Reset monitorReset stays asserted until the oscillator is stable.
Boot strapSaved as 0 on this board, so the core starts in ROM. ROM sets up flash only after its first fetch.
EntryYour decision
SUPPLYPower-good rises.
CLOCKClock becomes stable.
RELEASEReset releases.
ENTRYSRAM supplies the first application word.
MODEROM puts the SPI port in flash mode.
CHECK_IMAGEROM finishes checking the copied image.
VECTORROM answers the first instruction fetch.
COPY_ENDThe last flash word reaches SRAM.
FETCH_EDGEIn 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

SUPPLY

Input
Power-good rises.
Expected output
matches = 1

The clock is held off until the supply is good.

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

Icarus Verilog · server