Sort planned chip checks by whether they need a running core. Then work out, from recorded runs, what the seat saves on a long register list.
Hardware context: ap_soc v1.5 with a bus manager in the core's seat, watching the interrupt pins. Sorting checks by the seat they need.
The register sweep of ap_soc (343 rows) ran in both seats on the site's pre-built bench. It took 10,254 cycles through the interpreter on the processor and 1,193 on the bus-manager seat (record-v6-labs.mjs). Enter a code for each check, and whole numbers rounded down for the rest.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 65535 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Which seat the check needs |
|---|---|
| 1 | The bus-manager seat: no instruction is needed |
| 2 | Firmware on the processor: it needs instruction flow |
| 3 | Both: the seat for the hardware path, firmware for the software part |
| Entry | Your decision |
|---|---|
| RESET_VALUES | Every register reads its reset value after power-on. |
| HANDLER_RETURN | A UART interrupt handler returns to the instruction it interrupted. |
| BACK_TO_BACK | An SRAM read whose address phase sits on a write's data phase returns the right word. |
| DATA_COPY | The start-up code copies .data before main runs. |
| DMA_HOLE | A DMA job whose source is in no region ends in FAULT. |
| TIMER_IRQ | The timer's request reaches the core's pin, and the handler clears it. |
| WFI_WAKE | The core sleeps in wfi and wakes on a GPIO edge. |
| HOLES | Every hole of the map answers ERROR. |
| SAVED | Cycles the seat saved on the sweep. |
| RATIO | How many times the interpreter's cycles are the seat's, rounded down. |
| PER_ROW_FW | Average cycles a sweep row cost through the interpreter, rounded down. |
| SAVED_AT | Cycles the seat saves on a register list of ROWS rows, at the sweep's averages (10254 and 1193 cycles for 343 rows). Use ROWS × (10254 - 1193) / 343, rounded down. |
Examples
Example 1
RESET VALUES- Input
Every register reads its reset value after power-on.
- Output
matches = 1
Only reads: no instruction is needed.
Example 2
HANDLER RETURN- Input
A UART interrupt handler returns to the instruction it interrupted.
- Output
matches = 1
Returning from a trap is instruction flow; the seat has no handler.
Example 3
BACK TO BACK- Input
An SRAM read whose address phase sits on a write's data phase returns the right word.
- Output
matches = 1
The core never makes that timing; only the seat can.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For SAVED_AT, enter a constant expression using ROWS. Only this entry changes with the parameter. The supported integer range is 50 through 1000, inclusive.
Hints
Hint 1
If no instruction must run, the seat can do it.
Hint 2
The hardware path on the seat, the software part in firmware.
Hint 3
The difference and the ratio of the two runs.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
16 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