Abstract
Safety requirements are a very important artifact in the development of safety-critical embedded systems. They are usually identified during safety analyses and are used by experts as a basis for the correct selection and implementation of safety mechanisms. In this paper, we propose the application of formal models of safety requirements throughout all development phases of a model-driven development (MDD) process. The safety requirements identified during safety analysis can be used to automatically generate appropriate mechanisms in the code generation phase and to verify the suitability of these mechanisms in the verification phase. By establishing safety requirements as a formal basis of all process phases, a consistent development process can be achieved.
Introduction
In the development of safety-critical systems, such as those in the automotive or aerospace industries, safety analysis is often a siloed process. Engineers typically use techniques like Fault Tree Analysis (FTA) to identify hazards, but the resulting safety requirements are frequently informal or documented in natural language.
This creates a significant "translation gap": human experts must manually interpret these requirements to select and implement safety mechanisms like checksums or watchdogs. This manual process is prone to errors, difficult to verify, and hard to maintain as the system evolves. This research addresses the lack of a formal, automated link between high-level safety analysis and the actual implementation of safety-critical software.
Methodology
The proposed framework integrates formal safety requirements directly into the MDD lifecycle through a two-step approach:
1. Component-Level Identification
Instead of defining requirements for the entire system, which is often too complex, the focus is shifted to the "actor" level (individual software components). Two key concepts are introduced:
- Safety Requirements: Specifications of what a component needs from its inputs to function safely.
- Safety Assurances: Guarantees of what a component provides at its outputs.
2. Formal Fault Classes and System Composition
To make these requirements machine-readable, the authors extend McDermid’s classic fault classes to include concrete numerical thresholds (e.g., specific timing or value errors) and "multi-errors" across time steps. By linking the output of one actor to the input of another, the system can detect "safety gaps." If an actor requires a stricter safety level than its predecessor assures, the framework automatically selects and generates a hardware-aware fault detection mechanism to bridge the gap.
Key Insights
- Requirements as Code: The core innovation is treating safety requirements as a formal basis for code generation rather than just documentation. Formally describing a fault allows for the formal description and generation of the mechanism needed to catch it.
- Contract-Based Design: Distinguishing between what a component needs and what it provides creates a modular safety chain. This allows components to be swapped as long as their assurances satisfy the requirements of the subsequent component.
- Hardware-Aware Safety: The approach acknowledges that software failures are often rooted in hardware issues. The framework suggests selecting safety mechanisms based on the specific hardware component where the software actor is executed.
Results and Future Work
As a conceptual proposal, this work focuses on qualitative improvements to the development process. The method provides a continuous formal chain from safety analysis to the final executable, moving the burden of selecting safety mechanisms from manual expert intervention to automated generation.
Future work will address the following challenges:
- Redundancy Optimization: Automated generation may lead to redundant safety checks. The authors plan to develop optimization strategies to prune these based on application-specific needs, such as minimizing energy consumption or runtime.
- Implementation: The framework is currently being integrated into development tools to demonstrate its efficacy in real-world safety-critical environments.
Summary updated