Reconstruct a deadline miss from overlapping interrupt-delivery, instruction-boundary and fetch intervals.
Hardware context: ap_soc machine trap entry and return. Machine-mode firmware and deadline analysis
A timing ticket gives edge numbers on one core clock. The event occurs at edge 10. Pending arrives at 13. The current instruction can release the core at 18. Entry waits for both. Redirect then takes two periods. The vector fetch takes three more, followed by four periods of register saves.
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
Latency to the first handler word stops at fetch completion. Service latency here stops after the saves. A deadline of thirteen periods from the event includes equality.
| Entry | Your decision |
|---|---|
| DELIVERY | Event to pending, in periods? |
| BOUNDARY | Event to available boundary? |
| OVERLAP | How many delivery periods overlap the boundary wait? |
| ACCEPT | Trap acceptance edge? |
| FETCH_EDGE | First handler word edge? |
| ENTRY_COST | Event to first word? |
| SERVICE | Event through register saves? |
| MARGIN | Deadline slack at first word? |
| FASTER | Entry cost if delivery shrinks to one period? |
| LATE | Entry cost if delivery takes ten periods? |
| LATEST_FETCH | For the loaded fabric only, the boundary releases WAIT_CYCLES after edge 10. Redirect still takes two periods. Fetch can start only at edges divisible by four, including a coincident ready edge. The word returns three periods after that grant. Give the absolute return edge. |
Examples
Example 1
DELIVERY- Input
Event to pending, in periods?
- Output
periods = 3
Subtract edge 10 from edge 13.
Example 2
BOUNDARY- Input
Event to available boundary?
- Output
periods = 8
Edge 18 is eight periods after the event.
Example 3
OVERLAP- Input
How many delivery periods overlap the boundary wait?
- Output
periods = 3
Both intervals begin at the event.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For LATEST_FETCH, enter a constant expression using WAIT_CYCLES. Only this entry changes with the parameter. The supported integer range is 0 through 16, inclusive.
Hints
Hint 1
Record event time and the completion edge separately.
Hint 2
Use the later completion of parallel prerequisites.
Hint 3
State whether the consumer needs entry or useful service.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
14 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 4 problems on this path