Model-Based Design: Design with Simulation in Simulink

Similar documents
Model-Based Design: Generating Embedded Code for Prototyping or Production

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

What s New in Simulink in R2015b and R2016a

2015 The MathWorks, Inc. 1

MATLAB/Simulink in der Mechatronik So einfach geht s!

Reducing Design Errors in Complex State Machines using Model-Based Design

Designing and Analysing Power Electronics Systems Using Simscape and SimPowerSystems

Connecting MATLAB & Simulink with your SystemVerilog Workflow for Functional Verification

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

Introduction to Control Systems Design

Codegenerierung für Embedded Systeme leicht gemacht So geht s!

Moving MATLAB Algorithms into Complete Designs with Fixed-Point Simulation and Code Generation

Design and Verify Embedded Signal Processing Systems Using MATLAB and Simulink

Introduction to C and HDL Code Generation from MATLAB

Intro to System Generator. Objectives. After completing this module, you will be able to:

Hardware-Software Co-Design and Prototyping on SoC FPGAs Puneet Kumar Prateek Sikka Application Engineering Team

Design and Verify Embedded Signal Processing Systems Using MATLAB and Simulink

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

Model-Based Design for Altera FPGAs Using HDL Code Generation The MathWorks, Inc. 1

Making the Most of your MATLAB Models to Improve Verification

Model to Code, Made Simple and Easy Sebastien Dupertuis Application Engineer Applications Engineering Group MathWorks Switzerland June 11, 2015

Optimize DSP Designs and Code using Fixed-Point Designer

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

Accelerating Simulink Optimization, Code Generation & Test Automation Through Parallelization

Verification, Validation and Test in Model Based Design Manohar Reddy

Automating Best Practices to Improve Design Quality

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

Modeling a 4G LTE System in MATLAB

Integrating Mechanical Design and Multidomain Simulation with Simscape

Implementation and Verification Daniel MARTINS Application Engineer MathWorks

Model-Based Design for Video/Image Processing Applications

Verification and Test with Model-Based Design

Integrating Mechanical Design and Multidomain Simulation with Simscape

Accelerate FPGA Prototyping with

Designing and Targeting Video Processing Subsystems for Hardware

Accelerating FPGA/ASIC Design and Verification

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

Design and Verification of FPGA and ASIC Applications Graham Reith MathWorks

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

Turning an Automated System into an Autonomous system using Model-Based Design Autonomous Tech Conference 2018

CO SIMULATION OF GENERIC POWER CONVERTER USING MATLAB/SIMULINK AND MODELSIM

Master Class: Diseño de Sistemas Mecatrónicos

Virtuelle Inbetriebnahme und Optimierung von Robotersystemen mit Simscape The MathWorks, Inc. 1

다중센서기반자율시스템의모델설계및개발 이제훈차장 The MathWorks, Inc. 2

Hardware Implementation and Verification by Model-Based Design Workflow - Communication Models to FPGA-based Radio

Workflow for Control System Design and Implementation

DRYING CONTROL LOGIC DEVELOPMENT USING MODEL BASED DESIGN

MATLAB 에서작업한응용프로그램의공유 : App 에서부터웹서비스까지

Modeling and Verifying Mixed-Signal Designs with MATLAB and Simulink

Modelling and Simulation Made Easy with Simulink Tiffany Liang Application Engineer MathWorks

Ein Modell - viele Zielsysteme

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

Speeding up MATLAB Applications Sean de Wolski Application Engineer

[Sub Track 1-3] FPGA/ASIC 을타겟으로한알고리즘의효율적인생성방법및신기능소개

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

2015 The MathWorks, Inc. 1

Optimization and Implementation of Embedded Signal Processing Algorithms Jonas Rutström Senior Application Engineer

Integrating MATLAB Analytics into Business-Critical Applications Marta Wilczkowiak Senior Applications Engineer MathWorks

Four Best Practices for Prototyping MATLAB and Simulink Algorithms on FPGAs by Stephan van Beek, Sudhir Sharma, and Sudeepa Prakash, MathWorks

Designing and Prototyping Digital Systems on SoC FPGA The MathWorks, Inc. 1

Design and Verification of FPGA Applications

Addressing Fixed Point Design Challenges

Hardware and Software Co-Design for Motor Control Applications

