Presentation is loading. Please wait.

Presentation is loading. Please wait.

Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design.

Similar presentations


Presentation on theme: "Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design."— Presentation transcript:

1 Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design (MBD), Virtualization and Hardware-in- Loop (HIL) Systems Lab Mark Ramseyer Staff Application Engineer Rev. 1.3 13 October 2010

2 2 © 2010 Renesas Electronics America Inc. All rights reserved. Mr. Mark Ramseyer Powertrain Applications Engineer Model Based Development (MBD) Virtualization Co-simulation HIL simulation 20 Years Embedded Microcontroller Development Microcontroller specification IC design and verification IC simulation and timing Controller system design Software and firmware development Compilers and software tools Calibration and data acquisition tools Ford Motor Co., Ford Microelectronics, Visteon, General Motors BS in Computer & Electrical Engineering from

3 3 © 2010 Renesas Electronics America Inc. All rights reserved. Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** Solutions for Innovation ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis).

4 4 © 2010 Renesas Electronics America Inc. All rights reserved. 4 Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis). Solutions for Innovation

5 5 © 2010 Renesas Electronics America Inc. All rights reserved. 5 Microcontroller and Microprocessor Line-up Superscalar, MMU, Multimedia  Up to 1200 DMIPS, 45, 65 & 90nm process  Video and audio processing on Linux  Server, Industrial & Automotive  Up to 500 DMIPS, 150 & 90nm process  600uA/MHz, 1.5 uA standby  Medical, Automotive & Industrial  Legacy Cores  Next-generation migration to RX High Performance CPU, FPU, DSC Embedded Security  Up to 10 DMIPS, 130nm process  350 uA/MHz, 1uA standby  Capacitive touch  Up to 25 DMIPS, 150nm process  190 uA/MHz, 0.3uA standby  Application-specific integration  Up to 25 DMIPS, 180, 90nm process  1mA/MHz, 100uA standby  Crypto engine, Hardware security  Up to 165 DMIPS, 90nm process  500uA/MHz, 2.5 uA standby  Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, Low Power Ultra Low Power General Purpose

6 6 © 2010 Renesas Electronics America Inc. All rights reserved. MBD, Virtualization & HIL Simulation Superior Design Process Intel Core 2 Duo 291M transistors “The Space Station consists of 70 separate major components and hundreds of minor ones, all of which will be assembled for the first time in space.” pbs.org PCB circuit simulation

7 7 © 2010 Renesas Electronics America Inc. All rights reserved. MBD, Virtualization & HIL Simulation Model based development (MBD) is imperative. Virtualization is effective. Simulation is critical. Hardware in the Loop (HIL) systems are practical and compelling. Testing and Verification are safer and more efficient. These technologies are available now.

8 8 © 2010 Renesas Electronics America Inc. All rights reserved. Agenda Introductions MBD, Virtualization & HIL Simulation Discussion Strategy Development Lab Code Generation Lab Verification on Virtual Platform Lab Verification on Real-time Platform Lab

9 9 © 2010 Renesas Electronics America Inc. All rights reserved. Key Takeaways Understand benefits and efficiencies of model based development Appreciate capability and effectiveness of code generation tools Understand virtualization, co-simulation and HIL simulation methodologies Recognize the accuracy, visibility and savings from a virtual development platform Value the confidence and savings of a real-time development platform Appreciate the improved efficiency and controllability of testing and verification

10 10 © 2010 Renesas Electronics America Inc. All rights reserved. Introductions Amrit Vivekanand – Renesas Electronics America 011C: Velocity Lab Ecosystem – Tues morning 52AP: Model Based Development – Mon afternoon Bob Chamberlain – Renesas Electronics America Rich Union – Renesas Electronics America John Mills – SimuQuest Chris Myers – SimuQuest 024C: Auto Code Generation – Tues afternoon 021L: Model Based Dev. & Auto Code Gen. using R8C – Tues afternoon Ray Turin – SimuQuest 023C: Model Based Control Design – Tues morning Marcella Haghgooie – Applied Dynamics, International 020C: Hardware in the Loop: System Testing without the System – Wed morning Everett Lumpkin – consultant 021C: Virtual Microcontroller and System Modeling – Wed morn

11 © 2010 Renesas Electronics America Inc. All rights reserved. 11 MBD, Virtualization & HIL Simulation Discussion

