5 ® SIMPLORER 7.0 VHDL-AMS Tutorial Copyright and Trademark Notices The information contained in this document is subject to change without notice. Ansoft makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Ansoft shall not be liable for errors contained herein or for incidental or consequential damages in connec- tion with the furnishing, performance, or use of this material. This document contains proprietary information that is protected by copyright. All rights are reserved. Ansoft Corporation 225 West Station Square Drive Suite 200 Pittsburgh, PA 15219 (412) 261 - 3200 5 SIMPLORER, Maxwell2D, RMxprt, and PExprt are trademarks of Ansoft Corp. UNIX is a registered trademark of UNIX Systems Laboratories, Inc. Windows is a trademark of Microsoft Corporation. FLEXlm is a registered trademark of GLOBEtrotter Inc. Matlab/Simulink is a registered trademark of Mathworks Inc. Matlab is a registered trademark of Mathworks, Inc. Mathcad is a registered trademark of MathSoft Inc. Adobe Reader is a trademark of Adobe Systems Inc. FrameMaker is a trademark of Adobe Systems Inc. Paint Shop Pro is a trademark of Jasc Software Inc. WinZip is a trademark of Nico Mak Computing, Inc. and Top Systems GmbH. The examples used in this document were derived from benchmarks developed by the work- ing group 'VHDL-AMS' of MSR project. The MSR Consortium was founded by German Car Manufacturers and Suppliers to define and establish standards for information/data exchange between manufacturer and supplier. MSR has granted permission to use the examples found in this tutorial. More information on the MSR Consortium and their activities can be found at http://www.msr-wg.de/msr.html. The claw-pole design in this document was used with permission from Vahe Caliskan. Vahe Caliskan disclaims any responsibility or liability resulting from the development and use of ex- amples in the described manner. This Manual was created with Adobe FrameMaker. Some of the pictures were created with Paint Shop Pro. © Copyright 2003-2004 Ansoft Corporation SIMPLORER — VHDL-AMS Tutorial III Printing History New editions of this manual include material updated since the previous edition. The manual printing date, indicating the manual’s current edition, changes when a new edition is printed. Minor corrections and updates incorporated at reprint do not cause the date to change. Edition Date Software Revision 1 April 2003 6.0 2 September 2004 7.0 IV Printing History II 5 SIMPLORER — VHDL-AMS Tutorial V Welcome Welcome to the SIMPLORER Simulation Center, the integrated simula- tor for complex technical systems. Whether you are a beginner or an ex- perienced professional, SIMPLORER’s comprehensive suite of tools gives you expert and reliable results in very little time. You can create related simulation models quickly and process simula- tions accurately and reliably with the simulator backplane technology, and you can present and arrange the results with powerful post proces- sors. You can also transfer the simulation data and results to other ap- plications. This tutorial introduces you to the VHDL-AMS modeling capabilities provided by SIMPLORER. SIMPLORER is continuously being developed and new functions are added regularly; hence, there may be slight inconsistencies in the doc- umentation. VI Welcome II 5 SIMPLORER — VHDL-AMS Tutorial VII Table of Contents 1 Introduction 1 2 VHDL-AMS Models in SIMPLORER 11 2.1 Using VHDL-AMS Models 12 2.2 Displaying Results 21 3 Automotive Powernet System Example 25 3.1 Alternator 29 3.2 Battery 35 3.3 DC-DC Converter 40 3.4 Ignition Switch and Loads 45 3.5 Configuration Modes 50 3.6 Powertrain 56 4 Case Studies 63 4.1 Different Modeling Styles: Battery 65 4.2 Automated Model Development Using VHDL-AMS Wizard: Fuse 71 4.3 Detailed and Average Model Development: Claw-Pole Alternator 81 4.4 Multilevel Modeling Techniques: Loads 90 4.5 Multidomain System Modeling: Linear Drive System, Solenoid 103 4.5.1 Linear Drive System 103 4.5.2 Solenoid System 108 4.6 Mixed-Signal Modeling: DC-DC Model with PWM, Automotive Alarm System 114 4.6.1 DC-DC Model 114 4.6.2 Automotive Alarm System 118 5 Model Development 131 5.1 VHDL-AMS Subsheets in Schematic 132 5.2 Library and Model Management in the ModelAgent 135 5.3 Managing VHDL-AMS Models in the ModelAgent 141 5.4 Managing VHDL-AMS Packages in the ModelAgent 158 5.5 Simulator Environment 162 6 VHDL-AMS Language Fundamentals 165 6.1 Design Units 166 6.1.1 Entities and Architectures 166 6.1.2 Packages 168 6.2 Subprograms 172 6.3 Declarations 174 6.3.1 TYPE Declarations 174 6.3.2 Data Object Declarations 175 VIII Table of Contents 6.3.3 Other Declarations 178 II 6.4 Concurrent Statements 179 6.5 Sequential Statements 184 6.6 Simultaneous Statements 191 6.7 Identifiers, Literals, and Expressions 195 6.8 Predefined Data Types 198 6.9 Predefined Attributes 199 6.10 Reserved Words 201 6.11 Modeling Aspects in SIMPLORER 205 7 Appendix 211 7.1 SIMPLORER Glossary 211 7.2 Table of SIMPLORER Libraries 217 7.3 Common Conventions in SML 218 7.4 Troubleshooting 225 7.5 Literature Reference 226 5 8 Index 227 SIMPLORER — VHDL-AMS Tutorial IX General Description of Content 1 Introduction Describes the general procedure for solving a simulation problem, lists general hints for using this manual, and explains how to install SIMPLORER. 2 VHDL-AMS and VHDL Models in SIMPLORER Describes the modeling of VHDL-AMS models using the graphical input application Schemat- ic, and introduces the use of subsheets and macros. 3 Automotive Powernet System Example Describes the modeling and use of VHDL-AMS models in a system-level automotive powernet example. This example is developed in six steps using simplified models for powertrain, bat- tery, alternator, DC-DC converter, and load models in VHDL-AMS. It also illustrates the use of configurations. 4 Case Studies Uses six case study examples to provide an in-depth understanding of how to use the VHDL- AMS language for different modeling tasks. These examples describe the use of multiple mod- el architectures for different levels of complexity, different modeling styles, and different be- havior. Examples that illustrate the multidomain and digital modeling flexibility of VHDL- AMS are also included. 5 Model Development Describes how to create model libraries, models, and packages in the ModelAgent, an appli- cation used to manage all libraries and models in SIMPLORER. 6 VHDL-AMS Short Reference/Language Fundamentals Describes the VHDL-AMS language syntax. 7 Appendix Provides a glossary of frequently used terms and a literature reference list for SIMPLORER. 8 Index Offers a comprehensive listing of keywords and associated information used in the VHDL- AMS Tutorial. X General Description of Content II 5
Description: