PSPICE仿真与安装方法
OrCAD-PSpice混合电路仿真与基本使用教程

5.7 绘制总线BUS
绘制总线
OrCAD-PSpice混合电路仿真和基本 使用教程
总线连接线(bus entry)不具有电气意 义; 应用网络标号进行导线连接;
OrCAD-PSpice混合电路仿真和基本 使用教程
总线应用实例
OrCAD-PSpice混合电路仿真和基本 使用教程
OrCAD-PSpice混合电路仿真和基本 使用教程
OrCAD-PSpice混合电路仿真和基本 使用教程
生成新图纸
OrCAD-PSpice混合电路仿真和基本 使用教程
最大化
OrCAD-PSpice混合电路仿真和基本 使用教程
菜单栏 主工具栏
PSpice工具栏
绘图工具栏
OrCAD-PSpice混合电路仿真和基本 使用教程
方法2 Place Part Add Library
OrCAD-PSpice混合电路仿真和基本 使用教程
查找库文件
OrCAD-PSpice混合电路仿真和基本 使用教程
5.3 变更鼠标选取对象部方分选式中、
还是全部选中
OrCAD-PSpice混合电路仿真和基本 使用教程
Select选项卡
OrCAD-PSpice混合电路仿真和基本 使用教程
PAGE1(NEW)
OrCAD-PSpice混合电路仿真和基本 使用教程
OrCAD-PSpice混合电路仿真和基本 使用教程
PAGE1(OLD)
OrCAD-PSpice混合电路仿真和基本 使用教程
PAGE2(OLD)
OrCAD-PSpice混合电路仿真和基本 使用教程
OrCAD-PSpice混合电路仿真和基本 使用教程
PSPICE仿真流程

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)对放置的项目的名称进行设置,也就是设置仿真的名称。
OrCAD-PSPICE-仿真入门

印制版设计
(四)电路印制版电路版PCB板设计
一、快速穿越 Layout Plus
1. 生成Netlist 在Capture中的专案
管理视窗下(点File/项目名), 点击Tools>Creat Netlist…
印制版设计
生成Netlist
在Create Netlist 菜单栏下选Layout按下图选择,确定
放置集成块运放uA741
➢ 执行P1ace/Part命令 ➢ 在 “Libraries”列表框
中选择“OPAMP”库 ➢ 在 “Part”列表框中选
择“uA741” ➢ 单击“OK”
➢ 将集成块移至合适位置, 按鼠标左键
➢ 按ESC键或鼠标右键点 end mode以结束绘制 元器件状态
器件放置
➢ 也可以按下步骤放置uA741:
印制版设计
2、启动OrCAD/ Layout
选择“开始”→“程序”→“OrCAD Release 9.1”→“Layout”
印制版设计
3、 启动命令或按钮 4、 指定所要启用的板框档(*.tpl)或技术档(*.tch),查找范 围Orcad/Layout/Data 如下图,查找DEFAULT文件,打开
放置地符号
➢ 执行P1ace/Ground命令 ➢ 在 “Libraries”列表框中
选择“SOURCE” ➢ 在 “Symbol”列表框中选
择“ 0/SOURCE” ➢ 单击“OK” ➢ 将地符号0 地移至合适位
置,按鼠标左键
➢ 按ESC键或鼠标右键点 end mode以结束绘制元 器件状态
原理图绘制
器件封装调用
在Link Footprint to Component 栏内点OK,对于没有 定义的管脚封装图,出现MAXECO提示说明,确定
PSpice仿真软件使用指南说明书

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电路仿真的使用说明.ppt

