Verification, Validation and Test in Model Based Design Manohar Reddy

Similar documents
Simulation-based Test Management and Automation Sang-Ho Yoon Senior Application Engineer

Testing, Validating, and Verifying with Model-Based Design Phil Rottier

Verification and Validation of Models for Embedded Software Development Prashant Hegde MathWorks India Pvt. Ltd.

Automating Best Practices to Improve Design Quality

Developing AUTOSAR Compliant Embedded Software Senior Application Engineer Sang-Ho Yoon

Model-Based Design for High Integrity Software Development Mike Anthony Senior Application Engineer The MathWorks, Inc.

From Design to Production

DRYING CONTROL LOGIC DEVELOPMENT USING MODEL BASED DESIGN

Verification and Validation of High-Integrity Systems

Automatización de Métodos y Procesos para Mejorar la Calidad del Diseño

Automating Best Practices to Improve Design Quality

Verification, Validation, and Test with Model-Based Design

Applications of Program analysis in Model-Based Design

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

Guidelines for deployment of MathWorks R2010a toolset within a DO-178B-compliant process

Simulink 를이용한 효율적인레거시코드 검증방안

Increasing Design Confidence Model and Code Verification

Automated Requirements-Based Testing

Team-Based Collaboration in Simulink Chris Fillyaw Application Engineer Detroit, MI

Verification and Test with Model-Based Design

Model-Based Design: Design with Simulation in Simulink

Verification and Validation Introducing Simulink Design Verifier

Simulink 모델과 C/C++ 코드에대한매스웍스의정형검증툴소개 The MathWorks, Inc. 1

What s New with the MATLAB and Simulink Product Families. Marta Wilczkowiak & Coorous Mohtadi Application Engineering Group

Utilisation des Méthodes Formelles Sur le code et sur les modèles

Implementation and Verification Daniel MARTINS Application Engineer MathWorks

Rapid Control Prototyping with MATLAB/Simulink Case Study: Ball-on-Wheel

2015 The MathWorks, Inc. 1

Leveraging Formal Methods Based Software Verification to Prove Code Quality & Achieve MISRA compliance

What s New in Simulink Release R2016a and R2016b

Jay Abraham 1 MathWorks, Natick, MA, 01760

A Model-Based Reference Workflow for the Development of Safety-Related Software

Testing Framework with Simulink Test

Guido Sandmann MathWorks GmbH. Michael Seibt Mentor Graphics GmbH ABSTRACT INTRODUCTION - WORKFLOW OVERVIEW

Automatic Code Generation Technology Adoption Lessons Learned from Commercial Vehicle Case Studies

WHITE PAPER. 10 Reasons to Use Static Analysis for Embedded Software Development

Testing and Validation of Simulink Models with Reactis

What s New in MATLAB & Simulink. Prashant Rao Technical Manager MathWorks India

Introducing Simulink Release 2012b for Control System Development Mark Walker MathWorks

Production Code Generation and Verification for Industry Standards Sang-Ho Yoon Senior Application Engineer

Accelerating Simulink Optimization, Code Generation & Test Automation Through Parallelization

Increasing Embedded Software Confidence Model and Code Verification. Daniel Martins Application Engineer MathWorks

Leveraging Formal Methods for Verifying Models and Embedded Code Prashant Mathapati Application Engineering Group

Real-Time Testing in a Modern, Agile Development Workflow

What's new in MATLAB and Simulink for Model-Based Design

Weapon System Fault Detection, Isolation, and Analysis using Stateflow

Introduction to Control Systems Design

Intro to Proving Absence of Errors in C/C++ Code

What s New in Simulink in R2015b and R2016a

Testing Simulink Models

What s New in MATLAB and Simulink

Effective Verification Strategies for Distributed Body Control Applications based on Plant Modeling and Test Case Reuse

Simulink Verification and Validation

Integrated Workflow to Implement Embedded Software and FPGA Designs on the Xilinx Zynq Platform Puneet Kumar Senior Team Lead - SPC

Volvo Car Group Jonn Lantz Agile by Models

정형기법을활용한 AUTOSAR SWC 의구현확인및정적분석

Hardware and Software Co-Design for Motor Control Applications

Baseline Testing Services. Whitepaper Vx.x

Making the Most of your MATLAB Models to Improve Verification

Modelling, Simulation, and Real-Time Testing for Model-Based Design GianCarlo Pacitti Application Engineer MathWorks

