portableExecutionImage method
Encodes storage, read output and reset history at a settled tick boundary.
External signals and scheduled events are not included.
Implementation
String portableExecutionImage() {
if (Simulator.phase != SimulatorPhase.outOfTick || !clk.value.isValid) {
throw StateError('SRAM execution images require a settled known clock.');
}
return 'RHCL_SRAM_EXEC_V1 ${MemoryValueCodec.binary(clk.value)} '
'${_resetSeen ? '1' : '0'}\n${portableSnapshot()}';
}