snapshotExecution method
Captures register state, sampled inputs, and pending simulator events.
Calls must occur between simulator ticks. External signals are not part of this image and must be coordinated by the caller.
Implementation
CsrModelExecutionImage snapshotExecution() {
if (Simulator.phase != SimulatorPhase.outOfTick) {
throw StateError('CSR execution snapshots require a tick boundary.');
}
return CsrModelExecutionImage._(this);
}