Model Based Design Presentation
Model Based Design Presentation
Software Development
Mike Anthony
Senior Application Engineer
MathWorks
Tucson, AZ USA
Development and V&V of the Model Development and V&V of the Code
Building a Model from Requirements Production Code Generation
– Introduction to Simulink – Creating Data Objects
– Function Prototype Control
Traceability of a Model to Requirements
– Using the Requirements Management Interface Traceability of the Generated Code to the Model
– The Requirements Report – Code-to-Model Linking
– Model-to-Code Linking
Conformance to Modeling Standards – Traceability Report & Traceability Matrix
– Using the Model Advisor
– Customizing the Model Advisor Conformance to Coding Standards & Code Verification
– Model Advisor Report – PolySpace
MISRA-C Compliance
Verification of the Model against Requirements Proving the Absence of Runtime Errors
– Requirements-Based Testing & Report Generation
– Formal Methods Verification Verification of the Source Code
– Automating Code Reviews with Simulink Code
Inspector
2
Why did we miss our deadline?
$1,000,000
Trad Dev Costs
5
Methods for Verification and Validation
Verification: Did I do the design right?
Validation: Did I do the right design?
Traceability
– Requirements to model and code
– Model to code
Modeling and Coding Standards
– Modeling standards checking
– Coding standards checking
Testing
– Model testing in simulation
– Processor In the loop
Proving
– Proving design properties
– Proving code correctness
6
Workflow Example
Validate
Requirements
Trace Verify
Conformance
Verify
Design
Trace
Conformance
Object Code
7
Workflow Example * DO-178C Qualifiable Tool
Verify
Validate EC: PIL
Simulink Report Generator
Trace Requirements PS Code Prover*
SLVNV: RMI Code Coverage
SLRG: SDD * Simulink Verify
Tool
Conformance Verify
Stateflow
SLVNV: DO-178C/DO-331 Simulink Report
SLRG: SDD *
Checks * Generator
Trace SLVNV: Model Coverage *
Model Simulink Design Verifier
Embedded Coder
Simulink Code Inspector*
Conformance Verify
Embedded Coder PS Bug Finder: EC: PIL
MISRA-C Checks* Simulink Report Generator
Abbreviations
SL: Simulink PS Code Prover*
SLVNV: Simulink Verification
and Validation
Source Code Verify Code Coverage
RMI: Requirements Simulink Code Inspector* Tool
Management Interface PS Bug Finder*
SDD: System Design
Description Compiler/IDE PS Code Prover*
SLDV: Simulink Design
Verifier
SLRG: Simulink Report Object Code
Generator
PS: Polyspace
RTE: Run-Time Error
EC: Embedded Coder
PIL: Processor-in-the-Loop 1
Model-Based Design Maturity
Modeling & Simulation Adoption
9
Septentrio Streamlines DO-178B
Certification with MATLAB and Simulink
Challenge
Obtain DO-178B certification for a GNSS-based landing
system for precision aviation applications
Solution Simulink model of part of the AiRx2 system.
Link to article
10
Eurocopter Accelerates Development
of DO-178B Certified Software with
Model-Based Design
Challenge
Speed the development, validation, and verification of The Eurocopter EC130 helicopter.
DO-178B certified helicopter flight software
Solution “We use our system design
Use Model-Based Design to model the system design model in Simulink for ARP4754 to
and software design, and to generate flight code establish stable, objective
Results requirements. We save time by
Software testing time cut by two-thirds using the model as the basis for
Requirements stabilized earlier our software design model for
Certified flight software automatically generated DO-178—from which we generate
flight code—and reusing
validation tests for software
verification.”
Ronald Blanrue
Eurocopter
Link to user story
11
Airbus Develops Fuel Management System
for the A380 Using Model-Based Design
system
Solution
Use MATLAB, Simulink, and Stateflow for Model-Based “Model-Based Design gave us
Design to model and simulate the control logic, advanced visibility into the
communicate the functional specification, and accelerate functional design of the system.
the development of simulators
We also completed requirements
Results
validation earlier than was
Months of development time eliminated
previously possible and simulated
Models reused throughout development
multiple simultaneous component
Additional complexity handled without staff increases
failures, so we know what will
happen and have confidence that
the control logic will manage it.”
Christopher Slack
Airbus
Link to user story
12
MathWorks Services & Support
13
Support and Community
14
MATLAB Central
Resources
Over 100 support engineers
– All with MS degrees (EE, ME, CS)
– Local support in North America,
Europe, and Asia
Comprehensive, product-specific Web
support resources
www.mathworks.com/support 16
Training
www.mathworks.com/training 17
Consulting
www.mathworks.com/consulting 18
Partner Program
www.mathworks.com/connections 19
We want to hear from you –
demonstrate how MathWorks products support
innovation and improve development process
within your organization
Sign up
At the registration table
Fill out form
20