In SoC Blockset™, a task subsystem can be treated as an independent model with the task duration simulating the expected execution time on an SoC device. When the Task Manager block executes a task, input signals connected to that task subsystem can either be sampled and cached at the start of the task execution or sampled at the end of the task execution instance. The task subsystem then executes using either the cached or latest value. The value of signals and buses output from the subsystem change at the end of the task execution instance.
To enable task subsystem input signal caching, first open the Simulink® configuration parameters on the processor reference model. On the Hardware Implementation pane, select Hardware board settings > Task and memory simulation > Cache input data at task start.