PSPICE仿真与安装方法
PSpice 8.0仿真教程

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(任选项)给出绘图参数设置命令,用来设置显示和打印环境。
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)对放置的项目的名称进行设置,也就是设置仿真的名称。
详细版PSpice使用教程.ppt

元件:实现某特定功能的电气连接集合
元件库:.olb文件 模型:Property Editor/PspiceTemplate
3、网络标号
网络别名、跨页连接端口、层次输入输出端口、 电源对象名、隐藏的管脚
最新.课件
6
1.5 文件系统
.DSN 电路文件
.OPJ 项目文件
.CIR 电路设置情况文件最Fra bibliotek.课件2
OrCAD Capture CIS
Layout Plus
PSpice A/D
图1 OrCAD设计环境
最新.课件
3
1.2 OrCAD PSpice的特点
集成度高 完整的Probe观测功能 完整的仿真功能 模块化和层次化设计 模拟行为模块 具有数字和模拟仿真功能 元件库扩充功能
最新.课件
最新.课件
33
最新.课件
34
最新.课件
35
最新.课件
36
最新.课件
37
最新.课件
38
最新.课件
39
最新.课件
40
习题
绘制如下电路
CMOS差动放大电路 OP-Amp全波整流电路 OP-Amp低通滤波电路 TTL IC 的脉冲产生电路 IC 555 脉冲波发生电路
应用元件库
analog.olb source.olb eval.olb
最新.课件
18
图纸大小菜单
最新.课件
19
参考网格设置
最新.课件
20
属性选项菜单
最新.课件
21
设计样式选项
最新.课件
22
4 第一张电路图
最新.课件
23
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 软件会自动记录最近打开过的项目文件,方便用户快速打开。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Vyyyyyyy +node -node 电压值 Iyyyyyyy +node -node 电流值
(2)、交流独立源 (仅交流分析起作用,直流分析与瞬态分析不起作用)
Vyyyyyyy +node -node <幅度值 <相位值>> Iyyyyyyy +node -node <幅度值 <相位值>> 幅度值: 隐含值=1V (1A) 相位值:隐含值=0度
1 2014-3-14
2、PSPICE 功能
一、支持的元器件类型 • • • • • • • • • •
2014-3-14
基本无源元件:电阻、电容、电感、传输线等; 半导体器件:二极管、双极晶体管、结型场效应管、 MOS管等; 独立电压源和独立电流源; 其它 直流分析:直流特性扫描分析; 交流分析:频率特性、噪声特性分析; 瞬态分析:包括瞬态响应分析,傅立叶分析; 参数扫描:包括温度特性分析,参数扫描分析; 统计分析:包括蒙托卡罗分析、最坏情况分析;
分 析 输 出
* 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 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 Vin .ends inv * 5 stage inverters in xinv1 in1 dd out1 inv xinv2 out1 dd out2 inv xinv3 out2 dd out3 inv 0 xinv4 out3 dd out4 inv xinv5 out4 dd out5 inv 子电路名Inv vdd dd 0 2.5v vin in1 0 pulse(0v 2.5v 0ns 0ns 0ns 10ns 20ns) dd .options vntol=0.01uv .options reltol=0.0001 .TRAN 0.01ns 100ns out4 in out1 out2 out3 .PROBE .END 结束语句 Xinv1 Xinv2 Xinv3 Xinv4 Xinv5 Vin
4.5 PSPICE的语句
一、元件卡
R开头的字符数字串,不超过8个
1、电阻:Ryyyyyyy +node -node value 例如:R12 out in1 10k 电压调用V(R12) :out正 in1负 电流调用I(R12) :out 流向in1 2、电容:Cyyyyyyy +node -node value 例如:Cin2 例如:L2 in2 2 0 0 10f 20mH 3、电感:Lyyyyyyy +node -node value
第4讲、PSPICE仿真方法
1、电路模拟
用途:对电路进行模拟和仿真。 最著名的软件:SPICE (Simulation Program with Integrated Circuit Emphasis)
基本软件由加州大学伯克利分校于1972年研制
常用: OrCAD/PSPICE HSPICE
--- 电路图方式 --- 文本方式 (我们要学) --- 文本方式
2)正弦源
Vyyyyyyy +node -node sin ( V0 VA 偏移值 振幅 3) 指数源 4)单频频率调制源 5)分段线性源 FREQ TD THETA) 频率 延时 阻尼系数
1、画出电路图(包括子电路) in 2、标出节点名 所有节点均要编节点名 “地”必须编为0 3、标出元件名 元件名第一个字符: MOS管---M 电压源 ---V 电容 ---C in 电阻 ----R 4、标出子电路名 (子电路名:字母开头) 0 标出子电路调用名 (子电路调用名--- X开头) 5、画出预期波形
10 2014-3-14
4.3 PSPICE的数与单位
常用数量级: f 飞 10-15 p 皮 10-12 n 纳 10-9 u 微 10-6 m 毫 10-3
K 千 MEG 兆 G 吉 默认物理单位 电压:V 电流:A 频率:Hz 电阻:Ω 电容:F 电感:H 角度:deg
2014-3-14
10+3 10+6 10+9
15 2014-3-14
(3)、瞬态独立源 (仅瞬态分析起作用,直流分析与交流分析不起作用) 1)脉冲源
Vyyyyyyy +node -node pulse ( V1 V2 TD Iyyyyyyy +node -node pulse ( V1 V2 TD 电压1 电压2 延时 TR TF PW PER) TR TF PW PER) 上升 下降 脉宽 周期
* 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 mn1 out in 0 0 nmos w=0.36u l=0.24u +ad=0.2736p as=0.2736p pd=1.8u ps=1.8u C1 out 0 10f .ends inv * 5 stage inverters 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 vin in1 0 pulse(0v 2.5v 0ns 0ns 0ns 10ns 20ns) .options vntol=0.01uv .options reltol=0.0001 .TRAN 0.01ns 100ns .PROBE .END
单位可缺省
C1 out 0 10f 10f=10fF
11
4.4 PSPICE的取名规则
1、长度 名字(节点名、元件名、子电路调用名、子电 路调用名)均为一至八个字母数字串
2、节点名 节点名:字母开头或数字开头 (一至八个字母数字串) 所有节点均要编节点名 “地”必须编为0 3、元件名 元件名第一个字符: 电阻 R 电容 C 电感 L 独立电压源 V 独立电压源 I MOS管 M 三极管 Q 二极管 D 结型场效应管 J 4、子电路名 字母开头 5、 标出子电路调用名 X开头
2
二、分析类型
3、OrCAD/PSPICE 9.1安装
进入源程序安装文件夹,双击运行Setup.exe;
3 2014-3-14
填入安装代码,每一个代码代表一种程序,具体参照 安装文件中的Crack.txt文件,填完后点击Next;
4 2014-3-14
安装代码 • • • • • • • • • • 0000-00000-0000 for Capture CIS 1000-00000-0000 for Express 2000-00000-0000 for Express Plus 3000-00000-0000 for Layout 4000-00000-0000 for Layout Plus 5000-00000-0000 for Layout Engineer's Edition 6000-00000-0000 for PsPice (Analog) 7000-00000-0000 for PsPice A/D 8000-00000-0000 for PsPice A/D Basics 9000-00000-0000 for PsPice Optimizer
可采用全安装
5 2014-3-14
填入授权代码(Authorization Code),具体参照Crack.txt, 点击Next;
6 2014-3-14
最后必须: 把orcad.lic文件复制到OrCAD安装目录下。
7 2014-3-14
4、PSPICE 文本方式
4.1 使用举例 (5级反相器)
out
Vdd 0 out5
9
2014-3-14
0
子电路调用名
4.2 PSPICE一般语法
注释语句,以*开头; 结束语句总是.END 中间语句的次序任意
一行一条语句
(以+开头的行表示续上一行)
分格符:空格(一至几个) 英文大小写:不区分
* 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 mn1 out in 0 0 nmos w=0.36u l=0.24u +ad=0.2736p as=0.2736p pd=1.8u ps=1.8u C1 out 0 10f .ends inv * 5 stage inverters 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 vin in1 0 pulse(0v 2.5v 0ns 0ns 0ns 10ns 20ns) .options vntol=0.01uv .options reltol=0.0001 .TRAN 0.01ns 100ns .PROBE .END