12 12 © 2010 Renesas Electronics America Inc. All rights reserved. Traditional Development Platform where we were PlantControllerStrategy CodeDriver Code strat.cdrvr.c +++ fuel & exhaust considerations real, functional loads required errors can be dangerous many interdependent systems expensive prototypes fixed, inflexible hardware debug limitations due to hard, real time platform limited visibility challenging repeatability innately tied to micro family detailed interface knowledge required significant time or money to create tremendous effort required implementation may obscure strategy

13 13 © 2010 Renesas Electronics America Inc. All rights reserved. ControllerDriver Code drvr.c +++ Typical Model Based Development Platform where we are difficulties with physical plant are eliminated real-time behavior is retained development costs are significantly reduced development hardware can be reused same controller hardware same handwritten driver codeimplementation at algorithm level faster development easily simulated code generation is mature Strategy Model in Simulink Simulator running Plant Model

14 14 © 2010 Renesas Electronics America Inc. All rights reserved. +++ Full Model Based and Virtualized Development Platform – where we need to be no physical plant issues no hardware is required completely portable and configurable cycle accurate micro model micro peripheral models included complete visibility and repeatability completely portable and configurable same debugger GUI production level code generation seamless interface with strategy model no need for detailed micro knowledge or spec complete access to all source same strategy model Plant Model in Simulink Micro Model in VaST / ASTC / CoWare Generated Driver Code Strategy Model in Simulink

15 15 © 2010 Renesas Electronics America Inc. All rights reserved. Summary of Implementation Options PlantController Production type platform Hardware real- time simulator Microprocessor Evaluation Board Software (virtual) model Hardware Implementations DriversStrategy Code Tool / Code Generator Model Software Implementations A development platform includes at least a plant and strategy option, and may include a controller and driver option.

16 16 © 2010 Renesas Electronics America Inc. All rights reserved. Effort Comparison Traditional Development - where we were Typical Model Based Development - where we are Full Model Based & Virtualized Development - where we need to be Strategy CodeDriver CodeControllerPlant (Test Env.) Strategy Model Driver CodeControllerPlant on HIL sim. Strat. Model Driver Code Virtual ControllerVirtual Plant HIL simulator instead of physical plant Fully generated drivers No API or driver integration Verification Verific- ation Virtual Verification Functional model instead of code HIL simulator

17 17 © 2010 Renesas Electronics America Inc. All rights reserved. Questions What are the main benefits of a model based design? What are the main benefits of a virtual development environment? What are the main benefits of an HIL simulation? Audience questions?

18 18 © 2010 Renesas Electronics America Inc. All rights reserved. Benefits of MBD, Virtualization & HIL Simulation Shorter Development Schedule Less Development Expense Complete Configurability and Portability Focused on Strategy Algorithms, not implementation details Better Visibility, Controllability & Repeatability Fully Auto Coded Solutions Higher Reliability with More Confidence Virtual Development Platform Real-Time Development Platform Verification More Efficient and Controlled Testing and Verification

19 © 2010 Renesas Electronics America Inc. All rights reserved. 19 Strategy Development Lab

20 20 © 2010 Renesas Electronics America Inc. All rights reserved. Strategy Development Lab Develop / Procure Plant Model Debug / Verify in Matlab / Simulink Ignore Controller Details Ignore Micro Details (No Drivers) Develop / Procure Strategy Model See Lab Procedure PlantController Production Real-time simulator Eval. Bd Software model DriversStrategy Code Tool / Code Gen. Model

21 21 © 2010 Renesas Electronics America Inc. All rights reserved. Strategy Development Lab – Results Scope in Matlab / Simulink Engine RPM Manifold Pressure Mass Air Flow Vehicle Speed Active Gear Oxygen Sensor Throttle Position Key On Signal

22 22 © 2010 Renesas Electronics America Inc. All rights reserved. Strategy Development Lab – Answers Final speed is ~ 13 MPH. The interface uses physical units like °C, MPH, Pascals. The brake_pedal, average_torque, and throttle_characteristics models are actual algorithms and are not S-functions. spark = base_spark – spark_corr fuel_pulse_width = base_fuel_pulse * fuel_trim_factor Changing the shifter logic via the saturation block forced the simulation to always be in 1 st gear. Audience questions?

23 © 2010 Renesas Electronics America Inc. All rights reserved. 23 Code Generation Lab

24 24 © 2010 Renesas Electronics America Inc. All rights reserved. Code Generation Lab Plant Model N/A Controller N/A Configure / Generate Driver Code Strategy Model See Lab Procedure PlantController Production Real-time simulator Eval. Bd Software model DriversStrategy Code Tool / Code Gen. Model Compile / Link All in Matlab / Simulink GUI

