TL;DR
This paper introduces a flexible method for analyzing the Worst-Case Execution Time (WCET) of safety-critical real-time systems. By leveraging UML-MARTE for modeling and Time Transition Systems (TTS) for verification, the approach allows for iterative refinement of both software and hardware models, balancing accuracy and computational feasibility throughout the development lifecycle.
What Problem Does This Paper Address?
Determining the Worst-Case Execution Time (WCET) is crucial for safety-critical real-time embedded systems (RTES). Traditional WCET analysis often happens late in the development cycle, relying on binary code and potentially complex hardware models. This can lead to costly redesigns if WCET requirements are not met. The challenge lies in integrating WCET analysis early in the design process, where models are less detailed, while still ensuring the safety (overestimation) and precision (minimizing overestimation) of the WCET. A key difficulty is the inherent trade-off: more accurate hardware modeling increases precision but also computational complexity, potentially making analysis infeasible. This paper aims to bridge this gap by providing a method that allows for a flexible approach to WCET analysis, adapting to the evolving maturity of the system design.
Methods
The core of the proposed method is the use of UML-MARTE as a modeling language and Time Transition Systems (TTS) as the verification language, processed by the TINA model checker.
- UML-MARTE for Modeling:
- Software: Modeled using UML Activity and Composite Structure diagrams. Actions within activity diagrams represent behavioral units, with attributes for identification, context, execution time (min/max), resource usage, and data.
- Hardware: Modeled using MARTE's Resource and Scheduler profiles. Resources are defined by their identification, scheduler, and quantity. Schedulers encapsulate scheduling algorithms and preemption policies.
- Time Transition Systems (TTS) for Verification:
- TPNs are extended with arithmetic guards and actions to form TTS. Transitions in TTS have "Pre" (guard conditions) and "Act" (actions modifying variables) functions.
- The TINA toolset is used to analyze these TTS models.
- Flexible Granularity and Refinement: The method supports iterative refinement across three development phases:
- Early Design: Focuses on functional segments of software. Hardware modeling is optional, allowing for rapid, abstract prototyping to identify inefficient designs early.
- Detailed Design: Software actions represent programming language statement blocks. Hardware models become more detailed, incorporating aspects like memory access and ALU usage. This phase aims to balance accuracy and computability by strategically splitting statement blocks.
- Implementation: Software is modeled at the machine code level. Hardware models are highly detailed, including features like caches and pipelines.
- WCET Analysis and Verification:
- The UML-MARTE model is translated into a TTS model.
- Real-time requirements (WCET) are specified using property patterns and attached as observers to the TTS model.
- Model checking is performed using TINA to verify WCET properties (e.g., WCET <= 50).
- A binary search algorithm is employed to compute the exact WCET bound value when a property is verified.
Datasets
Not discussed in the paper. The paper focuses on a methodology and uses illustrative examples rather than large-scale datasets.
Key Insights and Ideas
- Early WCET Analysis is Feasible and Beneficial: The paper demonstrates that WCET analysis can be effectively integrated into the early stages of the design process, not just at the implementation phase. This proactive approach can prevent costly late-stage redesigns.
- UML-MARTE as a Unified Modeling Language: Using UML-MARTE provides a consistent modeling framework for both software and hardware, facilitating a more integrated analysis.
- Balancing Accuracy and Computability: The core innovation is the explicit strategy for balancing WCET accuracy with computational feasibility by adjusting the granularity of software and hardware models throughout the development lifecycle. This is achieved through iterative refinement.
- Hardware Modeling as a Lever for Control: The paper highlights how modeling hardware, particularly schedulers, can help reduce the state space of the model checker, improving analysis efficiency without necessarily sacrificing accuracy if done strategically.
- Binary Search for Exact WCET: The use of binary search to pinpoint the exact WCET bound, even in the presence of "cavity intervals" (gaps in possible execution times), is a robust approach for precise WCET determination.
Key Results
The paper presents a methodology and demonstrates its application through examples. While specific quantitative results on large-scale systems are not provided, the key qualitative results are:
- A flexible method for WCET analysis is proposed, adaptable to different development phases.
- The method allows for gradual refinement of software and hardware models to balance accuracy and computability.
- The framework integrates UML-MARTE modeling with TTS verification using the TINA model checker.
- An example demonstrates how to model a software component in the early design phase and verify its WCET constraint.
- The paper illustrates how a binary search algorithm can accurately determine WCET bounds, even with complex execution time distributions.
Limitations and Future Work
- Hardware Model Translation: The authors note that the translation of hardware models from UML-MARTE to TTS needs to be completed.
- Scalability: While the method aims to manage complexity, the inherent scalability limitations of model checking for very large systems are implicitly present. The paper mentions using marking abstraction and property-specific reduction to mitigate this.
- Completeness of Hardware Schedulers: The paper mentions providing a set of classic scheduling algorithms, implying that the current implementation might not cover all possible or custom schedulers.
- Future Work: The authors suggest completing the hardware model translation and further exploring the design and analysis process within the UML-MARTE model checker framework. They also implicitly point towards further research in optimizing the translation and analysis steps for even greater efficiency.
Summary updated