Generating Industry Standards Production C Code Using Embedded Coder

Designing and Analysing Power Electronics Systems Using Simscape and SimPowerSystems

What s New in MATLAB and Simulink Prashant Rao Technical Manager MathWorks India

Team-Based Collaboration in Simulink

Tools for Formally Reasoning about Systems. June Prepared by Lucas Wagner

How Real-Time Testing Improves the Design of a PMSM Controller

Reducing the cost of FPGA/ASIC Verification with MATLAB and Simulink

Accelerating FPGA/ASIC Design and Verification

Introducing Simulink R2012b for Signal Processing & Communications Graham Reith Senior Team Leader, UK Application Engineering

Final Presentation AUTOCOGEQ GMV, 2017 Property of GMV All rights reserved UNCLASSIFIED INFORMATION

Model-Based Design for effective HW/SW Co-Design Alexander Schreiber Senior Application Engineer MathWorks, Germany

Testen zur Absicherung automatisierter Transformationsschritte im Model-Based Design

Standardkonforme Absicherung mit Model-Based Design

MATLAB/Simulink 기반의프로그래머블 SoC 설계및검증

Development and Deployment of ECU based Control Systems through MBD. Imperative role of Model based design in System Engineering

Testing TargetLink. Models and C Code with Reactis

Effective Team Collaboration with Simulink

Simulator in the-loop Environment for Autocode Verification

Simulink for AUTOSAR: Best Practices

Reuse MATLAB Functions and Simulink Models in UVM Environments with Automatic SystemVerilog DPI Component Generation

Architecture-driven development of Climate Control Software LMS Imagine.Lab Embedded Software Designer Siemens DF PL

Ensuring quality for ADAS applications with a model-based approach

Using Cost Effective Distributed HIL for Rapid Prototyping

Software Engineering 2 A practical course in software engineering. Ekkart Kindler

