S10.8.1 Order the Chain of Trust

MediumImplement22 minIcarus Verilog · serverReview the topic

Reconstruct a firmware handoff and decide which code can run after a rejected candidate.

Hardware context: Firmware handoff and world gate. Secure boot and peripheral isolation

These are exercise roles. Reset enters immutable ROM (10). Loader (20), monitor (30) and OS (40) follow in that order.

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
VerifierAnchored or delegated key IDMinimum candidate version
ROM23
Loader58
Monitor94

Each verifier authenticates its immediate successor and the signed version with its own listed key. A failure latches a stop until reset. The current verifier retains control. Each entry starts a fresh boot unless stated.

EntryYour decision
RESET_OWNERWho runs first?
FIRST_KEYWhich key checks the loader?
FIRST_OWNERWho runs after a valid loader at version 3?
NEXT_KEYWhich key checks the monitor?
LAST_KEYWhich key checks the OS?
OLD_OWNERThe loader passes. A correctly signed monitor has version 7. Who retains control?
BAD_OSPredecessors pass. OS version 6 fails authentication. Who retains control?
RETRYAfter BAD_OS, a good OS is offered without reset. Who retains control?
LAST_OWNERAll signatures pass and each version equals its floor. Who runs last?
FINAL_OWNERAll signatures pass. Loader and OS meet their floors. Which owner runs last for MON_VERSION?

Examples

Example 1

RESET OWNER
Input
Who runs first?
Output
matches = 1

ROM runs from the reset vector.

Example 2

FIRST KEY
Input
Which key checks the loader?
Output
matches = 1

ROM uses the anchored key with ID two.

Example 3

FIRST OWNER
Input
Who runs after a valid loader at version 3?
Output
matches = 1

Version three meets the inclusive floor.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For FINAL_OWNER, enter a constant expression using MON_VERSION. Only this entry changes with the parameter. The supported integer range is 0 through 15, inclusive.
  • Replace each unfinished FF entry with your decision.

Hints

Hint 1

Locate the first verifier whose authority needs no earlier image.

Hint 2

Place each key on the outgoing handoff of its owner.

Hint 3

Retain the verifier that declined the candidate.

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

10 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

RESET OWNER

Input
Who runs first?
Expected output
matches = 1

ROM runs from the reset vector.

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

Icarus Verilog · server