Hardware and Software Co-Design for Motor Control Applications

Similar documents
Targeting Motor Control Algorithms to System-on-Chip Devices

Hardware and Software Co-Design for Motor Control Applications

Hardware and Software Co-Design for Motor Control Applications

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

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

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

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

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

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

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

Accelerating FPGA/ASIC Design and Verification

Modeling HDL components for FPGAs in control applications

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

Design and Verification of FPGA Applications

Advanced AC Motor Control S/W Development Sang-Ho Yoon Senior Application Engineer The MathWorks

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

Real-Time Testing in a Modern, Agile Development Workflow

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

Simulation, prototyping and verification of standards-based wireless communications

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

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

Design and Verify Embedded Signal Processing Systems Using MATLAB and Simulink

Ein Modell - viele Zielsysteme

Modeling a 4G LTE System in MATLAB

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

Designing and Targeting Video Processing Subsystems for Hardware

Design and Verify Embedded Signal Processing Systems Using MATLAB and Simulink

Design and Verification of FPGA and ASIC Applications Graham Reith MathWorks

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

What s New in MATLAB and Simulink

Simulink as Your Enterprise Simulation Platform

CE 435 Embedded Systems Spring 2018

Making the Most of your MATLAB Models to Improve Verification

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

Master Class: Diseño de Sistemas Mecatrónicos

Embarquez votre Intelligence Artificielle (IA) sur CPU, GPU et FPGA

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

Model-Based Design for Video/Image Processing Applications

Addressing Fixed Point Design Challenges

Optimize DSP Designs and Code using Fixed-Point Designer

Integrating Mechanical Design and Multidomain Simulation with Simscape

2015 The MathWorks, Inc. 1

From Design to Production

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

System-on-Chip Architecture for Mobile Applications. Sabyasachi Dey

Cover TBD. intel Quartus prime Design software

Integrating Mechanical Design and Multidomain Simulation with Simscape

Accelerate FPGA Prototyping with

Cover TBD. intel Quartus prime Design software

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

Test and Verification Solutions. ARM Based SOC Design and Verification

Optimizing HW/SW Partition of a Complex Embedded Systems. Simon George November 2015.

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

High-Level and Model-Based Design Targeting FPGAs and SoCs

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

SoC Systeme ultra-schnell entwickeln mit Vivado und Visual System Integrator

MATLAB/Simulink in der Mechatronik So einfach geht s!

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

Introduction to C and HDL Code Generation from MATLAB

efpgasim Features & Applications

Model-Based Embedded System Design

Avnet Speedway Design Workshop

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

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

Designing and Analysing Power Electronics Systems Using Simscape and SimPowerSystems

Virtex 6 FPGA Broadcast Connectivity Kit FAQ

FPGA system development What you need to think about. Frédéric Leens, CEO

CONSIDERATIONS FOR THE DESIGN OF A REUSABLE SOC HARDWARE/SOFTWARE

Simulink to Embedded Hardware Paul Peeling MathWorks

Model-Based Design: Design with Simulation in Simulink

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

Implementation and Verification Daniel MARTINS Application Engineer MathWorks

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

Bringing the benefits of Cortex-M processors to FPGA

Modeling and Verifying Mixed-Signal Designs with MATLAB and Simulink

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

TOWARD A METHODOLOGY TO TURN SMALLTALK CODE INTO FPGA

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

Signal Processing Algorithms into Fixed Point FPGA Hardware Dennis Silage ECE Temple University

Connecting MATLAB & Simulink with your SystemVerilog Workflow for Functional Verification

PicoZed SDR Development Kit Getting Started Guide Version 1.4

Workflow for Control System Design and Implementation

System-Level ASIC Algorithm Simulation Platform using Simulink

Extending Fixed Subsystems at the TLM Level: Experiences from the FPGA World

LED display manager documentation

All Programmable SoC based on FPGA for IoT. Maria Liz Crespo ICTP MLAB

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

II. LITERATURE SURVEY

Virtual Hardware ECU How to Significantly Increase Your Testing Throughput!

SoC Systeme ultra-schnell entwickeln mit Vivado und Visual System Integrator

Zynq AP SoC / Analog Devices Intelligent Drives Kit Getting Started Guide Version 1.0

A Deterministic Flow Combining Virtual Platforms, Emulation, and Hardware Prototypes

A So%ware Developer's Journey into a Deeply Heterogeneous World. Tomas Evensen, CTO Embedded So%ware, Xilinx

컴퓨터비전의최신기술 : Deep Learning, 3D Vision and Embedded Vision

Entwicklung mechatronischer Systeme in der Luft- und Raumfahrt

10GBase-R PCS/PMA Controller Core

Performance Verification for ESL Design Methodology from AADL Models

A Matlab/Simulink Simulation Approach for Early Field-Programmable Gate Array Hardware Evaluation

Applications of Program analysis in Model-Based Design

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Transcription:

Hardware and Software Co-Design for Motor Control Applications GianCarlo Pacitti Senior Application Engineer, MathWorks 2015 The MathWorks, Inc. 1

Agenda Why use Hardware and Software for motor control? Why use Model-Based Design for motor control? How to use Model-Based Design for motor control? 2

ZedBoard Zynq SoC (XC7Z020) FMC module: control board + low-voltage board Load motor Mechanical coupler Motor under test (with encoder) 3

Key trend: Increasing demands from motor drives Increased performance targets require advanced algorithms Advanced algorithms require faster computing performance. Field-Oriented Control Sensorless motor control Vibration detection and suppression Multi-axis control 4

