V13.8.1 Which Platform for Which Job

MediumImplement22 minIcarus Verilog · serverReview the topic

Choose a platform for each job of a project, from the measured ladder and what each platform models. Then cost one job on the hybrid.

Hardware context: The VP, the hybrid and RTL of ap_soc on one flash test with the pads released and set. Which platform for which job.

Measured on this site's platforms (SPI polling, retired instructions a second): Verilator RTL 98,146, hybrid 197,208, VP 23,580,327. 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. The VP models registers but not pads; the hybrid has RTL peripherals and pads but not the core's pipeline; RTL has everything.

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
CodePlatform
1The virtual platform
2The hybrid
3Chip RTL on Verilator
4A small Icarus slice
5An emulator (named only: none here)
6None: a block bench, no software

MEHTA-DV 16.12 and 11.1 argue for a VP before RTL exists. Section 12.1 argues for emulation when software needs billions of cycles. Sections 17.9 and 17.10 use none of them for a subsystem that runs no software.

EntryYour decision
DRIVER_EARLYBring up the SPI driver while the RTL is still being written.
PADSProve that the pin mux puts the SPI on its pads, with a few million instructions of firmware.
IRQ_CYCLESMeasure the cycles from an interrupt pin to the first handler instruction on the real core.
OS_BOOTBoot an operating system on the final RTL, billions of cycles.
COHERENCYVerify a cache subsystem that runs no software.
WAVESReproduce with waves a failure the hybrid reported.
FSM_QUESTIONCheck one corner of a 40-line state machine.
HYBRID_SECONDSA device-heavy job of J million instructions on the hybrid: how many seconds, at the SPI polling rate? (round down)

Examples

Example 1

DRIVER EARLY
Input
Bring up the SPI driver while the RTL is still being written.
Output
matches = 1

Only the VP exists before RTL.

Example 2

PADS
Input
Prove that the pin mux puts the SPI on its pads, with a few million instructions of firmware.
Output
matches = 1

The hybrid has the RTL pin mux and pads and runs faster than RTL; the VP has no pads.

Example 3

IRQ CYCLES
Input
Measure the cycles from an interrupt pin to the first handler instruction on the real core.
Output
matches = 1

Only RTL has the pipeline's timing.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For HYBRID_SECONDS, enter a constant expression using J. Only this entry changes with the parameter. The supported integer range is 10 through 600, inclusive.

Hints

Hint 1

Pads, pipeline timing, or only the software's view?

Hint 2

Instructions over the rate of the platforms that have it.

Hint 3

A failure seen on a fast platform is debugged on RTL with waves.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

12 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

DRIVER EARLY

Input
Bring up the SPI driver while the RTL is still being written.
Expected output
matches = 1

Only the VP exists before RTL.

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

Icarus Verilog · server