Access Official Technical PDF

Share Summary:LinkedInEmail

Hard real-time scheduling becomes more complex when a streaming application can change its behavior at runtime. A mode change may alter actor execution patterns, data production and consumption, and the timing relationships among tasks. If these effects are not analyzed, a schedule that is predictable in each operating mode may still miss timing constraints during a transition.

Mode-Aware Data Flow (MADF) addresses this challenge by representing adaptive behavior as a set of individually analyzable modes and defining how execution proceeds between them. Its Maximum-Overlap Offset (MOO) transition protocol is designed to prevent timing interference between the old and new modes, enabling mode transitions to be analyzed independently of earlier transitions.

Why adaptive streaming complicates timing analysis

Streaming applications process continuous flows of data and are often modeled as directed graphs. In these graphs, actors represent computation tasks, while edges represent data dependencies and typically use FIFO communication. Parallel execution can make efficient use of multiprocessor system-on-chip platforms, but predictable timing depends on understanding both computation and communication.

Static dataflow models such as Synchronous Data Flow and Cyclo-Static Data Flow support compile-time analysis by prescribing fixed token rates or fixed periodic patterns. Adaptive applications, however, may change their behavior at runtime. A computer vision pipeline, for example, may process different regions of an image depending on external input. The amount of data consumed or produced by an actor can therefore vary by operating mode.

Scenario-based and mode-based dataflow models extend static approaches by describing an application as a collection of predefined behaviors. Each mode can be analyzed separately, but the transition between modes creates an additional timing problem: actors associated with different modes may execute concurrently while the application changes configuration.

How Mode-Aware Data Flow represents application behavior

MADF describes an adaptive streaming application using dataflow actors, a control actor, communication edges, and parameter vectors. The control actor receives a mode identifier and supplies the corresponding parameters to dataflow actors. Those parameters determine each actor’s computation sequence and its production and consumption patterns for that mode.

Each MADF mode is represented as a consistent, live Cyclo-Static Data Flow graph. When the application remains in one mode, established CSDF analysis can be used to determine properties such as actor periods, earliest starting times, and iteration timing. The model allows production and consumption sequences to have different lengths in different modes while keeping each sequence defined once the mode is known.

This separation is important for real-time engineering. Application designers can specify the permitted modes and transitions at compile time, then analyze the behavior of each mode without requiring actors to operate with unknown data rates. The control actor makes mode changes explicit rather than leaving the system’s behavior during reconfiguration unspecified.

Maximum-Overlap Offset limits transition interference

In a self-timed transition protocol, actors run as soon as their dependencies allow, both within a mode and while changing modes. This can cause execution in the new mode to interfere with execution left over from the old one. As a result, the timing of a transition may depend on the sequence of transitions that came before it, making analysis more complicated.

MOO addresses this by calculating an offset for the start of the new mode. The calculation compares the steady-state starting times of actors active in both modes and identifies the maximum overlap between their executions. The new mode is delayed by that offset so its timing behavior is not disrupted by the old mode.

The protocol also defines transitions around quiescent points: the first firing of an actor in a mode iteration. A mode change is applied after the relevant actor has completed its firings for the current iteration. A mode-change request received during an ongoing transition is ignored under the stated model assumptions.

MOO does not necessarily make every individual transition start as early as possible. An offset can add delay compared with a self-timed transition. Its benefit is analytical predictability: because the new mode retains its steady-state iteration timing, the transition can be assessed without tracing the history of earlier mode changes.

Analyzing hard real-time timing constraints

The hard real-time analysis extends a strictly periodic scheduling framework for CSDF graphs. In steady state, each actor is represented as a periodic real-time task with a period and an earliest starting time. The task periods are derived from actor execution requirements and the graph’s repetition structure, while data dependencies constrain when actors can start.

During a mode change, the analysis must determine when tasks in the new mode can begin without overloading a processor. In a partitioned scheduling arrangement, actors are assigned to processing elements, and the timing analysis must ensure that the combined scheduled work does not exceed processor capacity. The MOO protocol makes this calculation more tractable by providing a defined relationship between the old and new mode schedules.

The analysis establishes bounds on the earliest starting times of tasks in the new mode. A conservative upper bound can be based on completion of the old mode’s iteration and the new mode’s normal actor start times. Such bounds support reasoning about transition delay and whether hard timing constraints can still be met.

Practical implications for system designers

For engineers developing adaptive streaming systems, the approach highlights several design considerations:

  • Define modes explicitly. Specify valid configurations, actor behavior, and allowed transitions at compile time.
  • Account for data dependencies. Actor release times are linked through token production and consumption, not determined by processor availability alone.
  • Analyze transitions as part of the schedule. Steady-state feasibility does not by itself establish that a mode change is timely.
  • Check processor loading. Transition timing must avoid scheduling work in a way that exceeds processor capacity.
  • Choose a transition policy deliberately. MOO prioritizes reduced interference and independent analysis, while an offset may affect the response to a particular mode-change request.

The framework assumes a predictable multiprocessor platform and partitioned scheduling, with scheduling algorithms such as fixed-priority preemptive scheduling or earliest-deadline-first considered for processor tasks. These assumptions define the setting in which the timing analysis applies.

Conclusion

Adaptive streaming systems need more than a predictable schedule for each individual operating mode; they also need a way to reason about execution while modes change. MADF captures mode-dependent computation and data rates using analyzable CSDF graphs, while the MOO protocol controls overlap between old and new mode executions. Together, these ideas support independent transition analysis and help system designers assess task start times, transition delays, and processor loading against hard real-time constraints.

Access Official Technical PDF

About The Author