(See related materials in textbook.) CSE 435: Software Engineering (slides adapted from Ghezzi et al & Stirewalt

ISO compliant verification of functional requirements in the model-based software development process

ISO Compliant Automatic Requirements-Based Testing for TargetLink

On the Generation of Test Cases for Embedded Software in Avionics or Overview of CESAR

Hardware and Software Co-Design for Motor Control Applications

What s New in MATLAB and Simulink

Implementing MATLAB Algorithms in FPGAs and ASICs By Alexander Schreiber Senior Application Engineer MathWorks

Simulink as Your Enterprise Simulation Platform

Integrating Mechanical Design and Multidomain Simulation with Simscape

Model-Based Design for Safety Critical Automotive Applications

SCADE. SCADE Suite Tailored for Critical Applications EMBEDDED SOFTWARE

Simulation-Guided Verification & Validation for Large-Scale Automotive Control Systems

1 VehicleMode. Systemwdesign. Model-Based Testing with Simulink Design Verifier

Extending Model-Based Design for HW/SW Design and Verification in MPSoCs Jim Tung MathWorks Fellow

Simulink to Embedded Hardware Paul Peeling MathWorks

Graphical Programming Languages in Model-Based Design Vijay Raghavan Director of Engineering Design Automation

Transcription:

Verification, Validation and Test in Model Based Design Manohar Reddy 2015 The MathWorks, Inc. 1

Continuous Test & Verification Productivity + Model & Code Quality System & Component Dynamic testing & Static analysis Needs verification! continuous 2

Multi-Mode Hybrid Electric Vehicle with Model Based Design EV Mode Serial HEV Mode Engine Mode Higuchi, N., Sunaga, Y., Tanaka, M., Shimada, H.: Development of a New Two-Motor Plug-In Hybrid System, SAE 2013-01-1476 (2013) 3

Multi-Mode Hybrid Electric Vehicle Define Requirements Complete Integration &Test System-Level Specification System-Level Integration & Test Battery Engine Energy Management Subsystem Design Simulink Plant Model Subsystem Integration & Test Failure Production C-Code Subsystem Implementation 4

Continuous Test and Verification Framework Repeat Slice Reproduce the failure at the simulation level Isolate the problematic behavior Productivity + Quality Fix Fix and Perform Unit Testing Check Check for further design errors needs verification! Test Test Systematically and Test Completely continuous 5

Reproduce the Failure in Simulation Repeat Confirm the problem In the Lab/Desktop Simulation Slice Fix Check Test 6

Failure Report Drive cycle Reproduce Failure 7

Simulation Environment Controller Plant 8

Modeling the Test Drive cycle Controller Plant 9

Modeling the Test Safety Property Engine RPM must remain within operating bounds limits Controller Plant 10

Battery State of Charge Initial state of charge? Sweep from 100% to 50% Controller Plant 11

12

Model Slicing: Isolate the problematic behavior Repeat Simulation Scenario Isolate the problem Slice Fix Check Test 13

Challenge of Understanding Behavior Complexity of Plant 14

Challenge of Understanding Behavior Complexity of Plant Complexity of Controller 15

Challenge of Understanding Behavior Complexity of Plant Complexity of Controller Complexity of Dynamics Turning backwards 16

Model Slicing 17

Complete Model Slicer Workflow Identify Interest Original Design Model Incorporate Changes Iterate Highlighted Model Updated Slice Model Create Slice Model Slice Model MBD Work: Simulate/Debug Formal analysis Update 18

Isolating Troubling Behavior with Model Slicer Simulation Scenario Controller Plant Model Slicer Area of Interest Stateflow Highlighting Highlight of Relevant Parts Identify Interest Original Design Model Incorporate Changes Highlighted Model Iterate Updated Slice Model Create Slice Model Slice Model MBD Work 19

Fixing the failure and Unit Testing Repeat Simulation Scenario Repeat & isolate the problem Fix faulty components Isolate Fix Check Test 20

State Synchronization Error Engine Missing Turning Transition Backwards Turning backwards Isolate and Fix 21

Unit Testing Workflow Main Model Test Harness 1. Separate 2. Reproduce Bug and Fix 4. Synchronize 3. Confirm 22

23

In-model Verification Isolate Component in Test Harness Verification Result streamed to Data Inspector In-model Verification with verify keyword 24

Check for further design errors Repeat Simulation Scenario Repeat & isolate the problem Fix faulty components Check everything Isolate Fix Check Test 25

Develop a Robust Design with Static Checking Static Analysis Capabilities Simulink Design Verifier Property Proving Design Error Detection Test Generation Model Advisor Model Metrics 26

Find Hidden Issues with Design Error Detection Transition not possible given range of u, h1, h2 U: [0,10] h1 = 15 h2 = 5 27

Demo 28

~Cond1 ~Cond2 Cond1 Cond2 29

~Cond1 Cond1 X ~Cond2 Cond2 30

Fixing-as-you go Demo 31

Prevent errors by Fixing-as-you go Edit-time checking Simulink Stateflow Modeling Standards Prohibited blocks violations Block and port name violations Customize rules to corporate standards Invalid port name Missing Default Transition Duplicate Data Store 32

Test : Systematically and Completely Repeat Simulation Scenario Repeat & isolate the problem Fix faulty components Check everything Test Systematically and Test Completely Isolate Fix Check Test 33

Test Manager Platform Systematic authoring, management, execution, and reporting of test cases Unites together a broad set of capabilities Simulink Test 34

MATLAB Script Criteria 35

Time Tolerance Value Tolerance 36

Top-It-Off Workflow 1 Run Existing Tests Aggregate Coverage 2 Simulink Design Verifier Generate Test Cases 3 Run New Tests Aggregate Coverage 37

38

Integration with Test Automation Servers Any continuous integration system that supports Test Anything Protocol (TAP) 39

Code-to-Model Verification Code Generator C Test Manager Polyspace Software-In-Loop (SIL) Dynamic Static Reuse model-based tests Equivalence testing Code Coverage 40

Equivalence Checking and Code Coverage (Software-In-Loop) 41

Justification for Code Coverage Justify 42

Continuous Test and Verification Framework helps to Reactively Reproduce the Field Issues in Simulation Proactively Prove that Implementation satisfies Requirements Repeat Reproduce the failure in simulation Check Check for design errors early Slice Isolate the problematic behavior Fix Fix and Perform Unit Testing Fix Fix and Perform Unit Testing Slice Isolate the problematic behavior to simplify debugging Check Check for further design errors Test Test Systematically and Test Completely Test Test Systematically and Test Completely Prove Prove Safety Properties/Requirements 43

Model Based Design helps to Check Fix Slice Productivity + Quality Repeat Slice Fix Test Prove Continuous Test & Verification Check Test 44

MathWorks Training Offerings http://www.mathworks.com/services/training/ 45

Speaker Details Manohar Reddy Email: Manohar.Reddy@mathworks.in Contact MathWorks India Call: 080-6632-6000 Email: info@mathworks.in 46