25 25 © 2010 Renesas Electronics America Inc. All rights reserved. Code Generation Lab - Results Generated Driver Code Status (window displayed only if run manually) Simulink Code Generation Report All in Matlab / Simulink GUI Matlab Command/Log Window Compiling Linking Completion

26 26 © 2010 Renesas Electronics America Inc. All rights reserved. Code Generation Lab – Answers digital input, engine state input, engine management task, fuel ouput spark output, PWM output, digital output conversion every 1.00 millisecond 8.05 microseconds to convert the group No register or bitfield info is required clocks are 20 MHz, 5MHz, 5MHz, 645.16219KHz can be selected by either QuantiPhi (auto) or the user (manual) Audience Questions?

27 © 2010 Renesas Electronics America Inc. All rights reserved. 27 Verify on Virtual Platform Lab

28 28 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Virtual Platform Lab Plant Model in Simulink Micro Model in CoMET Configure / Generate Driver Code Strategy Model See Lab Procedure PlantController Production Real-time simulator Eval. Bd Software model DriversStrategy Code Tool / Code Gen. Model Simulink / CoMET Cosimulation Debug with Renesas HEW Virtual Platform CoMET

29 29 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Virtual Platform Lab - Results Simulink scope of inputs to micro model Simulink scope of outputs from micro model Simulink scope overall co-simulation

30 30 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Virtual Platform Lab – Answers Input source is Enginuity plant model Enginuity uses physical units The signals go to the micro model The micro requires low level electrical signals The scaling is needed to interface between the real world and the digital world Spark 0 is connected to micro port F pin 0 (PF0). It is connected to Simulink input LogicPlantModelerIn[0] About 33 engine cycles were completed in the last 2 seconds of simulation Audience Questions?

31 © 2010 Renesas Electronics America Inc. All rights reserved. 31 Verify on Real-time Platform Lab

32 32 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Real-time Platform Lab Plant Model in Simulink Micro Evaluation Board Configure / Generate Driver Code Strategy Model See Lab Procedure PlantController Production Real-time simulator Eval. Bd Software model DriversStrategy Code Tool / Code Gen. Model Real-time Platform ADI rtX Simulator interface cable Debug with Renesas E10A/HEW

33 33 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Real-time Platform Lab - Results ADvantageVI Custom Panel Interface ADvantage SIMplotter Chart

34 34 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Real-time Platform Lab – Answers internal_control subsystem & external_control subsystem fuel_pulse_width is generated from the HIL simulator physically measuring the actual electrical signal created by the SH2A micro. (The previous control strategy is now executing on the SH2A micro.) The ADvantageDE build compiles the Simulink generated code and the HIL control software (which interacts with the HIL real-time operating system and HIL hardware I/O cards) together into a single executable for the HIL.

35 35 © 2010 Renesas Electronics America Inc. All rights reserved. Verify on Real-time Platform Lab – Answers (2) Engine Plant Model Internal Strategy External Strategy Interface External Strategy Hardware I/O Cards mux HIL Simulator Micro Eval Board SH2A Micro Block Diagram of HIL system:

36 © 2010 Renesas Electronics America Inc. All rights reserved. 36 Conclusion

37 37 © 2010 Renesas Electronics America Inc. All rights reserved. Summary Full Model Based Development (MBD) is real and effective. Production I/O driver generation is real and effective. Virtualization has accuracy, visibility, controllability and repeatability. HIL simulation is hard real-time and a practical verification method. Full simulation is required and critical to today’s designs. Simulation provides more efficient and controlled testing and verification. These technologies greatly reduce development effort and costs. These technologies offer better reliability with more confidence. These technologies are available now. Renesas pulls all of these technologies together with our partners into Velocity Lab™.

38 38 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

39 39 © 2010 Renesas Electronics America Inc. All rights reserved. Feedback Form Please fill out the feedback form! Please raise your hand if you do not have one.

40 © 2010 Renesas Electronics America Inc. All rights reserved. 40 Appendix

41 41 © 2010 Renesas Electronics America Inc. All rights reserved. Model Structures Strategy Development PlantStrategy physical values Code Generation StrategyDriver physical values low level values

42 42 © 2010 Renesas Electronics America Inc. All rights reserved. Model Structures (2) Real-time Platform PlantStrategy Sensor/ Actuator Micro Periph. Driver HIL Hardware physical values signal characteristics electrical signalslow level values physical values Virtual Platform PlantStrategy Sensor/ Actuator Micro Periph. Driver physical values electrical signalslow level values physical values

43 Renesas Electronics America Inc.


Download ppt "Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design."

Similar presentations


Ads by Google