Best Practices for Model Based Design v3
-
Upload
ahmed58seribegawan -
Category
Documents
-
view
21 -
download
0
Transcript of Best Practices for Model Based Design v3
-
5/28/2018 Best Practices for Model Based Design v3
1/27
1
2014 The MathWorks, Inc.
Best Practices for Model Based Design
(MBD)
By Jonathan Friedman, Ph.D.
Industry Marketing Manager
MathWorks
-
5/28/2018 Best Practices for Model Based Design v3
2/27
2
-
5/28/2018 Best Practices for Model Based Design v3
3/27
3
Mechanical
Components
MCAD/
MCAE
Electrical
Components
EDA
Traditional Workflow
INTEGRATION AND TEST
SPECIFICATIONS
DESIGN
RESEARCH REQUIREMENTS
Embedded
Software
C/C++
IMPLEMENTATION
Requirement Documents
Difficult to analyze
Difficult to manage as they change
Paper Specifications
Easy to misinterpret
Difficult to integrate with design
Physical Prototypes
Incomplete and expensive
Prevents rapid iteration
No system-level testing
Manual Coding
Time consuming
Introduces defects and variance
Difficult to reuse
Traditional Testing
Design and integration issues found late
Difficult to feed insights back into design
process
Traceability
Embeddable
Algorithms
Algorithm
Design
Hardware
VHDL,
Verilog
-
5/28/2018 Best Practices for Model Based Design v3
4/27
4
INTEGRATION
IMPLEMENTATION
DESIGN
Environment Models
Physical Components
Algorithms
Other CADTools
VHDL, VerilogC, C++
TES
T&
VERIFICATION
RESEARCH REQUIREMENTS
Other
hardwareMCU DSP FPGA ASIC
Model-Based Design Workflow
-
5/28/2018 Best Practices for Model Based Design v3
5/27
5
-
5/28/2018 Best Practices for Model Based Design v3
6/27
6Simulation Real-Time Testing Production
Adoption of Model-Based Design
Graphical
Specs
Rapid
Prototyping
Graphical
Programming
Closed-loop
Simulation
Hardware-
In-Loop
Simulationbased
Development
VirtualVerification &
Validation
SystemValidation
Fully LeveragedModel-Based
Design
-
5/28/2018 Best Practices for Model Based Design v3
7/277
-
5/28/2018 Best Practices for Model Based Design v3
8/278
Have metrics that identify the weak points in your current process
Attack your greatest weaknesses first
Monitor your Return on Investment (ROI)
Example 1:
Missed release dates
Example 2:
Excessive software defects
Example 3:
Prototype hardware availability
Best Practice # 1: Ident i fy the problem you
are try ing to so lve
-
5/28/2018 Best Practices for Model Based Design v3
9/279
Lear Delivers Quality Body Control Electronics
Faster Using Model-Based Design
We adopted Model-Based Design not
only to deliver better-quality systems
faster, but because we believe it is a
smart choice. Recently we won a
project that several of our competitorsdeclined to bid on because of its tight
time constraints. Using Model-Based
Design, we met the original delivery
date with no problem."
Jason Bauman
Lear Corporation
Link to user story
Lear automotive body electronic
control unit.
ChallengeDesign, verify, and implement high-quality automotive
body control electronics
Solution
Use Model-Based Design to enable early and continuousverification via simulation, SIL, and HIL testing
Results Requirements validated early. Over 95% of issues
fixed before implementation, versus 30% previously
Development time cut by 40%. 700,000 lines of code
generated and test cases reused throughout thedevelopment cycle
Zero warranty issues reported
http://www.mathworks.com/company/user_stories/Lear-Delivers-Quality-Body-Control-Electronics-Faster-Using-Model-Based-Design.htmlhttp://www.mathworks.com/company/user_stories/Lear-Delivers-Quality-Body-Control-Electronics-Faster-Using-Model-Based-Design.html -
5/28/2018 Best Practices for Model Based Design v3
10/2710
Overcome startup costs and resistance to change
ROI increases with multi-use models
Example 1:
Validate requirements through
simulation and add new functionalitythrough rapid prototyping
Example 2:
System specification and
automatic code generation
Example 3:
Development time reduced and
additional design complexity
without staff increases
Best Practice # 2: Use models for at least two thing s
Rule of Two
-
5/28/2018 Best Practices for Model Based Design v3
11/2711
Airbus Develops Fuel Management System
for the A380 Using Model-Based Design
Challenge
Develop a controller for the Airbus A380 fuel management
system
Solution
Use MATLAB, Simulink, and Stateflow for Model-BasedDesign to model and simulate the control logic,
communicate the functional specification, and accelerate
the development of simulators
Results
Months of development time eliminated
Models reused throughout development
Additional complexity handled without staff increases
Model-Based Design gave usadvanced visibility into the
functional design of the system.
We also completed requirements
validation earlier than was
previously possible and simulated
multiple simultaneous component
failures, so we know what will
happen and have confidence that
the control logic will manage it.
Christopher Slack
Airbus
Link to user story
Airbus A380, the worlds largest
commercial aircraft.
http://www.mathworks.com/company/user_stories/Airbus-Develops-Fuel-Management-System-for-the-A380-Using-Model-Based-Design.htmlhttp://www.mathworks.com/company/user_stories/Airbus-Develops-Fuel-Management-System-for-the-A380-Using-Model-Based-Design.htmlhttp://www.mathworks.com/company/user_stories/Airbus-Develops-Fuel-Management-System-for-the-A380-Using-Model-Based-Design.htmlhttp://www.mathworks.com/company/user_stories/Airbus-Develops-Fuel-Management-System-for-the-A380-Using-Model-Based-Design.html -
5/28/2018 Best Practices for Model Based Design v3
12/2712
Best Practice # 3: Use the models for product ion code
generat ion
To ensure success
you must connect
models to real system
Enable a culture ofmodeling by removing
temptation and option
to write code
Executable code iswhat makes machines
move and generates
profits
-
5/28/2018 Best Practices for Model Based Design v3
13/2713
Toyota Uses MathWorks Tools to Increase
Quality, Reduce Costs, and Speed Time to
Market of New Vehicles
ChallengeSpeed up design, increase quality, and reduce R&D
costs by finding an alternative to traditional design methods
SolutionUse MathWorks tools for control design to prototype,
model, test, and refine control strategies in an integrated
design environment
Results Deliver a better product to market faster and at a
lower cost Reduce time to embedded code
Forge a pathway to innovation
MATLAB, Simulink, and
Stateflow have become the de
factostandard at Toyota for
simulation, data processing, and
controls design. It would be
impossible to list all of the
applications for these tools at
Toyota.
Akira Ohata
Toyota
Link to user story
http://www.mathworks.com/company/user_stories/MathWorks-Tools-Help-Toyota-Design-for-the-Future.htmlhttp://www.mathworks.com/company/user_stories/MathWorks-Tools-Help-Toyota-Design-for-the-Future.html -
5/28/2018 Best Practices for Model Based Design v3
14/2714
Best Practice # 4: Treat models as the sole sou rce of
t ru th
Remove the
temptation to hack
code by hand late in
a program when
under time pressure
Prevent divergence
of code and model
-
5/28/2018 Best Practices for Model Based Design v3
15/2715
Eurocopter Uses Model-Based Design
to Accelerate Development of DO-178B
Certified Systems
ChallengeSpeed up DO-178 development cycle while stabilizing system
and software definitions by using models for validation and
reusing the data for verification
Solution
Develop Plan for Software Aspects of Certification (PSAC)
consistent with latest recommendations from EuropeanAviation Safety Agency (EASA) for DO-178B, taking into
account DO-178C concepts for Model-Based Design
Create models in Simulink for software architecture,
high-level requirements, and low-level requirements
Generate flight source code using Embedded Coder
Results Early requirements validation and execution of
simulation test cases with Simulink
Seamless object code verification by reusing simulation
test cases
EASA approval for the software certification with use of
code generated by Embedded Coder
Using Simulink for systems and
software development has
provided efficient means to
validate the requirements and
design the system and saves
time on verification and
validation.
Ronald Blanrue
Eurocopter GroupAvionic System
Avionic Certification/EADS Expert
EC130 Air Conditioning Software developed
with Embedded Coder.
-
5/28/2018 Best Practices for Model Based Design v3
16/2716
Best Practice # 5: Use migrat ion to Model-Based
Design as a learning oppo rtuni ty
Learn what really happens in the current system
Solicit help on process and tools, not on translation
Focus on value-added
features first
Conversion is atremendous learning
and quality
improvement
opportunity
True even in smallcode footprints
and efficient
organizations
-
5/28/2018 Best Practices for Model Based Design v3
17/2717
Best Practice # 6: Focus on design, not on coding
Software design is still taking place
Software engineers establish and manage the code generation
infrastructure
Model refinement
continues after thecontrols engineers
finish their work and
before model is ready
to generate code,
especially in a fixed-
point implementation
Legacy code must be
integrated and
maintained
-
5/28/2018 Best Practices for Model Based Design v3
18/2718
FLIR Accelerates Development of Thermal
Imaging FPGA
ChallengeAccelerate the implementation of advanced thermal
imaging filters and algorithms on FPGA hardware
Solution
Use MATLAB to develop, simulate, and evaluatealgorithms, and use HDL Coder to implement the best
algorithms on FPGAs
Results Time from concept to field-testable prototype
reduced by 60%
Enhancements completed in hours, not weeks
Code reuse increased from zero to 30%
With MATLAB and HDL Coder we are
much more responsive to
marketplace needs. We now embrace
change, because we can take a new
idea to a real-time-capable hardware
prototype in just a few weeks. There
is more joy in engineering, so weve
increased job satisfaction as well as
customer satisfaction.
Nicholas Hogasten
FLIR Systems
Link to user story
Raw image (left) and image after applying filter developed
with HDL Coder (right).
http://www.mathworks.com/company/user_stories/FLIR-Accelerates-Development-of-Thermal-Imaging-FPGA.htmlhttp://www.mathworks.com/company/user_stories/FLIR-Accelerates-Development-of-Thermal-Imaging-FPGA.htmlhttp://www.mathworks.com/company/user_stories/FLIR-Accelerates-Development-of-Thermal-Imaging-FPGA.html -
5/28/2018 Best Practices for Model Based Design v3
19/2719
Best Practice # 7: Integrate the development
process
Develop a comprehensive plan
- Training
- Modeling Style
- Enforcement.
- Supporting Tools
- Configuration Management
- Requirements Management
- Process
Develop new metrics
-
5/28/2018 Best Practices for Model Based Design v3
20/2720
GM Standardizes on Model-Based Design
for Hybrid Powertrain Development
ChallengeDevelop new hybrid powertrain technology for
GM vehicles
SolutionStandardize on MathWorks tools and Model-Based
Design for control systems design and production
code generation
Results Aggressive delivery date met
Worldwide collaboration and communicationenabled
Designs reused across product lines
The Two-Mode Hybrid powertrain
took Model-Based Design to a new
level within GM. This project
provided the confidence and
experience we needed to apply
MathWorks tools for Model-Based
Design on other large-scale global
engineering programs."
Kent Helfrich
General Motors
Link to user story
Badge for GMs Two-Mode Hybrid
powertrain, which is used in vehicles
across several product lines.
http://www.mathworks.com/company/user_stories/GM-Standardizes-on-Model-Based-Design-for-Hybrid-Powertrain-Development.htmlhttp://www.mathworks.com/company/user_stories/GM-Standardizes-on-Model-Based-Design-for-Hybrid-Powertrain-Development.html -
5/28/2018 Best Practices for Model Based Design v3
21/2721
Assign priority Assign people
Acquire tools,
equipment, and
services
Sometimes act as a
consensus builder
Sometimes act as a
benevolent dictator
Best Practice # 8: Designate a champion who has
inf luence and budgetary contro l
-
5/28/2018 Best Practices for Model Based Design v3
22/2722
Lockheed Martin Joint Strike Fighter
THREE AIRCRAFT, A SINGLE MODEL ,
AND 80% COMMON CODE.
THATS MODEL-BASED DESIGN.
To develop the unprecedented three-
versi on F-35, engin eers at Loc kh eedMart in created a common sys tem
mo del to sim ulate the avionics,
propu lsion, and other systems and
generate final f l ight cod e.
The result : reusable designs, rapid
implem entation, and glob al teamw ork.
To learn mo re, vis it
mathworks.com/mbd
Accelerating the pace of engineering and
science
-
5/28/2018 Best Practices for Model Based Design v3
23/27
23
Best Practice # 9: Have a long-term vis ion
Good things come to those who have a vision and work hard to
achieve it
The full transition from hand-coded, textual languages takes 2-3
years to fully implement in a
production organization
Research organizations often have fewer constraints and less
legacy code, and can move faster
-
5/28/2018 Best Practices for Model Based Design v3
24/27
24
Best Practice # 10 : Partner w i th you r tool supp l iers
Suppliers bring the experience of working with entire industries and
can help you avoid common pitfalls, accelerate your ROI breakevenpoint and quickly achieve productivity and quality goals
Effort
Time
Do it yourself
Leverage the suppliers experience
-
5/28/2018 Best Practices for Model Based Design v3
25/27
25
Mazda Speeds Next-Generation Engine
Development of SKYACTIV TECHNOLOGY
ChallengeOptimize the efficiency of SKYACTIV engines while
meeting strict emissions standards worldwide
Solution
Use Simulink and Model-Based Calibration Toolbox toaccelerate the generation and development of optimal
calibration settings, ECU-embeddable models, and
engine models for HIL simulation
Results Engine calibration workload minimized
Model complexity cut in half
Model accuracy improved
Model-Based Calibration Toolbox not
only enabled us to identify optimal
calibration settings for the SKYACTIV-
D engine, it greatly reduced the
engineering effort required. The
models it generated accelerated
control logic development, provided
valuable insights, and made it easy to
try new ideas.
Shingo Harada
Mazda
Link to user story
Mazdas SKYACTIV-D
engine.
http://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industryhttp://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industryhttp://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industry -
5/28/2018 Best Practices for Model Based Design v3
26/27
26
Mazda Speeds Next-Generation Engine
Development of SKYACTIV TECHNOLOGY
ChallengeOptimize the efficiency of SKYACTIV engines while
meeting strict emissions standards worldwide
Solution
Use Simulink and Model-Based Calibration Toolbox toaccelerate the generation and development of optimal
calibration settings, ECU-embeddable models, and
engine models for HIL simulation
Results Engine calibration workload minimized
Model complexity cut in half
Model accuracy improved
Model-Based Calibration Toolbox not
only enabled us to identify optimal
calibration settings for the SKYACTIV-
D engine, it greatly reduced the
engineering effort required. The
models it generated accelerated
control logic development, provided
valuable insights, and made it easy to
try new ideas.
Shingo Harada
Mazda
Link to user story
Mazdas SKYACTIV-D
engine.
http://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industryhttp://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industryhttp://www.mathworks.com/company/user_stories/mazda-speeds-next-generation-engine-development-of-skyactiv-technology.html?by=industry -
5/28/2018 Best Practices for Model Based Design v3
27/27
27
Best Practices for Establishing a Model-Based
Design Culture
1. Identify the problem you are trying to
solve2. Use models for at least two things
Rule of Two3. Use models for production code
generation
4. Treat models as the sole source of truth
5. Use migration as a learning opportunity
6. Focus on design, not on coding
7. Integrate the development process
8. Designate champions with influence,
expertise, and budgetary control9. Have a long-term vision
10. Partner with your tool suppliers
http://www.mathworks.com/tagteam/40538
_SAE-2007-01-0777-Best-Practices-for-
MBD-Culture.pdf
http://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdfhttp://www.mathworks.com/tagteam/40538_SAE-2007-01-0777-Best-Practices-for-MBD-Culture.pdf