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
| Component | Role around FastDyn | Boundary to preserve |
|---|---|---|
| FastDyn | Configure, prepare, execute, instrument, and collect a firmware experiment | Generic execution and extension APIs |
| Patched QEMU | Guest CPU/machine execution and the translation hooks FastDyn requires | Pin the expected fork and patch |
| LibVIO | Reusable bus, DMA, signal, and host-I/O primitives used by device models | Peripheral-model implementation library |
| libhw | Access a physical target through supported debug-probe backends | Hardware connection and transactions |
| BoardRunner | Learn and verify peripheral models from hardware evidence | Downstream model-generation workflow |
| PhantomSmith | Automate firmware rehosting using the execution engine | Downstream orchestration and target adaptation |
| Rumoca | Compile Modelica models used in the maintained FMI path | Model compilation and generated artifacts |
| Tempo | Compile typed federations and coordinate participant time, routing, and synchronization | Separate native scheduler; the reviewed revision supplies mock participants |
raw2elf and world | Optional neighboring tooling for image preparation and physical-world integration | Their 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.