TopSpice 8 For Windows XP/7/8/10 Mixed-Mode Circuit Simulator User’s Guide Revi
TopSpice 8 For Windows XP/7/8/10 Mixed-Mode Circuit Simulator User’s Guide Revision 8.80 Copyright 2019 by Penzar Development PO Box 900847, Palmdale, CA 93590 USA www.penzar.com Copyright © 1991-2019 by Penzar Development. All rights reserved. No part of this publication may be copied or distributed, transmitted, transcribed, stored in a retrieval system, or translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, manual, or otherwise, or disclosed to third parties without the express written permission of Penzar Development, PO Box 900847, Palmdale, CA 93590 U.S.A. Printed in U.S.A. TopSpice is a trademark of Penzar Development. Microsoft and Windows are registered trademarks or trademarks of Microsoft Corporation. PSpice is a registered trademark of Cadence Design Systems, Inc. HSPICE is a registered trademark of Synopsys Inc. LTspice is a registered trademark of Linear Technology Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. CONTENTS i Contents 1 GETTING STARTED .......................................................................................................................... 1-1 1.1 Introduction .................................................................................................................................. 1-1 1.1.1 Schematic Capture ............................................................................................................... 1-1 1.1.2 Circuit File Editor .................................................................................................................. 1-1 1.1.3 TopSpice Simulator .............................................................................................................. 1-2 1.1.4 TopView Graphical Post-Processor ..................................................................................... 1-3 1.1.5 Output File Browser ............................................................................................................. 1-3 1.1.6 Model Libraries and Database ............................................................................................. 1-3 1.2 Native Mixed-Mode Simulation .................................................................................................... 1-4 1.3 Analog Behavioral Modeling ........................................................................................................ 1-4 1.4 Installation ................................................................................................................................... 1-5 1.4.1 System Requirements .......................................................................................................... 1-5 1.4.2 Installation Procedure .......................................................................................................... 1-5 1.4.3 Upgrade Installation ............................................................................................................. 1-6 1.4.4 Uninstalling TopSpice .......................................................................................................... 1-6 1.5 Configuration File Setup .............................................................................................................. 1-7 1.5.1 [TopSpice] Section ............................................................................................................... 1-7 1.5.2 [Schematic] Section ............................................................................................................. 1-8 1.5.3 [Simulator] Section ............................................................................................................... 1-9 1.5.4 [TopView] Section ................................................................................................................ 1-9 1.5.5 [JobStatus] Section ............................................................................................................ 1-10 1.6 Documentation and Manuals ..................................................................................................... 1-11 1.7 Documentation Notation Conventions ....................................................................................... 1-11 1.8 Simulation Basics ...................................................................................................................... 1-12 2 USING TOPSPICE ............................................................................................................................. 2-1 2.1 User Interface .............................................................................................................................. 2-1 2.2 General Operation ....................................................................................................................... 2-1 2.3 Starting TopSpice ........................................................................................................................ 2-2 2.3.1 New Circuit ........................................................................................................................... 2-2 2.3.2 Open Last Project ................................................................................................................ 2-3 2.3.3 Open As Options .................................................................................................................. 2-3 2.3.4 Open Saved Schematic ....................................................................................................... 2-3 2.3.5 Open Saved SPICE (text) File ............................................................................................. 2-3 2.3.6 Apps ..................................................................................................................................... 2-3 2.3.7 Help ...................................................................................................................................... 2-3 2.4 Examples ..................................................................................................................................... 2-4 2.4.1 Running Example Schematics ............................................................................................. 2-4 2.4.2 Running Example SPICE Circuit Files ................................................................................. 2-5 2.5 TopSpice Files ............................................................................................................................. 2-5 2.6 General Syntax and Design Rules .............................................................................................. 2-6 2.6.1 Names .................................................................................................................................. 2-6 2.6.2 Node Names ........................................................................................................................ 2-6 2.6.3 Global Nodes........................................................................................................................ 2-6 2.6.4 Voltage and Current Variables ............................................................................................. 2-7 2.6.5 Number Formats .................................................................................................................. 2-7 2.6.6 Component and Model Parameter Values ........................................................................... 2-8 2.6.7 Circuit Topology Rules ......................................................................................................... 2-8 2.7 Creating Design Projects ............................................................................................................. 2-9 2.8 How to Create a Schematic ......................................................................................................... 2-9 TopSpice User's Guide ii 2.8.1 Selecting Symbols .............................................................................................................. 2-10 2.8.2 Placing Parts ....................................................................................................................... 2-10 2.8.3 Specifying Part Attributes ................................................................................................... 2-10 2.8.4 Rotate, Mirror and Flip ........................................................................................................ 2-10 2.8.5 Wiring the Circuit ................................................................................................................ 2-10 2.8.6 Electrical Connections ........................................................................................................ 2-11 2.8.7 Node Labels and Numbers ................................................................................................. 2-11 2.9 Simulating Your Circuit .............................................................................................................. 2-12 2.10 Waveform Plotting and Analysis ............................................................................................ 2-12 2.10.1 Cursor Measurements ........................................................................................................ 2-12 2.10.2 Plot Axis Limits and Options ............................................................................................... 2-13 2.11 TopSpice Simulator ................................................................................................................ 2-13 2.11.1 Simulator Input File ............................................................................................................. 2-13 2.11.2 Simulator Output Files ........................................................................................................ 2-13 2.11.3 Simulator Command Line Operation .................................................................................. 2-13 2.11.4 Simulator Memory Usage ................................................................................................... 2-14 2.12 Simulator Engine Options ...................................................................................................... 2-14 2.12.1 XSPICE Option ................................................................................................................... 2-14 2.12.2 LTspice Simulator ............................................................................................................... 2-15 2.12.3 Other Simulator................................................................................................................... 2-15 2.13 TopSpice Circuit Netlist File ................................................................................................... 2-15 2.14 Tutorial Session...................................................................................................................... 2-17 2.14.1 Drawing the Circuit ............................................................................................................. 2-17 2.14.2 Adding Device Models ........................................................................................................ 2-19 2.14.3 Simulation Setup................................................................................................................. 2-19 2.14.4 Run Simulation ................................................................................................................... 2-20 3 INPUT/OUTPUT FILE EDITORS ........................................................................................................ 3-1 3.1 Circuit Netlist File Editor............................................................................................................... 3-1 3.1.1 User Interface ....................................................................................................................... 3-2 3.1.2 Toolbar Functions ................................................................................................................. 3-5 3.1.3 Menu Commands ................................................................................................................. 3-5 3.1.4 Operation .............................................................................................................................. 3-9 3.1.5 Multiple Open Files ............................................................................................................... 3-9 3.1.6 Simulation ............................................................................................................................. 3-9 3.1.7 Syntax Highlighting ............................................................................................................... 3-9 3.1.8 Bookmarks .......................................................................................................................... 3-10 3.2 Output File Browser ................................................................................................................... 3-11 3.2.1 User Interface ..................................................................................................................... 3-11 3.2.2 Menu Commands ............................................................................................................... 3-13 3.2.3 Operation ............................................................................................................................ 3-15 3.2.4 E-mail Output File ............................................................................................................... 3-15 4 SPICE DEVICES AND MODELS ....................................................................................................... 4-1 4.1 Simulator Circuit Elements .......................................................................................................... 4-1 4.1.1 Passive Devices ................................................................................................................... 4-2 4.1.2 Independent Sources ........................................................................................................... 4-2 4.1.3 Signal Sources...................................................................................................................... 4-2 4.1.4 Dependent Sources .............................................................................................................. 4-2 4.1.5 Special Function Sources ..................................................................................................... 4-3 4.1.6 Analog Behavioral Modeling Sources................................................................................... 4-3 4.1.7 Semiconductor Devices ........................................................................................................ 4-3 4.1.8 Digital Devices ...................................................................................................................... 4-4 4.1.9 Analog/Digital Interfaces ....................................................................................................... 4-4 4.2 Device Models ............................................................................................................................. 4-5 4.2.1 TopSpice Built-in Models ...................................................................................................... 4-5 4.3 Subcircuits ................................................................................................................................... 4-6 CONTENTS iii 4.4 Simulation Models ....................................................................................................................... 4-7 4.5 Model Libraries and Files ............................................................................................................ 4-9 4.5.1 SPICE Model Libraries ....................................................................................................... 4-10 4.5.2 Using Models as Schematic Parts ..................................................................................... 4-12 4.5.3 Importing Models ................................................................................................................ 4-14 4.6 TopSpice Model Libraries and Database .................................................................................. 4-15 4.6.1 Model Database Commands .............................................................................................. 4-16 4.6.2 Model Database Operation ................................................................................................ 4-17 4.6.3 TopSpice Model Libraries Search ...................................................................................... 4-18 4.6.4 .INC/MDB Command ......................................................................................................... 4-20 4.7 HSPICE Libraries ...................................................................................................................... 4-20 4.7.1 HSPICE Library File Definition ........................................................................................... 4-21 4.8 Include Files .............................................................................................................................. 4-22 4.9 Encrypted Model Files ............................................................................................................... 4-22 5 SIMULATION ..................................................................................................................................... 5-1 5.1 Introduction .................................................................................................................................. 5-1 5.1.1 TopSpice Simulator Commands .......................................................................................... 5-1 5.1.2 Simulation Setup .................................................................................................................. 5-2 5.2 DC Analysis ................................................................................................................................. 5-2 5.3 AC Small-Signal Analysis ............................................................................................................ 5-3 5.3.1 Noise Analysis ...................................................................................................................... 5-4 5.3.2 Distortion Analysis ................................................................................................................ 5-5 5.3.3 Open Loop Gain Measurement ............................................................................................ 5-5 5.4 Transient Analysis ....................................................................................................................... 5-6 5.4.1 Fourier Harmonic Analysis ................................................................................................... 5-6 5.4.2 Frequency Response Analysis............................................................................................. 5-7 5.5 Analysis at Different Temperatures ........................................................................................... 5-10 5.6 Analysis for Different Component Values ................................................................................. 5-11 5.6.1 Parametric Analysis ........................................................................................................... 5-12 5.6.2 Alter Circuit ......................................................................................................................... 5-14 5.6.3 Monte Carlo Analysis ......................................................................................................... 5-16 5.6.4 Worst Case Analysis .......................................................................................................... 5-18 5.7 Data Output and Post-Processing Commands ......................................................................... 5-19 5.8 Simulation Commands .............................................................................................................. 5-20 5.9 Simulation Setup Menu ............................................................................................................. 5-20 5.9.1 DC Bias Point Setup .......................................................................................................... 5-21 5.9.2 DC Sweep Setup ................................................................................................................ 5-21 5.9.3 Transient Analysis Setup ................................................................................................... 5-21 5.9.4 AC Sweep Setup ................................................................................................................ 5-22 5.9.5 Temperature Setup ............................................................................................................ 5-22 5.9.6 Parametric Step Setup ....................................................................................................... 5-22 5.9.7 Monte Carlo and Worst Case Setup .................................................................................. 5-23 5.9.8 .ALTER Setup .................................................................................................................... 5-23 5.9.9 Post-Processor Directives Setup ....................................................................................... 5-23 5.9.10 Save Data Setup ................................................................................................................ 5-24 5.9.11 Print Data Setup ................................................................................................................. 5-24 5.9.12 Auto Plot Setup .................................................................................................................. 5-24 5.10 SPICE Netlist and Circuit File ................................................................................................ 5-26 5.10.1 Map File .............................................................................................................................. 5-28 5.10.2 Netlisting Error Messages .................................................................................................. 5-28 5.11 Running Simulations .............................................................................................................. 5-28 5.11.1 Multiple/Parallel Simulations .............................................................................................. 5-29 5.11.2 Pause-Plot-Resume Simulation ......................................................................................... 5-29 5.12 Bias Voltages and Currents Display ...................................................................................... 5-29 5.13 Simulation Output Files .......................................................................................................... 5-30 5.14 Convergence.......................................................................................................................... 5-31 TopSpice User's Guide iv 5.14.1 DC Convergence ................................................................................................................ 5-32 5.14.2 Transient Convergence ...................................................................................................... 5-33 6 DIGITAL SIMULATION ...................................................................................................................... 6-1 6.1 Introduction .................................................................................................................................. 6-1 6.2 Digital Circuit Netlist ..................................................................................................................... 6-2 6.3 Logic States ................................................................................................................................. 6-3 6.4 Logic Simulation Time Step ......................................................................................................... 6-4 6.5 Logic Simulation Errors and Glitches ........................................................................................... 6-4 6.6 Digital Primitives .......................................................................................................................... 6-4 6.6.1 Digital Primitive Models ........................................................................................................ 6-6 6.6.2 Stimulus Generators ............................................................................................................. 6-7 6.6.3 Boolean Gates ...................................................................................................................... 6-7 6.6.4 Tri-State Gates ..................................................................................................................... 6-8 6.6.5 Delay Gate ............................................................................................................................ 6-8 6.6.6 Flip-flops ............................................................................................................................... 6-8 6.6.7 RAM Static Random-Access Memory .................................................................................. 6-9 6.6.8 ROM Read-Only Memory ..................................................................................................... 6-9 6.6.9 N-Bit Shift Registers ........................................................................................................... 6-10 6.6.10 N-Bit Counters .................................................................................................................... 6-11 6.6.11 Decoders, Encoders and Multiplexers ................................................................................ 6-12 6.6.12 Arithmetic Logic Units ......................................................................................................... 6-12 6.6.13 PULSE Pulse Generator and Multivibrator ......................................................................... 6-13 6.7 Digital Macro Models ................................................................................................................. 6-13 6.8 Analog/Digital Interface .............................................................................................................. 6-14 7 ANALOG BEHAVIORAL MODELING ............................................................................................... 7-1 7.1 Introduction .................................................................................................................................. 7-1 7.2 POLY Polynomial Source ............................................................................................................ 7-2 7.3 VALUE Source ............................................................................................................................. 7-4 7.4 TABLE Source ............................................................................................................................. 7-5 7.5 FREQ Source ............................................................................................................................... 7-6 7.5.1 S-Parameter Tables ............................................................................................................. 7-7 7.6 LAPLACE Source ........................................................................................................................ 7-8 7.6.1 Laplace Transform State Space Model .............................................................................. 7-10 7.7 RESISTOR Source .................................................................................................................... 7-11 7.8 ABM Expressions ....................................................................................................................... 7-11 7.8.1 Predefined Constants ......................................................................................................... 7-12 7.8.2 Circuit State Variables ........................................................................................................ 7-12 7.8.3 Math Functions ................................................................................................................... 7-13 7.8.4 User Defined Functions ...................................................................................................... 7-14 7.8.5 Logical Expressions ............................................................................................................ 7-15 7.8.6 Relational Expressions ....................................................................................................... 7-15 8 ABOUT SPICE .................................................................................................................................... 8-1 8.1 SPICE Program ........................................................................................................................... 8-1 8.2 SPICE Reference Books ............................................................................................................. 8-1 INDEX ............................................................................................................................................................ 1 INTRODUCTION 1-1 C H A P T E R 1 GETTING STARTED 1.1 Introduction TopSpice is a native full-featured mixed-mode, mixed-signal, circuit simulator capable of simulating circuits containing any arbitrary combination of analog devices, digital functions and high-level behavioral blocks. With TopSpice you can verify and optimize your design from the system to the transistor level. By using the built-in logic simulator to simulate the digital sections of your circuit instead of analog equivalents, mixed-mode simulation times can be reduced by orders of magnitude. TopSpice offers a fully integrated environment to capture, simulate, and analyze your circuit designs. Its flexible architecture allows the designer to integrate all the design tools, including third party tools and model libraries, into a complete CAD system. TopSpice is also unique in that it offers you the choice to design from schematic drawings, SPICE netlist (text) files or mix of schematic and netlist, or switch between them. All design and simulation functions are available from either the schematic or netlist editor front-ends. The TopSpice software consists of the following integrated component programs: Schematic Editor, Circuit File Editor, Simulator, Output File uploads/s3/ users-guide 13 .pdf
Documents similaires










-
29
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Mai 23, 2022
- Catégorie Creative Arts / Ar...
- Langue French
- Taille du fichier 2.3607MB