共35页
3
高精度电路仿真器
Spectre/SpectreRF(cadence) Hspice/HspiceRF(avanti) Ads(Agilent 主要针对RF) eldo(Mentor Graphics) saber(Synopsys)
共35页
4
高速电路仿真器(针对百万门电路)
放置导线(wire)
小技巧:视图的放大和缩小可以用热键 I 放大; 热键 O 缩小
共35页 21
放置接点(junction)
1、选中原理图编辑窗口,使加速板出现 2、开始放置导线可以有三种方法 A、菜单 Place>Junction… B、按加速板上的 键. C、用热键 J 3、在需要节点的地方,可以点一下鼠标左 键就可以放置一个节点。
放置元件(part)
3、选择元件库(library),选择元件(part) 4、放置在电路原理图上,翻转元件,可以选中后按 R 键 5、删除元件 可以选中后 按 Del 键 6、复制元件
共35页
18
放置元件(part)
复制元件可以才用两种方法: 1、选中想要复制的元件,使用Ctrl+C把 元件复制到剪切板,而后可以使用 Ctrl+V把元件从剪切板复制到当前位置。 2、选中想要复制的元件。按住 Ctrl 键, 同时用鼠标左键点住选中的元件拖曳到 需要的位置,即可复制一个元件
K MEG G T
1E3 1E6 1E9 1E12
共35页
10
Pspice集成环境
共35页
11
进入OR-CAD的集成环境
1、运行 OR-CAD CAPTURE 2、选择菜单 File>New>Project … 3、在Name中为工程起 一个名字 4、选择新项目的类型, 本例选择Schematic 5、在Location 中选择工程 的存放目录 6、选择OK
2024版《PSpice使用教程》课件

《PSpice使用教程》课件•引言•PSpice基础操作•电路元件与模型库•仿真设置与运行分析目•高级功能应用•故障排查与问题解决录引言它能够对电路进行直流分析、交流分析、瞬态分析等,并输出相应的电压、电流等波形图。
PSpice 广泛应用于电子工程、通信工程、自动化控制等领域。
PSpice是一款电子电路仿真软件,全称为Personal Simulation Program with Integrated Circuit Emphasis。
PSpice简介模拟电路设计和分析数字电路设计和验证混合信号电路仿真电源电路设计和优化PSpice应用领域本课件旨在帮助学习者掌握PSpice软件的使用方法,提高电子电路设计和分析能力。
课件结构本课件包括引言、基础知识、电路仿真实践、高级应用和结论等部分,其中引言部分介绍PSpice软件的基本概念、应用领域和课件目的;基础知识部分介绍电路仿真所需的基本理论和PSpice软件的基本操作;电路仿真实践部分通过实例演示PSpice软件的使用方法;高级应用部分介绍PSpice 软件在复杂电路设计中的应用;结论部分总结本课件的主要内容和学习成果。
课件目的课件目的和结构VSPSpice基础操作软件安装与启动系统要求安装步骤启动方法属性栏显示选中对象的属性和参数设置等。
显示当前打开的项目文件和电路图等。
工具栏提供常用工具的快捷按钮,如画笔、选择、移动、旋转等。
主界面组成包括菜单栏、工具栏、项目栏、菜单栏提供文件、编辑、视图、插入、模拟、工具和帮助等菜单选项。
界面布局及功能介绍菜单栏和工具栏使用菜单栏操作01工具栏操作02自定义工具栏03通过菜单栏或工具栏中的新建选项来创建一个新的PSpice 项目。
新建项目保存项目另存为功能最近打开项目通过菜单栏或工具栏中的保存选项来保存当前项目文件和电路图等。
用户可以选择将当前项目另存为其他格式或版本的文件。
PSpice 软件会自动记录最近打开过的项目文件,方便用户快速打开。
pspice 9.2 安装步骤

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了,如果破解程序执行后出现说有错误,不必理会,破解已经成功了。
PSPICE仿真

