Composing a parent

Compose a system from calibrated units

Once each unit has been verified and its timed phases calibrated in its harness, a parent’s pysim is composed: each child loads its own record (Calibrating in a harness), and nothing is fitted to the parent. The check is the parent’s RTL:

system composed from against its RTL (Vitis 2025.1)
the polynomial on a bus the kernel’s record, the queues, the crossbar +1.8%
markov: a generator, a chain, a memory, on a bus three records, each from its own harness -0.9%

When the composition misses, the miss locates what is not yet modeled: markov’s first composition was -8.8%, and comparing its RTL probes against pysim event by event found an uncalibrated memory (reads at two cycles a word, one transaction at a time), then a lead the chain’s core needs from its input. Both became calibrated units; nothing was fitted to the system (markov’s timing).

Order

A parent’s pysim must run after its units’ calibrations, so its estimate is made from the records they just filed: add_system_steps(..., after=[...]), or dag.require("pysim", [...]) when the parent was added first – markov’s build collects each unit’s phase_calib and mem_timing artifact and requires them of the system’s pysim (markov_build.py).

Incremental

Every system step is fresh while what it reads is unchanged (freshness): structure, sources, scenario, the RTL of its tops, and – for pysim – the records its modules load, each module’s own. So a unit nobody changed does no work. Change markov’s generator’s draw interval (MarkovGen.gen_ii, a build parameter) and only the generator is re-synthesized, re-run and calibrated, with the system that holds it; the chain’s and the memory’s harnesses skip (test_incremental_units.py).