Planning Model Architecture and Modeling Patterns For Iso 26262 Compliance
Planning Model Architecture and Modeling Patterns For Iso 26262 Compliance
Planning Model Architecture and Modeling Patterns For Iso 26262 Compliance
2
Challenges with ISO 26262
▪ Can we use AUTOSAR and meet ISO 26262 at the same time?
3
ISO 26262-6:2018 notes Simulink and Stateflow as Suitable for
Software Architecture, Design and as basis for Code Generation
Table 2 Software Architecture Design Notations has similar suitability wording for use of Simulink and Stateflow
4
MathWorks Support
5
MathWorks Support
▪ Process establishment
– Development Processes
– Verification process
– Gap analysis
6
Certification Kit and Consulting Services
Mapping
High-Level
Workflow
▪ Certification Kit maps to ISO
26262.
– Focuses on high level workflow
– Allows user to decide
implementation details
▪ MathWorks Consulting Services
– Focuses on customizing implementation
Implementation
– Provide recommendations
MathWorks Consulting Services
7
Certification Kit and Consulting Services
Implementation
MathWorks Consulting Services
8
Best Practices
▪ Architecture
▪ Signal Routing
▪ Data Definition
▪ Code Generation Configuration
9
Use Model Metrics to Monitor Unit Complexity
Architecture
Model Metric Dashboard
▪ Issues:
– Model verification gets increasingly difficult
– Unable to efficiently achieve unit coverage
▪ Best Practice:
– Define complexity metrics
▪ Number of I/O
▪ Reusable libraries
▪ Cyclomatic complexity (<=30)*
▪ Number of elements (<500)*
▪ …etc.
– Monitor coverage metrics using Continuous
Integration tools.
▪ Reference:
– *Paper: Model Quality Objectives
▪ Authors: Jérôme Bouquet(Renault), Stéphane Faure(Valeo), Florent Fève(Valeo), Ursula Garcia(Bosch),
François Guérin(MathWorks), Thierry Hubert(PSA), Florian Levy(Renault), Stéphane Louvet(Bosch), Patrick
Munier(MathWorks), Pierre-Nicolas Paton(Delphi), Alain Spiewek(Delphi), and Yves Touzeau(Renault)
10
Use Model Reference for Unit Level Model
Simulink Architecture
▪ Issues:
– Poor modularity of algorithm (reuse)
– Unable to preform unit level testing
– Configuration Management difficulties
– Unable to achieve Freedom from
Interference
Model block as
▪ Best Practice Unit containers
– Use Model Reference for unit level
model
– Group units to form functional hierarchy
Group Units with
(features/components) with virtual Subsystem block
Subsystems
11
Split ASIL and QM Levels at Top Level of Control Model
Simulink Architecture
▪ Issues:
– Difficulty in achieving Freedom from
Interference
– Complexity in code integration
▪ Best Practice:
– Code generation should be done at as high as
level as possible.
12
Data Protection Between ASIL and QM Levels
Code Generation Configuration
▪ Issues:
– How to provide signal protection between ASIL and
QM functions?
▪ Best Practice
– Use Get/Set storage class for signals between ASIL
and QM levels
13
Data Protection Between ASIL and QM Levels
Code Generation Configuration
Get/Set Storage Class
▪ Issues:
– How to provide signal protection between ASIL and
QM functions?
▪ Best Practice
– Use Get/Set storage class for signals between ASIL
and QM levels
14
Design Bus Hierarchy
Signal Routing
▪ Issues:
– Inefficient bus segmentation
– Inconsistent bus grouping by
developers
– Modeling difficulty from splitting and
recreating bus signals
▪ Best Practice:
– Bus hierarchy should be designed as a
function of ASIL levels, QM, and rates at
a minimum.
15
AUTOSAR Implications
▪ Paper
– Please request via www.mathworks.com/services/consulting/contact.html
17