V13.1.1 Cycles a Job Needs, Cycles a Second

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
PlatformSRAM checksumSPI polling
Icarus RTL1,3101,348
Verilator RTL108,63198,146
Virtual platform22,720,46823,580,327
Hybrid (IPC 1)468,515197,208
CodeThe most detailed platform that finishes in time (RTL first, then the hybrid, then the VP)
1Verilator RTL
2The hybrid
3The virtual platform
4None of them
EntryYour decision
SEC_VERILATOR_10MSeconds for 10 million checksum instructions on Verilator RTL.
SEC_VP_1GSeconds for one billion checksum instructions on the virtual platform.
RATIO_VPHow many times faster is the VP than Verilator RTL on the checksum? (round down)
RATIO_RTLHow many times faster is Verilator RTL than Icarus RTL on the checksum? (round down)
HOURS_ICARUS_100MHours for 100 million checksum instructions on Icarus RTL. (round down)
PICK_50MA 50-million-instruction checksum job with a 10-minute budget.
PICK_SPI_100MA 100-million-instruction SPI polling job with a 10-minute budget.
PICK_SPI_10GA 10-billion-instruction SPI polling job with a 10-minute budget.
SEC_VERILATOR_KSeconds (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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

SEC VERILATOR 10M

Input
Seconds for 10 million checksum instructions on Verilator RTL.
Expected output
matches = 1

10,000,000 / 108,631.

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

Icarus Verilog · server