Model-Based Design For Safety-Critical Code - MathWorks

9m ago
7 Views
1 Downloads
848.80 KB
33 Pages
Last View : 11d ago
Last Download : 3m ago
Upload by : Oscar Steel
Transcription

Bill Potter Technical Marketing April 17, 2008 2008 The MathWorks, Inc. Model-Based Design for Safety-Critical and Mission-Critical Applications

Safety-Critical Model-Based Design Workflow Validate Verify: SystemTest Embedded IDE Link XXX Requirements Trace: RMI Simulink & Stateflow Conformance: Model Advisor Model Trace: Model/Code Trace Report Real-Time Workshop Embedded Coder Verify: SystemTest SLDV Property Proving Model Coverage Conformance: PolySpace Products Source Code Verify: SLDV Test Generation Embedded IDE Link XXX Embedded IDE Object Code 2

Requirements Process for Model-Based Design Functional, operational, and safety requirements Exist one level above the model Models trace to requirements Requirements validation - complete and correct Simulation is a validation technique Traceability can identify incomplete requirements Model coverage can identify incomplete requirements Requirements based test cases Test cases trace to requirements Validate Requirements 3

Simulation example – controller and plant 4

Requirements trace example – view from DOORS to Simulink 5

Requirements trace example – view from Simulink to DOORS 6

Requirements based test trace example – view from Simulink Signal Builder block to DOORS 7

Model coverage report example 8

Requirements Process take-aways Early requirements validation Eliminates rework typically seen at integration on projects with poor requirements Early test case development Validated requirements are complete and verifiable which results in well defined test cases Requirements management and traceability Requirements management interfaces provide traceability for design and test cases Validate Requirements 9

Design Process for Model-Based Design Model-Based Design Create the design - Simulink and Stateflow Modular design for teams - Model Reference Model architecture/regression analysis - Model Dependency Viewer Documented design - Simulink Report Generator Requirements traceability using Simulink Verification and Validation Design conforms to standards using Model Advisor Requirements Trace: RMI Simulink & Stateflow Model Conformance: Model Advisor 10

Example detailed design including model reference and subsystems Top Model Subsystem Reference Model 11

Model dependency viewer 12

Example Model Advisor report 13

Design Verification for Model-Based Design Requirements based test cases Automated testing using SystemTest and Simulink Verification and Validation Traceability using Simulink Verification and Validation Robustness testing and analysis Built in Simulink run-time diagnostics Formal proofs using Simulink Design Verifier Coverage Analysis Verify structural coverage of model Verify data coverage of model Requirements Simulink & Stateflow Verify: SystemTest SLDV Property Proving Model Coverage Model 14

SystemTest for requirements based testing 15

SystemTest – example report Data Plotting and expected results comparisons Summary of results 16

Signal Builder and Assertion Blocks 17

Model coverage report example – signal ranges 18

Simulink Design Verifier – Coverage Test Model Test Report Generated Test Cases 19

Simulink Design Verifier – Objective Test Model with Constraints and Objectives Test Report Generated Test Cases 20

Simulink Design Verifier – Property Proving Model with Assumption and Objective Report Property to be proven 21

Design Process take-aways Modular reusable implementations Platform independent design Scalable to large teams Consistent and compliant implementations Common design language Automated verification of standards compliance Efficient verification process Develop verification procedures in parallel with design Coverage analysis early in the process Automated testing and analysis Requirements Trace: RMI Simulink & Stateflow Model Conformance: Model Advisor Verify: SystemTest SLDV Property Proving Model Coverage 22

Coding Process for Model-Based Design Automatic code generation Real-Time Workshop Embedded Coder Traceability HTML Code Traceability Report Source code verification Complies with standards using PolySpace MISRA-C checker Accurate, consistent and robust using PolySpace Model verifier Trace: Model/Code Trace Report Real-Time Workshop Embedded coder Conformance: PolySpace Products Source Code 23

Incrementally Generate Code Incremental code generation is supported via Model Reference dependent models rebuilt When a model is changed, only models depending on it are subject to regeneration of their code model changed and rebuilt Reduces application build times and ensure stability of a project’s code Degree of dependency checking is configurable 24

Add Links to Requirements Requirements appear in the code 25

Code to Model Trace Report 26

Simulink Integration with PolySpace Products Input1 Entries varying from 500 to 500 K1 and K2 Constants Can be tuned from -297 to 303 Math operations Divide, add, min/max, product, substract, sum Lookup tables Maps, surfaces, algorithms, extrapolations Adjusted, tuned 27

See results in the model Change the model Generate the production code Run PolySpace software PolySpace detected an error here (after having analyzed the generated code) 28