Control System Design and Rapid Prototyping Using Simulink Chirag Patel Sr. Application Engineer Modeling and Simulink MathWorks India

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

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

Using Model-Based Design to Accelerate FPGA Development for Automotive Applications

Application Development and Deployment With MATLAB

Increasing Design Confidence Model and Code Verification

01 1 Electronic Design Automation (EDA) the correctness, testability, and compliance of a design is checked by software

Modeling HDL components for FPGAs in control applications

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

Automating Best Practices to Improve Design Quality

Hardware in the Loop Functional Verification Methodology

Motor Control: Model-Based Design from Concept to Implementation on heterogeneous SoC FPGAs Alexander Schreiber, MathWorks

Accelerating Stateflow With LLVM

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

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

Plant modeling: A First Step to Early Verification of Control Systems

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

Verification and Validation of High-Integrity Systems

The Application of SystemC to the Design and Implementation of a High Data Rate Satellite Transceiver

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

Hardware, Software and Mechanical Cosimulation for Automotive Applications

Targeting Motor Control Algorithms to System-on-Chip Devices

Verification and Validation Introducing Simulink Design Verifier

Integrate MATLAB Analytics into Enterprise Applications

01-1 Electronic Design Automation (EDA) The use of software to automate electronic (digital and analog) design.

EEM870 Embedded System and Experiment Lecture 4: SoC Design Flow and Tools

Cover TBD. intel Quartus prime Design software

Cover TBD. intel Quartus prime Design software

efpgasim Features & Applications

Scaling MATLAB. for Your Organisation and Beyond. Rory Adams The MathWorks, Inc. 1

BIOMEDICAL ELECTRONICS. Date & Day II - SEMESTER ADVANCED MEDICAL IMAGING DIAGNOSTIC AND THERAPEUTIC EQUIPMENT MEDICAL PRODUCT DESIGN

Parallel and Distributed Computing with MATLAB The MathWorks, Inc. 1

Case Study on DiaHDL: A Web-based Electronic Design Automation Tool for Education Purpose

Integrate MATLAB Analytics into Enterprise Applications

Real-Time Testing in a Modern, Agile Development Workflow

Simulation, prototyping and verification of standards-based wireless communications

System Requirements & Platform Availability by Product for R2016b

Transcription:

Model-Based Design: Design with Simulation in Simulink Ruth-Anne Marchant Application Engineer MathWorks 2016 The MathWorks, Inc. 1

2

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 3

Traditional Development Workflow RESEARCH REQUIREMENTS SPECIFICATIONS DESIGN AND IMPLEMENTATION C/C++ Embedded Software Algorithm Algorithm MCAD/ MCAD/ C/C++ EDA Design Design MCAE MCAE Embeddable Embeddable Mechanical Embedded Electrical Mechanical Algorithms Components Algorithms Software Components EDA Electrical Components INTEGRATION AND TEST 4

Problems in Traditional Development Workflow Requirement Documents RESEARCH REQUIREMENTS SPECIFICATIONS Paper Specifications Physical Prototypes DESIGN AND IMPLEMENTATION Manual Coding C/C++ Embedded Software Algorithm Design Embeddable Algorithms MCAD/ MCAE Mechanical Components EDA Electrical Components Traditional Testing INTEGRATION AND TEST 5

Model-Based Design Workflow RESEARCH REQUIREMENTS Traditional System Development Workflow 1. Research 2. Requirements and Specifications 3. Design 4. Implementation 5. Test and Verification DESIGN Environment Models Physical Components Algorithms IMPLEMENTATION TEST & VERIFICATION C, C++ VHDL, Verilog Structured Text MCU DSP FPGA ASIC PLC, PAC INTEGRATION 6

Model-Based Design: Specifications RESEARCH REQUIREMENTS DESIGN Environment Models Physical Components Algorithms CAPABILITIES Executable specification Executable constraints Links to requirements BENEFITS Early validation and test development Clear specification Simulate whole system, including environment Tight link to requirements 7

Model-Based Design: Requirements RESEARCH REQUIREMENTS Formalize requirements as properties and objectives DESIGN Environment Models Physical Components Algorithms Model system response bounds Trace to requirements in DOORS, Word, Excel, etc. 8

Model-Based Design: Design RESEARCH REQUIREMENTS DESIGN Environment Models Physical Components Algorithms CAPABILITIES Refine model description Add fixed point, timing, component interface details BENEFITS Fast design exploration Design optimization Find flaws before implementation 9

