S5.9.1 Order the Power-Up

MediumImplement22 minIcarus Verilog · serverReview the topic

Reconstruct the earliest legal release edges from a board capture, including a lock indication that disappears.

Hardware context: ap_crg startup sequencer. Cold boot diagnosis on an MCU board

This board uses an always-on edge counter. Enter the earliest permissible edge number for each observation. These exercise delays belong to this board.

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

Edge 0 has power-on reset asserted. Supply good is first sampled high at edge 2. Start the oscillator on that edge. Oscillator ready is first sampled high at edge 5.

Start the PLL on the edge seeing oscillator ready. Lock reads high at edge 6, low at 7, then high from 8 onward. Qualify lock on its second consecutive high sample.

Latch the stable strap one edge after qualification. Release the fabric one edge after capture. ROM reports ready three edges after fabric release.

Release the core one edge after ROM ready. Issue the address one edge after core release. Capture the response on the following edge.

EntryYour decision
SUPPLYFirst good supply sample?
OSC_STARTFirst oscillator enable?
PLL_STARTFirst PLL enable?
QUALIFIEDFirst qualified lock?
STRAPBoot choice captured?
FABRICFabric reset released?
ROMROM ready?
CORECore released?
ADDRESSFirst address issued?
DATAFirst response captured?
DELAYED_DATAIf ROM takes EXTRA additional edges, when is the response captured?

Examples

Example 1

SUPPLY
Input
First good supply sample?
Output
matches = 1

The board reports good before edge 2.

Example 2

OSC START
Input
First oscillator enable?
Output
matches = 1

The controller can start the oscillator at the good sample.

Example 3

PLL START
Input
First PLL enable?
Output
matches = 1

The oscillator has reported ready at this edge.

Constraints and Contract

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

Hints

Hint 1

Place input changes before numbering releases.

Hint 2

Count consecutive lock samples from the last low.

Hint 3

Start each delay at the event named in the board contract.

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 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
First good supply sample?
Expected output
matches = 1

The board reports good before edge 2.

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

Icarus Verilog · server