Coding Process takeaways Reusable and platform independent source code Traceability MISRA-C compliance Static verification and analysis Model Trace: Model/Code Trace Report Real-Time Workshop Embedded coder Conformance: PolySpace Products Source Code 29

Integration Process for Model-Based Design Executable object code generation ANSI or ISO C or C compatible compiler Run-time libraries provided Executable object code verification Test generation using Simulink Design Verifier Capability to build interface for Processor-In-the-Loop (PIL) testing Analyze code coverage during PIL Requirements Verify: SystemTest Analyze execution time during PIL Embedded IDE Link XXX Model Analyze stack PIL Source Code Embedded IDE Object Code Verify: SLDV Test Generation Embedded IDE Link XXX 30

Processor-in-the-Loop (PIL) Verification - Execute Generated Code on Target Hardware Simulink Code Generation Algorithm (Software Component) Plant Model Execution on host and target non-real-time Communication via one of data link e.g. serial, CAN, TCP/IP debugger integration with MATLAB Embedded Target 31

Integration Process Takeaways Integration with multiple development environments Test cases and harnesses generated automatically Efficient processor in-the-loop test capability Requirements Verify: SystemTest Embedded IDE Link XXX Model Source Code Embedded IDE Object Code Verify: SLDV Test Generation Embedded IDE Link XXX 32

Wrap-up Tools to support the entire safety critical development process Participation on SC-205/WG-71 committee for DO-178C Safety-Critical/DO-178B guideline document Available to licensed customers with Real-Time Workshop Embedded Coder Contact Bill Potter (bill.potter@mathworks.com) or Tom Erkkinen (tom.erkkinen@mathworks.com) 33

3 Requirements Process for Model-Based Design Functional, operational, and safety requirements Exist one level above the model Models trace to requirements Requirements validation - complete and correct Simulation is a validation technique Traceability can identify incomplete requirements Model coverage can identify incomplete requirements

Related Documents:

Bruksanvisning för bilstereo . Bruksanvisning for bilstereo . Instrukcja obsługi samochodowego odtwarzacza stereo . Operating Instructions for Car Stereo . 610-104 . SV . Bruksanvisning i original

10 tips och tricks för att lyckas med ert sap-projekt 20 SAPSANYTT 2/2015 De flesta projektledare känner säkert till Cobb’s paradox. Martin Cobb verkade som CIO för sekretariatet för Treasury Board of Canada 1995 då han ställde frågan

service i Norge och Finland drivs inom ramen för ett enskilt företag (NRK. 1 och Yleisradio), fin ns det i Sverige tre: Ett för tv (Sveriges Television , SVT ), ett för radio (Sveriges Radio , SR ) och ett för utbildnings program (Sveriges Utbildningsradio, UR, vilket till följd av sin begränsade storlek inte återfinns bland de 25 största

Hotell För hotell anges de tre klasserna A/B, C och D. Det betyder att den "normala" standarden C är acceptabel men att motiven för en högre standard är starka. Ljudklass C motsvarar de tidigare normkraven för hotell, ljudklass A/B motsvarar kraven för moderna hotell med hög standard och ljudklass D kan användas vid

LÄS NOGGRANT FÖLJANDE VILLKOR FÖR APPLE DEVELOPER PROGRAM LICENCE . Apple Developer Program License Agreement Syfte Du vill använda Apple-mjukvara (enligt definitionen nedan) för att utveckla en eller flera Applikationer (enligt definitionen nedan) för Apple-märkta produkter. . Applikationer som utvecklas för iOS-produkter, Apple .

och krav. Maskinerna skriver ut upp till fyra tum breda etiketter med direkt termoteknik och termotransferteknik och är lämpliga för en lång rad användningsområden på vertikala marknader. TD-seriens professionella etikettskrivare för . skrivbordet. Brothers nya avancerade 4-tums etikettskrivare för skrivbordet är effektiva och enkla att

Den kanadensiska språkvetaren Jim Cummins har visat i sin forskning från år 1979 att det kan ta 1 till 3 år för att lära sig ett vardagsspråk och mellan 5 till 7 år för att behärska ett akademiskt språk.4 Han införde två begrepp för att beskriva elevernas språkliga kompetens: BI

**Godkänd av MAN för upp till 120 000 km och Mercedes Benz, Volvo och Renault för upp till 100 000 km i enlighet med deras specifikationer. Faktiskt oljebyte beror på motortyp, körförhållanden, servicehistorik, OBD och bränslekvalitet. Se alltid tillverkarens instruktionsbok. Art.Nr. 159CAC Art.Nr. 159CAA Art.Nr. 159CAB Art.Nr. 217B1B