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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Verifier | Anchored or delegated key ID | Minimum candidate version |
|---|---|---|
| ROM | 2 | 3 |
| Loader | 5 | 8 |
| Monitor | 9 | 4 |
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.
| Entry | Your decision |
|---|---|
| RESET_OWNER | Who runs first? |
| FIRST_KEY | Which key checks the loader? |
| FIRST_OWNER | Who runs after a valid loader at version 3? |
| NEXT_KEY | Which key checks the monitor? |
| LAST_KEY | Which key checks the OS? |
| OLD_OWNER | The loader passes. A correctly signed monitor has version 7. Who retains control? |
| BAD_OS | Predecessors pass. OS version 6 fails authentication. Who retains control? |
| RETRY | After BAD_OS, a good OS is offered without reset. Who retains control? |
| LAST_OWNER | All signatures pass and each version equals its floor. Who runs last? |
| FINAL_OWNER | All 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