PSPICE仿真与安装方法
- 格式:ppt
- 大小:845.50 KB
- 文档页数:22
PSpice仿真电路的应用技巧应网友之约将Pspice8.0的一些基本使用方法提供给大家,我们共同探讨;希望对大家有所帮助,由于本人水平有限还望谅解,只当抛砖引玉吧,不妥之处请予以指出。
一、先了解Pspice8.0的使用基本程序项1、Schematics:绘制、修改电路原理图生成*。
CIR文件,或打开已有的*。
CIR文件;调用电路分析程序进行分析,并可调用图形后处理程序(Probe)查看分析结果。
2、Pspice A/D:打开已有的文本文件(*。
CIR)进行文本规定的分析,分析结果存入*。
DAT 文件中。
Schematicscs程序项的菜单中有运行Psoice程序的命令。
3、Parts:元件编辑程序,新建或修改元件的特性,模型。
4、Probe:图象后处理,可观察分析结果的图形。
Schematicscs程序项的菜单中有运行Prode程序的命令5、Stmed(Stimlus Editor)用于建立独立信号激励源和修改已建立的激励源波形。
6、Optimizer:Psoice优化设置程序7、Texte dit:文本编辑器。
8、PCB:上面8项是Psoice的基本程序,他们之间是相互关联的,最主要的是Schematicscs项,使用绘图程序项Schematicscs绘制好电路原理图,设置好相关模拟运行参数就可以对所画电路原理图进行模拟仿真了。
二、绘制电路原理图绘制电路原理图是运行Pspice程序的第一项作业,使用绘图工具能很方便的进行原理图的绘制。
1、打开Schematicscs项Schematicscs项是pspice应用程序的主窗口,可调用其它5个基本程序项。
下面是Schematicscs窗口的界面,主要工具用途已标明在案图上。
2、绘图常用命令项:Schematicscs程序项窗口有11个常用命令项:1)FIile(文件)--------------------------------省略2)Edit(编辑)---------------------------------省略3)Draw(绘图)和窗口工具一样--------省略4)Navigate(导航)---------------------------省略5)View(查看)-------------------------------省略Options(任选项)给出绘图参数设置命令,用来设置显示和打印环境。
PSPICE仿真流程(2013-03-18 23:32:19)采用HSPICE 软件可以在直流到高于100MHz 的微波频率范围内对电路作精确的仿真、分析和优化。
在实际应用中,HSPICE能提供关键性的电路模拟和设计方案,并且应用HSPICE进行电路模拟时,其电路规模仅取决于用户计算机的实际存储器容量。
二、新建设计工程在对应的界面下打开新建工程:2)在出现的页面中要注意对应的选择3)在进行对应的选择后进入仿真电路的设计:将生成的对应的库放置在CADENCE常用的目录中,在仿真电路的工程中放置对应的库文件。
这个地方要注意放置的.olb库应该是PSPICE文件夹下面对应的文件,在该文件的上层中library 中的.olb中的文件是不能进行仿真的,因为这些元件只有.olb,而无网表.lib。
4)放置对应的元件:对于项目设计中用到的有源器件,需要按照上面的操作方式放置对应的器件,对于电容,电阻电感等分离器件,可以在libraries中选中所有的库,然后在滤波器中键入对应的元件就可以选中对应的器件,点击后进行放置。
对分离元件的修改直接在对应的元件上面进行修改:电阻的单位分别为:k m;电容的单位分别为:P n u ;电感的单位分别为:n 及上面的单位只写量级不写单位。
5)放置对应的激励源:在LIBRARIES中选中所有的库,然后键入S就可以选中以S开头的库。
然后在对应的库中选中需要的激励源。
激励源有两种一种是自己进行编辑、手工绘制的这个对应在库中选择:另外一种是不需要自己进行编辑:该参数的修改可以直接的在需要修改的数值上面就行修改,也可以选定电源然后点击右键后进行对应的修改。
6)放置地符号:地符号就是在对应的source里面选择0的对应的标号。
7)直流电源的放置:电源的选择里面应该注意到选择source 然后再选定VDC或者是其它的对应的参考。
8)放置探头:点击对应的探头放置在感兴趣的位置处。
6 对仿真进行配置:1)对放置的项目的名称进行设置,也就是设置仿真的名称。
April 2016© 2013Cadence Design Systems, Inc. All rights reserved.Portions © Apache Software Foundation, Sun Microsystems, Free Software Foundation, Inc., Regents of the University of California, Massachusetts Institute of T echnology, University of Florida. Used by permission. Printed in the United States of America.Cadence Design Systems, Inc. (Cadence), 2655 Seely Ave., San Jose, CA 95134, USA.Product PSpice contains technology licensed from, and copyrighted by: Apache Software Foundation, 1901 Munsey Drive Forest Hill, MD 21050, USA © 2000-2005,Apache Software Foundation. Sun Microsystems, 4150 Network Circle, Santa Clara, CA 95054 USA © 1994-2007, Sun Microsystems, Inc. Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA © 1989, 1991, Free Software Foundation, Inc. Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, © 2001, Regents of the University of California. Daniel Stenberg, © 1996 - 2006, Daniel Stenberg. UMFPACK ©2005,TimothyA.Davis,UniversityofFlorida,(**************.edu).KenMartin,WillSchroeder,Bill Lorensen © 1993-2002, Ken Martin, Will Schroeder, Bill Lorensen. Massachusetts Institute of Technology, 77 Massachusetts Avenue, Cambridge, Massachusetts, USA © 2003, the Board of Trustees of Massachusetts Institute of Technology. All rights reserved.Trademarks: Trademarks and service marks of Cadence Design Systems, Inc. contained in this document are attributed to Cadence with the appropriate symbol. For queries regarding Cadence’s trademarks, contact the corporate legal department at the address shown above or call 800.862.4522.Open SystemC, Open SystemC Initiative, OSCI, SystemC, and SystemC Initiative are trademarks or registered trademarks of Open SystemC Initiative, Inc. in the United States and other countries and are used with permission.All other trademarks are the property of their respective holders.Restricted Permission: This publication is protected by copyright law and international treaties and contains trade secrets and proprietary information owned by Cadence. Unauthorized reproduction or distribution of this publication, or any portion of it, may result in civil and criminal penalties. Except as specified in this permission statement, this publication may not be copied, reproduced, modified, published, uploaded, posted, transmitted, or distributed in any way, without prior written permission from Cadence. Unless otherwise agreed to by Cadence in writing, this statement grants Cadence customers permission to print one (1) hard copy of this publication subject to the following conditions:1.The publication may be used only in accordance with a written agreement between Cadence and itscustomer.2.The publication may not be modified in any way.3.Any authorized copy of the publication or portion thereof must include all original copyright,trademark, and other proprietary notices and this permission statement.4.The information contained in this document cannot be used in the development of like products orsoftware, whether for internal or external use, and shall not be used for the benefit of any other party, whether or not for consideration.Disclaimer: Information in this publication is subject to change without notice and does not represent a commitment on the part of Cadence. Except as may be explicitly set forth in such agreement, Cadence does not make, and expressly disclaims, any representations or warranties as to the completeness, accuracy or usefulness of the information contained in this document. Cadence does not warrant that use of such information will not infringe any third party rights, nor does Cadence assume any liability for damages or costs of any kind that may result from use of such information.Restricted Rights: Use, duplication, or disclosure by the Government is subject to restrictions as set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its successor.ContentsBefore you begin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 How to use this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Symbols and conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Related documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 What this user’s guide covers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 PSpice overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Add-on options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Smoke Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Advanced Optimizer Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 PSpice Advanced Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 SLPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 If you don’t have the standard PSpice A/D package . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Comparison of the different versions of PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 If you have PSpice Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Minimum hardware requirements for running PSpice: . . . . . . . . . . . . . . . . . . . . . . . . 32 PSpice Samples and T utorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Part one: Simulation primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1Things you need to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 What is PSpice? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Analyses you can run with PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Basic analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Advanced multi-run analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Analyzing waveforms with PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 What is waveform analysis? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Using PSpice with other programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Using design entry tools to prepare for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . 47What is the PSpice Stimulus Editor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 What is the PSpice Model Editor? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Files needed for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Files that design entry tool generates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Other files that you can configure for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Files that PSpice generates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Directory structure for analog projects in Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 How are files configured at the design level maintained in the directory structure for analog projects? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 How are files configured at the profile level maintained in the new directory structure for analog projects? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 What happens when I convert an analog project that uses a design from another project or from another location? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 What should I do if the schematic for a converted analog project uses FILESTIM n parts from the SOURCE library? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Design Entry HDL libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Reference Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Local libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 PSpice model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 The cds.lib file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Encrypting PSpice Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Using PSpiceEnc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Using Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 722Simulation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Example circuit creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Using Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Using Design Entry HDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Using Design T emplates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Finding out more about setting up your design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Running PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Performing a bias point analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Using the simulation output file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Finding out more about bias point calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Setting up and running a DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Displaying DC analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Finding out more about DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 T ransient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Finding out more about transient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 AC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Setting up and running an AC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 AC sweep analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Finding out more about AC sweep and noise analysis . . . . . . . . . . . . . . . . . . . . . . . 122 Parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Setting up and running the parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Analyzing waveform families . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Finding out more about parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Performance analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Finding out more about performance analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136Part two: Design entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1383Preparing a design for simulation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Checklist for simulation setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 T ypical simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Advanced design entry and simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . . . 141 When netlisting fails or the simulation does not start . . . . . . . . . . . . . . . . . . . . . . . . 142 Using parts that you can simulate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Vendor-supplied parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Passive parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Breakout parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Behavioral parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Simulating asymmetric parts in PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Simulating homogenous parts in PSpice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Specifying values for part properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Using global parameters and expressions for values . . . . . . . . . . . . . . . . . . . . . . . . . . 158Global parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Defining power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 For the analog portion of your circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 For A/D interfaces in mixed-signal circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Defining stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Analog stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Digital stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Things to watch for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Unmodeled parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Unconfigured model, stimulus, or include files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Unmodeled pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Missing ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 Missing DC path to ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1854Creating and editing models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 What are models? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 How are models organized? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Model library configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Global vs. design vs. profile models and libraries . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Nested model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 PSpice-provided models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Model library data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 Device characteristic curves-based models vs. Template-based models . . . . . . . . 195 T ools to create and edit models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Ways to create and edit models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 Using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Ways to use the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Running the Model Editor alone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Starting the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Creating models using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Creating models based on device characteristic curves . . . . . . . . . . . . . . . . . . . . . 203Creating models based on PSpice templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Importing an existing model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Enabling and disabling automatic part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Running the Model Editor from the schematic editor . . . . . . . . . . . . . . . . . . . . . . . . 215 Model creation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 Example: Creating a PSpice model based on device characteristic curves . . . . . . . 219 Example: Creating template-based PSpice model . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Editing model text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 Example: editing a Q2N2222 instance model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Using the Create Subcircuit Format Netlist command (Capture only) . . . . . . . . . . . . . . 237 Changing the model reference to an existing model definition . . . . . . . . . . . . . . . . . . . 239 Reusing instance models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 Reusing instance models in the same schematic . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Making instance models available to all designs . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Configuring model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 The Configuration Files tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 How PSpice uses model libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 Adding model libraries to the configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 Changing the model library scope from profile to design, profile to global, design to global and vice versa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 Changing model library search order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Changing the library search path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 Handling smoke information using the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 Adding smoke information to PSpice models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 Creating template-based PSpice models with smoke information . . . . . . . . . . . . . . 256 Using the Model Editor to edit smoke information . . . . . . . . . . . . . . . . . . . . . . . . . . 256 Examples: Smoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Adding smoke information to the D1 diode model . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Adding smoke information to the OPA_LOCAL operational amplifier model . . . . . . 259 Smoke parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 Diode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 Bipolar Junction Transistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 Magnetic Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Ins Gate Bipolar T ransistor (IGBT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Junction FET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 Operational Amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268MOSFET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 Voltage Regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271 Darlington T ransistor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2735Creating parts for models. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 What’s different about parts used for simulation? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 Ways to create parts for models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Preparing your models for part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 Starting the Model Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Using the Model Editor to create parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Batch mode of part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Interactive mode of part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Creating Design Entry T ool parts for all models in a library . . . . . . . . . . . . . . . . . . . . . . 282 Using batch mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Using interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Setting up automatic part creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 Creating parts in the batch mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 Creating parts using interactive mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 Basing new parts on a custom set of parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 Editing part graphics (Capture only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 How Capture places parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 Defining grid spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Attaching models to parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 MODEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Defining part properties needed for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308 PSPICETEMPLATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 IO_LEVEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 MNTYMXDL Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 PSPICEDEFAULTNET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3216Analog behavioral modeling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323 Overview of analog behavioral modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324 The ABM part library file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 Placing and specifying ABM parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Net names and device names in ABM expressions . . . . . . . . . . . . . . . . . . . . . . . . . 326 Forcing the use of a global definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 ABM part templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 Control system parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Basic components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 Limiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Chebyshev filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Integrator and differentiator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 T able look-up parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Laplace transform part . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 Math functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348 ABM expression parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349 An instantaneous device example: modeling a triode . . . . . . . . . . . . . . . . . . . . . . . 353 PSpice-equivalent parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 Implementation of PSpice-equivalent parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 Modeling mathematical or instantaneous relationships . . . . . . . . . . . . . . . . . . . . . . 358 Lookup tables (ET ABLE and GT ABLE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 Frequency-domain device models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364 Laplace transforms (LAPLACE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364 Frequency response tables (EFREQ and GFREQ) . . . . . . . . . . . . . . . . . . . . . . . . . 366 Cautions and recommendations for simulation and analysis . . . . . . . . . . . . . . . . . . . . . 369 Instantaneous device modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Frequency-domain parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 Laplace transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 T rading off computer resources for accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 Basic controlled sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375 Creating custom ABM parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375。
《PSpice使用教程》课件•引言•PSpice基础操作•电路元件与模型库•仿真设置与运行分析目•高级功能应用•故障排查与问题解决录引言它能够对电路进行直流分析、交流分析、瞬态分析等,并输出相应的电压、电流等波形图。
PSpice 广泛应用于电子工程、通信工程、自动化控制等领域。
PSpice是一款电子电路仿真软件,全称为Personal Simulation Program with Integrated Circuit Emphasis。
PSpice简介模拟电路设计和分析数字电路设计和验证混合信号电路仿真电源电路设计和优化PSpice应用领域本课件旨在帮助学习者掌握PSpice软件的使用方法,提高电子电路设计和分析能力。
课件结构本课件包括引言、基础知识、电路仿真实践、高级应用和结论等部分,其中引言部分介绍PSpice软件的基本概念、应用领域和课件目的;基础知识部分介绍电路仿真所需的基本理论和PSpice软件的基本操作;电路仿真实践部分通过实例演示PSpice软件的使用方法;高级应用部分介绍PSpice 软件在复杂电路设计中的应用;结论部分总结本课件的主要内容和学习成果。
课件目的课件目的和结构VSPSpice基础操作软件安装与启动系统要求安装步骤启动方法属性栏显示选中对象的属性和参数设置等。
显示当前打开的项目文件和电路图等。
工具栏提供常用工具的快捷按钮,如画笔、选择、移动、旋转等。
主界面组成包括菜单栏、工具栏、项目栏、菜单栏提供文件、编辑、视图、插入、模拟、工具和帮助等菜单选项。
界面布局及功能介绍菜单栏和工具栏使用菜单栏操作01工具栏操作02自定义工具栏03通过菜单栏或工具栏中的新建选项来创建一个新的PSpice 项目。
新建项目保存项目另存为功能最近打开项目通过菜单栏或工具栏中的保存选项来保存当前项目文件和电路图等。
用户可以选择将当前项目另存为其他格式或版本的文件。
PSpice 软件会自动记录最近打开过的项目文件,方便用户快速打开。
ORCAD9.2安装步骤!作者:admin 2008-1-8 9:18 AM首先前几步按照一般常规软件安装,到以下步骤按照图示安装就行了!OrCad 9.2安装说明2009年02月26日星期四 22:46光盘里有一个CRACK文件夹,里面包含有一个破解文件(安装完成后使用)和一个install.nfo安装说明,不明白的可以去看.不过我在这里简单说明一下:你需要安装的程序对应的序列号Capture ACaptureCIS BLayoutStd ELayoutPlus FLayoutEngEd GPSpice HPSpiceAD IPSpiceADBasics JPSpiceOptimizer K如果你需要安装所有程序,只需要输入BFIK即可,注意,输入一个字母后就按回车,再输入,按照我的顺序然后下一步,会显示出你已经选择安装的程序,然后下面的框里你再重复输入一便即可,如果出现对话诓无法下一步,没关系,把下面那个框里的东西全部删除,随便输入一个字母就可以安装了!安装完毕以后运行CRACK目录下的PDXorCad.exe,选择ORCAD的那个目录,执行就OK了,如果破解程序执行后出现说有错误,不必理会,破解已经成功了。
下载后,用Winrar解压。
然后察看Crack中的Install.nfo文件具体如下:sdlk sdlksdlksdlkOrCAD 9.2 安装序列号sdlksdlk0000-00000-0000 for Capture CIS1000-00000-0000 for Express2000-00000-0000 for Express Plus3000-00000-0000 for Layout4000-00000-0000 for Layout Plus5000-00000-0000 for Layout Engineer's Edition6000-00000-0000 for PsPice (Analog)7000-00000-0000 for PsPice A/D8000-00000-0000 for PsPice A/D Basics9000-00000-0000 for PsPice OptimizersdlksdlkThis is authorization code:sdlksdlk0000-000-0000-00000-00000注册码:5345-5916-6029-1242-1917光盘里有一个CRACK文件夹,里面包含有一个破解文件(安装完成后使用)和一个install.nfo安装说明,不明白的可以去看.不过我在这里简单说明一下:你需要安装的程序对应的序列号Capture ACaptureCIS BLayoutStd ELayoutPlus FLayoutEngEd GPSpice HPSpiceAD IPSpiceADBasics JPSpiceOptimizer K如果你需要安装所有程序,只需要输入BFIK即可,注意,输入一个字母后就按回车,再输入,按照我的顺序然后下一步,会显示出你已经选择安装的程序,然后下面的框里你再重复输入一便即可,如果出现对话诓无法下一步,没关系,把下面那个框里的东西全部删除,随便输入一个字母就可以安装了!安装完毕以后运行CRACK目录下的PDXorCad.exe,选择ORCAD的那个目录,执行就OK了,如果破解程序执行后出现说有错误,不必理会,破解已经成功了。
17.2_OrCAD_Lite_Capture_PSpice软件的安装和使用方法简介软件安装方法:下载“17.2_OrCAD_Lite_Capture_PSpice.zip”,双击解压,解压后双击“setup.exe”进行安装。
点“Next”选“I accept the terms of the license agreement”,点“Next”点“Install”开始安装。
点“Finish”完成安装。
按开始按钮,选择“所有程序/Cadence Release 17.2-2016”,选择“OrCAD Lite Products”,点击“CaptureCIS Lite”,如图所示。
也可以右击鼠标,发送到,桌面快捷方式。
17.2_OrCAD_Lite_Capture_PSpice 使用方法简介例1:电路如图1所示,试求:各节点电压、各支路电流和电阻消耗的功率。
Ω10Ω51图1仿真步骤一:绘制电路图(1)进入绘制电路图窗口 按按钮,选择“所有程序/Cadence Release 17.2-2016”,选择“OrCAD Lite Products”,点击“CaptureCIS Lite”,即可进入OrCAD Capture CIS 主界面,如图2所示。
选择“New Project”。
新建设计新建项目打开已有设计打开已有项目最近使用过的项目图2也可以利用菜单File/New/Project ,则出现New Project 对话框,如图3所示。
数/模混合仿真印刷电路板设计可编程器件设计原理图设计保存路径(不可有汉字)项目名称(不能有汉字)图3 New Project对话框图3对话框中,需在Name中键入所绘制电路图名称(例:ygb),电路图名称可由英文字符串或数字组成,不能包含汉字;Create a New Project Using中有4个选项,实验中选择“Analog or Mixed-Signal Circuit”,表示绘制电路图后直接进行电路仿真;Location项中应填入存储路径(例:C:\SPB_Data)。
将下载文件ps1.img ~ps9.zip 、undisk.zip 分别解压缩至PSPICE50文件夹,形成1.img ~9.img 、undisk.exe 共10个文件,执行如下命令: undisk *.img 回车在还原过程中,会3次提示有文件重复是否覆盖?均回答N ,即完成安装。
启动方法:在DOS 下进入PSPICE 子目录,输入PS 回车。
下拉菜单: 1.Files (文件)1.1.current File...(当前文件)执行后弹出定义输入文件对话框,提示输入电路网单文件名,输入后缀为.cir 文件名,回车。
若文件已存在,则打开文件,并在提示区显示“Loaded”(已调入);反之,则新建文件,并在提示区显示“New”(新建)。
回车使能,并在菜单命令前加上使能标记“>>”。
再次执行该命令使不能,并取消菜单命令前的使能标记。
3.3.>>log to file...(记录到文件)将用户操作stmEd 的整个步骤记录到一个文件中。
执行后,提示创建记录文件?回答Y 后,提示输入记录文件名,回车使能并在菜单命令前加上使能标记“>>”。
再次执行该命令使不能,并取消菜单命令前的使能标记。
要打开当前工作目录下的电路网单文件,也可按F4键,弹出一个文件列表,用鼠标或键盘方向键选中其中的一个文件即可。
1.2.Edit(编辑)执行后,启动Pspice自带的电路编辑器(最大文件尺寸为32K),它实际上是一个与Edit类似的文本编辑器,其上方为状态栏,列出了当前光标的行列位置,插入/改写状态。
下方为编辑窗口,下面列出了它的主要编辑功能键:ctrl+A: 左移一个单词ctrl+F: 右移一个单词ctrl+Z: 上移一行ctrl+W: 下移一行ctrl+Y: 删除当前行ctrl+PGUP: 移至文件首ctrl+PGDN: 移至文件尾ctrl+HOME: 移至页首ctrl+END: 移至页尾alt+M: 开始标记一个块alt+C: 拷贝至剪贴板alt+X: 剪切至剪贴板alt+P: 粘贴至当前光标处alt+S: 匹配搜索F7:toggle justify鼠标操作:单击左或右键,开始标记块,同时击左右键,放弃。
orcadPspice教程目录•软件介绍与安装•基本操作与界面熟悉•原理图绘制与编辑•仿真分析与参数设置•PCB设计基础与应用•高级功能探索与实战案例CONTENTSCHAPTER01软件介绍与安装Orcad Pspice概述Orcad Pspice是一款广泛应用的电路仿真软件,用于模拟、分析和优化电子系统性能。
它提供了丰富的元件库、仿真类型和高级分析功能,支持从原理图到PCB设计的全流程。
Orcad Pspice在电子设计自动化(EDA)领域具有重要地位,被广泛应用于学术研究和工业界。
02030401软件安装步骤下载Orcad Pspice 安装包,并解压到指定目录。
双击运行安装程序,按照提示进行安装。
选择安装路径、语言和其他选项。
等待安装完成,并重启计算机。
授权与激活方法购买正版Orcad Pspice软件,获取授权文件。
运行Orcad Pspice软件,选择“帮助”菜单下的“激活”选项。
将授权文件复制到软件安装目录下的指定位置。
输入授权文件中的激活码,完成激活过程。
CHAPTER02基本操作与界面熟悉1 2 3启动Orcad Pspice软件:双击桌面图标或从开始菜单启动。
软件界面概览:包括菜单栏、工具栏、项目浏览器、属性窗口等。
自定义界面:根据个人习惯调整界面布局,提高工作效率。
启动软件及界面介绍菜单栏功能详解编辑功能工具选项复制、粘贴、撤销、重做等编辑操作。
提供各种实用工具,如计算器、单位转换器等。
文件操作视图调整帮助与支持新建、打开、保存、另存为、关闭等文件基本操作。
放大、缩小、平移、旋转等视图操作。
提供软件帮助文档、在线教程等资源。
属性编辑器查看和修改电路元件的属性参数。
浏览和搜索电路元件库,将所需元件添加到电路中。
文本工具添加注释、标签等文本信息。
选择工具用于选择电路元件或连线。
绘图工具包括直线、曲线、多边形等绘图命令。
工具栏常用命令CHAPTER03原理图绘制与编辑创建新原理图文件打开Orcad Pspice软件,选择“File”菜单下的“New”选项,然后选择“Schematic”创建一个新的原理图文件。
Pspice for Windows电路仿真软件的使用方法小龙【期刊名称】《电子世界》【年(卷),期】1998(000)010【摘要】Spice是一种用于电路仿真的软件,Pspice则是在其基础上发展而来的用于PC机上运行的电路仿真软件。
随着PC性能的不断提高,PSpice也有了很大的变化。
PSpice5.0及以前的版本运行于DOS环境下,而PSpice5.1及以后的版本则运行于Windows环境下,且输入作业方式由网络表文件变化为电路图,给用户带来了很大的方便。
对于已掌握PSpice for DOS的用户,学习 PSpice forWindows 的使用方法是很快捷的。
现在通过一个示例介绍PSpice for Windows的使用方法。
要求读者有Windows的操作基础并了解PSpice for DOS的使用方法。
安装好的PSpice for Windows会产生Design Center Eval程序组,如图1所示(笔者所用版本为5.3),其中有五个程序项。
第一个程序项为Schematics,它能完成电路图的编辑、存储等工作。
【总页数】1页(P22)【作者】小龙【作者单位】无【正文语种】中文【中图分类】TP317【相关文献】1.浅谈PSpice电路仿真软件及在电子线路中的应用 [J], 郅富标2.Orcad Pspice电路仿真软件在半导体元器件特性模拟分析中的应用 [J], 杨迁迁3.Orcad Pspice电路仿真软件在电工电子课中的应用 [J], 徐长安4.简谈PSpice电路仿真软件与其在电子线路中的应用 [J], 王付华;王永杰;周岩5.基于电子电路仿真软件(PSPICE)的MOV全电流仿真模型的建立 [J], 刘艳;张其林;李祥超因版权原因,仅展示原文概要,查看原文内容请购买。