Model-Based Design: Design RESEARCH REQUIREMENTS DESIGN Environment Models Physical Components Algorithms CAPABILITIES Refine model description Add fixed point, timing, component interface details BENEFITS Fast design exploration Design optimization Find flaws before implementation Physical IMPLEMENTATION Components C, C++ Algorithms VHDL, Verilog Structured Text MCU DSP FPGA ASIC PLC, PAC 10

RESEARCH REQUIREMENTS Model-Based Design: Implementation DESIGN Environment Models C, C++ Physical Components Algorithms IMPLEMENTATION VHDL, Verilog MCU DSP FPGA ASIC Structured Text PLC, PAC CAPABILITIES Rapid Prototyping Automatic Code Generation: C/C++ HDL PLC BENEFITS Eliminate hand-coding Eliminate hand-code errors Hardware target portability Better testability and reuse Bridge between domain, software, and hardware knowledge experts 11

Model-Based Design: Test and Verification RESEARCH REQUIREMENTS DESIGN C, C++ Environment Models Physical Components Algorithms IMPLEMENTATION VHDL, Verilog MCU DSP FPGA ASIC Structured Text PLC, PAC TEST & VERIFICATION CAPABILITIES Model Verification Software Verification Hardware-in-Loop Test and Measurement BENEFITS Detect errors earlier Reduce use of physical prototypes Implementations that work first time Reuse tests throughout development stages INTEGRATION 12

Building a Wave Farm with Model-Based Design 13

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 14

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 15

Mechanical System Modelling 16

Mechanical System Modelling 17

Mechanical System Modelling 18

Electrical System Modelling Bridge Rectifier (AC to DC) 19

Electrical System Modelling Motor Servoamplifier DC Motor Speed Controller Hall Effect Sensor 20

Electrical System Modelling 21

Multi-Domain Modelling of Physical Systems 22

Control System Design 23

Defining System Mode Logic Define mode logic using state machine in Stateflow Generate production code directly from model Specification Brakes applied Brake Mode Mot = 1 Gen = 0 Engine = 0 Brakes released Motion RPM < 790 Normal Mode Engine = 1 Accel is high && Charge is high Cruise Mode Charge Charge is low Start Mode Charge is high No Charge Gen = 1 Engine = 0 Motor = 1 RPM > 800 Acceleration Mode Gen = 0 Motor = 1 Accel is low && Charge is low 24

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 25

Optimise Entire System Motor Torque Use optimisation algorithms to automatically tune parameter values Match response Meet requirements Motor Speed Optimise system performance (controller and physical system) IC Engine On Spd IC Engine Off Spd Battery Capacity Battery Max Discharge Power Parameter Values HEV Model Optimisation Algorithm Fuel Consumed Over 100 Different Drive Cycles Calculate Cost 26

Distributing Simulations with Parallel Computing Simulating in parallel Distribute simulations to multiple cores/processors HEV Model Dramatic speedup for sets of simulations (parameter sweeps, flight cycles optimisations, and more) Computer Cluster Workers Simulation 1 Simulation 2 Desktop System Workers for parfor 27

Shorten Simulation Times With Parallel Computing Model: Drive Cycles Weights Ratios Problem: Minimize simulation time to run a parameter sweep on the HEV model Solution: Use Parallel Computing Toolbox to speed up the sweep HEV Model Multi Core Parameter Set 1 Parameter Set 2 Parameter Set N 28

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 29

Automatically Run Tests And Document Results Situation: Report Test Design Change Document Evaluate Results Problem: Evaluate test results quickly to make design changes and document the results Solution: Use Simulink Report Generator to automatically document tests and results 30

Outline Model-Based Design Overview Modelling and Design in Simulink Modelling Physical Systems Control logic Simulation System-level optimisation Verification of design changes Summary 31

Key Points Simulink is a multi-domain modelling and simulation environment facilitating Model-Based Design Optimise the system-level performance Accelerate your development Speed up simulations using Parallel Computing Toolbox Speed-up processes using Simulink Report Generator 32

Call to Action Learn more about Model-Based Design with Simulink Explore our website au.mathworks.com Contact me: Ruth-Anne Marchant ruth-anne.marchant@mathworks.com.au 33

Q & A 34