Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Skip to content
BoardRunner

FastDyn and its ecosystem

FastDyn supplies execution and experiment integration. Several related tools supply models, recover information, or automate workflows around it. Keeping those responsibilities explicit makes the system easier to extend: a model synthesis tool can improve without becoming part of the QEMU plugin, and a new plant model can serve more than one simulator consumer.

Current boundaries

ComponentRole around FastDynBoundary to preserve
FastDynConfigure, prepare, execute, instrument, and collect a firmware experimentGeneric execution and extension APIs
Patched QEMUGuest CPU/machine execution and the translation hooks FastDyn requiresPin the expected fork and patch
LibVIOReusable bus, DMA, signal, and host-I/O primitives used by device modelsPeripheral-model implementation library
libhwAccess a physical target through supported debug-probe backendsHardware connection and transactions
BoardRunnerLearn and verify peripheral models from hardware evidenceDownstream model-generation workflow
PhantomSmithAutomate firmware rehosting using the execution engineDownstream orchestration and target adaptation
RumocaCompile Modelica models used in the maintained FMI pathModel compilation and generated artifacts
TempoCompile typed federations and coordinate participant time, routing, and synchronizationSeparate native scheduler; the reviewed revision supplies mock participants
raw2elf and worldOptional neighboring tooling for image preparation and physical-world integrationTheir own repositories and explicitly configured adapters

The FastDyn source README documents BoardRunner, LibVIO, and PhantomSmith as separate projects. The implementation also pins optional dependencies and tools in .gitmodules. Their presence does not mean every dependency is required to run the minimal example.

A model-to-execution workflow

A peripheral model may be hand-written or generated by a downstream tool. FastDyn compiles or loads the resulting library and routes the configured accesses to it. The execution engine cares about the model's ABI and behavior, not how its author produced it.

Likewise, a firmware-analysis tool can use the Python API to prepare and run an experiment, then inspect artifacts. It should call the public runner rather than maintain another implementation of configuration parsing, work-directory management, FMU preparation, and helper-process cleanup.

This separation is useful for research. Two synthesis strategies can be compared against the same execution machinery. A new instrumentation technique can use the same peripheral models. A physics-backed scenario can combine an established controller profile with a different plant while retaining the experiment's timing and data contracts.

Physical models and the firmware boundary

FastDyn's physics integration includes Modelica files, pinned Rumoca integration, controller adapters, and an FMI runtime. A physical model supplies state and observations; the configured firmware adapter determines how those values reach the guest. Use the FMU chapter for the executable workflow and its versioned prerequisites.

The in-process FMU design allows a model to run inside the QEMU process. An optional viewer, telemetry bridge, or mission helper is a separate component with its own configuration and lifecycle.

External pacing and Tempo

FastDyn as a secondary simulator exposes execution budgets through patched QEMU's QMP interface. An external controller grants virtual time and observes stops; its data-exchange policy and any connections between guests remain explicit parts of the experiment.

Tempo implements a separate native scheduler, federation compiler, typed routing, and Python/TOML configuration. Its reviewed revision runs mock participants and contains no FastDyn or FMI adapter. The chapter's working examples exercise those shipped mocks.

Where a contribution belongs

Put behavior used by one feature in that feature's host/runtime package. Put shared immutable firmware facts in the host-analysis API when multiple consumers need them. Keep live simulator samples and feature-specific policy with the owning adapter or plugin.

Put model synthesis, agentic orchestration, or another downstream application's decisions in its own project. The FastDyn core should not need a special branch for a downstream tool name. Register extensions through the preparation, runtime, model, or backend interfaces.

These rules are more than directory organization: they preserve the ability to combine independent tools without duplicating the execution engine.

Source guide