Where are algorithms being run to gain performance? Multi-core microprocessors Multi-processor systems FPGAs ASICs System-on-Chip devices (SoCs) GPUs* Hardware and Software algorithms must be designed together *particularly for vision applications 5

Punch Powertrain develops complex SoC-based motor control Powertrains for hybrid and electric vehicles Need to increase power density and efficiency at a reduced cost Integrate motor and power electronics in the transmission New switched reluctance motor Fast: 2x the speed of their previous motor Target to a Xilinx Zynq SoC 7045 device Complex: 4 different control strategies Needed to get to market quickly No experience designing FPGAs! Link to video Designed integrated E-drive: Motor, power electronics and software 4 different control strategies implemented Done in 1.5 years with 2FTE s Models reusable for production Smooth integration and validation due to development process thorough validation before electronics are produced and put in the testbench 6

What s Inside an FPGA SoC? 7

Why use Hardware and Software for Motor Control? In order to meet increased performance You need more complex algorithms Running on the right hardware 8

Why use Hardware and Software for motor control? Why use Model-Based Design for motor control? How to use Model-Based Design for motor control? 9

Challenges in Developing Advanced Motor Control s Integration requires collaboration Validation of design specifications with limits on access to test hardware How to make design decisions? 10

Why use Model-Based Design to Develop Motor Control Applications? Enables early validation of specifications using simulation months before hardware is available. Dramatically improves design team collaboration and designer productivity by using a single design environment. Reduces hardware testing time by 5x by shifting design from lab to the desktop 11

Components of Motor Control Production Applications Production C Linux Driver AXI Bus AXI Interface HDL ARM System Code IP1 IP2 IP3 Programmable Logic Motor System 12

From Simulation to Production Simulation Simulink Model Model Embedded Coder HDL Coder Production C Linux Driver AXI Bus AXI Interface HDL ARM System Code IP1 IP2 IP3 Programmable Logic Motor Model Motor System 13

From Simulation to Prototype to Production Simulation Prototype Production Simulink ARM core ARM core Model Embedded Coder C Linux Driver Vivado C Linux Driver System Code AXI Bus AXI Bus Model HDL Coder AXI Interface HDL Vivado AXI Interface HDL IP1 IP2 IP3 Programmable Logic Programmable Logic Motor Model Motor Motor System 14

Why use Hardware and Software for motor control? Why use Model-Based Design for motor control? How to use Model-Based Design for motor control? 15

ZedBoard Zynq SoC (XC7Z020) FMC module: control board + low-voltage board Load motor Mechanical coupler Motor under test (with encoder) 16

Conceptual workflow targeting hardware and software System Simulation Test Bench developer C Model HDL Model Model of Motor & Dyno Embedded software engineer Linux / VxWorks Reference Framework C Code HDL Code Programmable Logic Reference Framework Hardware designer SoC Hard Processor SoC Programmable Logic Embedded System Motor & Dyno Hardware 17

18

Building a System Simulation Test Bench System Simulation Test Bench developer C Model HDL Model Model of Motor & Dyno How do I get a good model of the motor? How can I make sure it matches real-world behaviour? 19

What s Inside a Motor Model? 20

What s Inside a Motor Model? 21

What s Inside a Motor Model? 22

What s Inside a Motor Model? 23

What s Inside a Motor Model? How can we find the parameters we need for the model? 24

How to Find the Right Motor Parameters? Ask the motor designer From manufacturer s data sheets From direct bench-top measurements or test data 25

Modelling a PMSM with limited supplier data Tune to measurement data Step 1 R=V/I Locked rotor Step voltage test L=R*t c t c 26

Modelling a PMSM with limited supplier data Tune to measurement data Step 2 K t ω Back EMF test 27

Modelling a PMSM with limited supplier data Tune to measurement data Step 3 Friction Damping coefficient = gradient 28

Modelling a PMSM with limited supplier data Tune to measurement data Step 4 Speed run-down test Inertia = Torque/gradient 29

Estimating Parameters from measured data using Simulink Design Optimization Use simulation-based optimisation match model parameters to real-world data 30

Adding Implementation Detail to s System Simulation Test Bench developer C Model HDL Model Model of Motor & Dyno Which parts of my algorithm should be implemented in C, and which in HDL? 31

Strategies for Partitioning an Between Hardware and Software Use experience some timing requirements are known e.g. current control @25kHz Put everything on the software core and profile it where are the bottlenecks? Can these be moved to hardware? Put algorithms where the data comes in minimise data transfer Monitor resource usage and move things when you are near the limit 32

Hardware/Software Partitioning Target to Programmable Logic Target to ARM 33

Floating-point to fixed-point conversion Is it always necessary? Possibly, to meet resource constraints on the hardware Fixed-Point Designer helps automate the conversion process HDL Coder native floating-point technology can generate HDL code from your floatingpoint design 34

Code Generation 35

Zynq Model-Based Design Workflow HDL IP Core Generation Vivado Integration FPGA Bitstream MATLAB and Simulink and System Design SW Interface Model Generation SW Build Real-time Parameter Tuning and Verification External Mode Processor-in-the-loop More probe and debug capability in the future Zynq Platform External Mode PIL 36

ti 37

Why use Hardware and Software for motor control? Why use Model-Based Design for motor control? How to use Model-Based Design for motor control? 38

Why use Model-Based Design to develop motor control applications? Enables early validation of specifications using simulation months before hardware is available. Dramatically improves design team collaboration and designer productivity by using a single design environment. Reduces hardware testing time by 5x by shifting design from lab to the desktop 39