PSPICE仿真目录介绍: (3)新建PSpice仿真 (5)新建项目 (5)放置元器件并连接 (5)生成网表 (9)指定分析和仿真类型 (9)Simulation Profile设置: (11)开始仿真 (12)参量扫描 (14)Pspice模型相关 (18)PSpice模型选择 (18)查看PSpice模型 (18)PSpice模型的建立 (20)介绍:PSpice是一种强大的通用模拟混合模式电路仿真器,可以用于验证电路设计并且预知电路行为,这对于集成电路特别重要。
PSpice可以进行各种类型的电路分析。
最重要的有:●非线性直流分析:计算直流传递曲线。
●非线性瞬态和傅里叶分析:在打信号时计算作为时间函数的电压和电流;傅里叶分析给出频谱。
●线性交流分析:计算作为频率函数的输出,并产生波特图。
●噪声分析●参量分析●蒙特卡洛分析PSpice有标准元件的模拟和数字电路库(例如:NAND,NOR,触发器,多选器,FPGA,PLDs 和许多数字元件)分析都可以在不同温度下进行。
默认温度为300K电路可以包含下面的元件:●Independent and dependent voltage andcurrent sources 独立和非独立的电压、电流源●Resistors 电阻●Capacitors 电容●Inductors 电感●Mutual inductors 互感器●Transmission lines 传输线●Operational amplifiers 运算放大器●Switches 开关●Diodes 二极管●Bipolar transistors 双极型晶体管●MOS transistors 金属氧化物场效应晶体管●JFET 结型场效应晶体管●MESFET 金属半导体场效应晶体管●Digital gates 数字门●其他元件 (见用户手册)。
新建PSpice仿真新建项目如图1所示,打开OrCAD Capture CIS Lite Edition,创建新项目:File > New > project。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
路 + ad=0.432p as=0.432p pd=1.92u ps=1.92u
描 mn1 out in 0 0 nmos w=0.36u l=0.24u
dd
述 +ad=0.2736p as=0.2736p pd=1.8u ps=1.8u
C1 out 0 10f
.ends inv
Vin
* 5 stage inverters
5、 标出子电路调用名
.TRAN 0.01ns 100ns
X开头
.PROBE
12
2020/3/16
.END
4.5 PSPICE的语句
一、元件卡
R开头的字符数字串,不超过8个
1、电阻:Ryyyyyyy +node -node value
例如:R12
out in1 10k
电压调用V(R12) :out正 in1负
电 xinv1 in1 dd out1 inv
路 网
xinv2 out1 dd out2 inv
表 xinv3 out2 dd out3 inv
描 xinv4 out3 dd out4 inv
述 xinv5 out4 dd out5 inv
vdd
dd 0 2.5v
in
out
0
子电路名Inv
vin
in1 0 pulse(0v 2.5v 0ns 0ns 0ns 10ns 20ns)
1)脉冲源
Vyyyyyyy +node -node pulse ( V1 V2 TD Iyyyyyyy +node -node pulse ( V1 V2 TD
电压1 电压2 延时
2)正弦源
Vyyyyyyy +node -node sin ( V0 VA FREQ 偏移值 振幅 频率
TR TR 上升
u 微 10-6 m 毫 10-3
C1 out 0 10f .ends inv * 5 stage inverters
K千 MEG 兆 G吉
10+3 10+6 10+9
xinv1 in1 dd out1 inv xinv2 out1 dd out2 inv xinv3 out2 dd out3 inv xinv4 out3 dd out4 inv
(2)、交流独立源 (仅交流分析起作用,直流分析与瞬态分析不起作用)
Vyyyyyyy +node -node <幅度值 <相位值>> Iyyyyyyy +node -node <幅度值 <相位值>> 幅度值: 隐含值=1V (1A) 相位值:隐含值=0度
15 2020/3/16
(3)、瞬态独立源 (仅瞬态分析起作用,直流分析与交流分析不起作用)
HSPICE
--- 文本方式
1 2020/3/16
2、PSPICE 功能
一、支持的元器件类型
• 基本无源元件:电阻、电容、电感、传输线等;
• 半导体器件:二极管、双极晶体管、结型场效应管、
•
MOS管等;
• 独立电压源和独立电流源;
• 其它
二、分析类型
• 直流分析:直流特性扫描分析; • 交流分析:频率特性、噪声特性分析; • 瞬态分析:包括瞬态响应分析,傅立叶分析; • 参数扫描:包括温度特性分析,参数扫描分析; • 统计分析:包括蒙托卡罗分析、最坏情况分析;
电流调用I(R12) :out 流向in1
2、电容:Cyyyyyyy +node -node value
例如:Cin2
in2 0 10f
3、电感:Lyyyyyyy +node -node value
例如:L2
2 0 20mH
注:SPICE中有关RLC的其它描述 非线性电感电容电阻,传输线,互感,温度系数,初始条件
dd
Mp1
out
Inv 子电路名
in
out
Mn1
0 子电路 dd
out1 out2 out3 out4
xinv1
xinv2 xinv3
xinv4
xinv5
Vdd 0 out5
子电路调用名
Vin
out1
8
6、写出网表
注释语句,以*开头
* inverter sub-circuit define
子 电
.subckt inv in dd out mp1 out in dd dd pmos w=0.72u l=0.24u
3、元件名
+ad=0.2736p as=0.2736p pd=1.8u ps=1.8u
元件名第一个字符:
C1 out 0 10f
电阻
R
.ends inv
电容
C
电感
L
独立电压源 V
独立电压源 I
* 5 stage inverters xinv1 in1 dd out1 inv xinv2 out1 dd out2 inv xinv3 out2 dd out3 inv
分 析
.options vntol=0.01uv .options reltol=0.0001
输 .TRAN 0.01ns 100ns 出 .PROBE
in
out1 out2 out3
.END 结束语句
dd out4
Vdd 0 out5
Vin
Xinv1 Xinv2 Xinv3 Xinv4 Xinv5
.TRAN 0.01ns 100ns .PROBE .END
单位可缺省
角度:deg
C1 out 0 10f 10f=10fF
11
2020/3/16
4.4 PSPICE的取名规则
dd
1、长度 名字(节点名、元件名、子电路调用名、子电
路调用名)均为一至八个字母数字串
in
out
2、节点名
* inverter sub-circuit define
1、画出电路图(包括子电路)
2、标出节点名
in
所有节点均要编节点名
“地”必须编为0
3、标出元件名 元件名第一个字符:
MOS管---M 电压源 ---V
电容 ---C
电阻 ----R
in
4、标出子电路名
Vin
(子电路名:字母开头)
标出子电路调用名
0
(子电路调用名--- X开头)
5、画出预期波形
2020/3/16
dd
in
out
5、二极管:
0
Dyyyyyyy +node -node 模型名
6、三极管:
Qyyyyyyy C极 B极 E极 模型名
7、结型场效应管:
Jyyyyyyy D极 G极 S极 模型名
14 2020/3/16
5、独立源
(1)、直流独立源 (直流分析,交流分析,瞬态分析起作用)
Vyyyyyyy +node -node 电压值 Iyyyyyyy +node -node 电流值
2020/3/16
0
子电路调用名
9
4.2 PSPICE一般语法
* inverter sub-circuit define .subckt inv in dd out
注释语句,以*开头;
mp1 out in dd dd pmos w=0.72u l=0.24u + ad=0.432p as=0.432p pd=1.92u ps=1.92u
13 2020/3/16
4、MOS管:
Myyyyyyy D端 G端 S端 B端 模型名 W=值 L=值 AD= 值 AS=值 PD=值 PS=值
mn1
out in 0 0 nmos w=0.36u l=0.24u ad=0.2736p as=0.2736p pd=1.8u ps=1.8u
沟长L 沟宽W 漏扩散面积AD 源扩散面积AS 漏结周长PD 源结周长PS
.options vntol=0.01uv
英文大小写:不区分
.options reltol=0.0001 .TRAN 0.01ns 100ns
.PROBE
.END
10 2020/3/16
4.3 PSPICE的数与单位
* inverter sub-circuit define
常用数量级: f 飞 10-15 p 皮 10-12 n 纳 10-9
MOS管
M
三极管
Q J
xinv4 out3 dd out4 inv
xinv5 out4 dd out5 inv
vdd
dd 0 2.5v
vin
in1 0 pulse(0v 2.5v 0ns 0ns 0ns 10ns 20ns)
4、子电路名 字母开头
.options vntol=0.01uv .options reltol=0.0001
例如:
.MODEL nMOS NMOS ( LEVEL = 7
可采用全安装
5 2020/3/16
填入授权代码(Authorization Code),具体参照Crack.txt, 点击Next;
6 2020/3/16
最后必须: 把orcad.lic文件复制到OrCAD安装目录下。
7 2020/3/16
4、PSPICE 文本方式
dd
4.1 使用举例 (5级反相器)
一行一条语句
xinv2 out1 dd out2 inv
xinv3 out2 dd out3 inv
(以+开头的行表示续上一行) xinv4 out3 dd out4 inv
xinv5 out4 dd out5 inv