Turn measured platform speeds into the time a job takes, and pick the most detailed platform that finishes it in time.
Hardware context: Four platforms of ap_soc v1.5: Icarus RTL, Verilator RTL, the C virtual platform and the hybrid. The speed ladder as arithmetic.
Retired instructions a second on ap_soc, for two steady loops: an SRAM checksum and SPI flash polling. Recorded on 2026-11-29 on one laptop: 13th Gen Intel(R) Core(TM) i7-13645HX, 16 threads, 12 GiB, WSL2. Other jobs were running (load average 4.8 at the start). Medians of three runs of at least one second each. Enter whole seconds (round down) unless a row says otherwise.
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
| Platform | SRAM checksum | SPI polling |
|---|---|---|
| Icarus RTL | 1,310 | 1,348 |
| Verilator RTL | 108,631 | 98,146 |
| Virtual platform | 22,720,468 | 23,580,327 |
| Hybrid (IPC 1) | 468,515 | 197,208 |
| Code | The most detailed platform that finishes in time (RTL first, then the hybrid, then the VP) |
|---|---|
| 1 | Verilator RTL |
| 2 | The hybrid |
| 3 | The virtual platform |
| 4 | None of them |
| Entry | Your decision |
|---|---|
| SEC_VERILATOR_10M | Seconds for 10 million checksum instructions on Verilator RTL. |
| SEC_VP_1G | Seconds for one billion checksum instructions on the virtual platform. |
| RATIO_VP | How many times faster is the VP than Verilator RTL on the checksum? (round down) |
| RATIO_RTL | How many times faster is Verilator RTL than Icarus RTL on the checksum? (round down) |
| HOURS_ICARUS_100M | Hours for 100 million checksum instructions on Icarus RTL. (round down) |
| PICK_50M | A 50-million-instruction checksum job with a 10-minute budget. |
| PICK_SPI_100M | A 100-million-instruction SPI polling job with a 10-minute budget. |
| PICK_SPI_10G | A 10-billion-instruction SPI polling job with a 10-minute budget. |
| SEC_VERILATOR_K | Seconds (round down) for K million checksum instructions on Verilator RTL. |
Examples
Example 1
SEC VERILATOR 10M- Input
Seconds for 10 million checksum instructions on Verilator RTL.
- Output
matches = 1
10,000,000 / 108,631.
Example 2
SEC VP 1G- Input
Seconds for one billion checksum instructions on the virtual platform.
- Output
matches = 1
1,000,000,000 / 22,720,468.
Example 3
RATIO VP- Input
How many times faster is the VP than Verilator RTL on the checksum? (round down)
- Output
matches = 1
Divide the two rates.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For SEC_VERILATOR_K, enter a constant expression using K. Only this entry changes with the parameter. The supported integer range is 5 through 400, inclusive.
Hints
Hint 1
Seconds = instructions needed / instructions a second.
Hint 2
Take the most detailed platform whose time fits the budget.
Hint 3
Device-heavy code runs slower on RTL and the hybrid; the VP barely notices.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
13 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 1 problem on this path