TL;DR
This paper introduces a novel symbolic scheduling method for complex, heterogeneous embedded systems. By leveraging interval diagram techniques to represent system behavior and scheduling constraints, it enables the generation of deadlock-free and bounded schedules without explicitly enumerating all possible execution paths, a significant challenge in systems with non-determinism.
What Problem Does This Paper Address?
Designing embedded systems is inherently complex due to heterogeneity in both hardware (processors, microcontrollers, ASICs) and software (mixed data/control flow, various computation models). This complexity is amplified by non-determinism, which can arise from incomplete specifications, data-dependent behavior, or unknown scheduling policies. Traditional scheduling approaches struggle with this combinatorial explosion of execution paths, leading to potential deadlocks or unbounded resource usage. The paper aims to address the challenge of generating efficient and correct schedules for such systems by developing a symbolic technique that can handle these complexities.
Methods
The core of the paper's contribution lies in its symbolic scheduling approach, built upon a formal model called FunState. FunState provides an internal representation that combines functional units, FIFO queues, and finite state machines to explicitly model non-determinism and scheduling policies. The scheduling method itself utilizes interval diagram techniques, specifically Interval Decision Diagrams (IDDs) and Interval Mapping Diagrams (IMDs).
Here's a breakdown of the key methods:
- FunState Model: This model serves as the unified representation for heterogeneous embedded systems, capturing dataflow, control flow, and various synchronization/communication mechanisms. It allows for stepwise refinement and hierarchy.
- Symbolic State Traversal: Instead of explicitly constructing the entire state transition graph of the system, the authors employ iterative image computations using IDDs (for state sets) and IMDs (for transition relations). This allows for symbolic exploration of the state space.
- Conflict-Dependent Scheduling: The approach focuses on resolving "conflicts" – non-deterministic choices that cannot be made at compile time (e.g., data-dependent branches). The scheduling process aims to transform these dynamic choices into static schedules until the next conflict is encountered.
- Schedule Specification Automaton: A schedule specification automaton is built to represent all possible conflict behaviors, defining valid schedules.
- Schedule Controller Generation: The output of the symbolic scheduling process is a schedule controller automaton. This automaton is then optimized (e.g., for state minimization) and can be translated into executable code.
What's new here is the application of interval diagram techniques for generating schedules, not just for verification. This allows them to avoid the explicit enumeration of execution paths, which is a major bottleneck in traditional methods.
Datasets
Not discussed in the paper. The paper uses a conceptual example (Figure 1) and a specific application case study (Molecular Dynamics Simulation Example, Figure 6) to illustrate their approach, but these are not presented as formal datasets.
Key Insights and Ideas
- Symbolic Scheduling for Non-Determinism: The most significant insight is that symbolic techniques, particularly interval diagrams, can effectively manage the complexity introduced by non-determinism in embedded systems. This moves beyond traditional static or dynamic scheduling limitations.
- FunState as a Unifying Model: The FunState formalism proves to be a powerful internal representation that can unify diverse models of computation, making it suitable for complex heterogeneous systems.
- Conflict Resolution at Compile Time (Partially): The "conflict-dependent scheduling" strategy is crucial. It allows for making as many scheduling decisions as possible at compile time, deferring only those truly dependent on runtime conditions, thus optimizing for efficiency.
- Deadlock-Free and Bounded Schedules Guaranteed: The symbolic approach, when applied correctly, guarantees finding a deadlock-free and bounded schedule if one exists, a critical requirement for embedded systems.
- Interval Diagrams for Scheduling: The paper demonstrates that interval diagrams, often used for verification, are also highly effective for the synthesis of schedules, offering a more compact representation than traditional BDDs for certain types of transition relations.
Key Results
The paper presents a methodology and demonstrates its application. While specific quantitative results (like percentage speedup or reduction in schedule length) are not detailed with concrete numbers, the qualitative results are significant:
- Generation of a Schedule Controller: The approach successfully generates a schedule controller automaton that represents a conflict-dependent schedule.
- Optimized Controller: The generated controller can be optimized to reduce the number of states while preserving the dynamic decision points.
- Example Application: The molecular dynamics simulation example shows how the approach can be applied to a real-world hardware/software co-design scenario, illustrating the scheduling of a conflict state between a host workstation and a coprocessor. The resulting schedule is shown to respect the specification of the coprocessor.
Limitations and Future Work
- Focus on Software Scheduling: The current work primarily focuses on software scheduling on a uniprocessor.
- Ignoring Explicit Timing: The paper explicitly states that explicit timing properties (execution times, timing constraints) are ignored for simplicity.
- Future Work: The authors suggest extending the approach to:
- Hardware scheduling under more complex resource constraints.
- Incorporating timing behavior to specify and handle timing constraints.
- Extending to multi-processor scheduling.
Summary updated