Proteus深入研究(四): SPICE模型

本文深入探讨了SPICE模拟,包括其历史、模型、基本和高级模拟参数,以及各种模拟选项和控制语句。了解如何在电路设计中使用SPICE进行精确而高效的模拟,以优化设计并减少原型重做。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.    Overview................................................................................................................... 3

1.1.     SPICE Simulation Program with Integrated Circuit Emphasis (SPICE)................... 3

1.2.     SPICE Simulation Models and Netlists................................................................ 3

1.3.     A Tradeoff Between Speed and Accuracy............................................................ 4

1.4.     Using SPICE Simulation.................................................................................... 5

1.5.     Learning More................................................................................................. 5

2.    SPICE Simulation History............................................................................................ 6

2.1.     Overview........................................................................................................ 6

2.2.     SPICE Simulation History.................................................................................. 6

2.3.     References...................................................................................................... 7

3.    SPICE Simulation Models............................................................................................ 8

3.1.     Overview........................................................................................................ 8

3.2.     What is a SPICE Simulation Model?................................................................... 8

3.3.     Model Makers.................................................................................................. 9

3.4.     Where to look for SPICE Simulation models........................................................ 9

4.    Basic SPICE Simulation Model Parameters................................................................... 12

4.1.     Overview....................................................................................................... 12

4.2.     Basic SPICE Simulation Devices...................................................................... 12

4.3.     SPICE Model Syntax...................................................................................... 12

4.3.1.      Resistors............................................................................................. 12

4.3.2.      Semiconductor Resistors...................................................................... 13

4.3.3.      Capacitors........................................................................................... 13

4.3.4.      Semiconductor Capacitors.................................................................... 13

4.3.5.      Inductors............................................................................................ 13

4.3.6.      Coupled (Mutual) Inductors.................................................................. 14

4.3.7.      Switches............................................................................................. 14

4.3.8.      Voltage Sources................................................................................... 14

4.3.9.      Current Sources................................................................................... 15

4.3.10.    Linear Voltage-Controlled Current Sources.............................................. 15

4.3.11.    Linear Voltage-Controlled Voltage Sources............................................... 15

4.3.12.    Linear Current-Controlled Current Sources............................................. 16

4.3.13.    Linear Current-Controlled Voltage Sources.............................................. 16

4.3.14.    Non-linear Dependent Sources............................................................... 16

4.3.15.    Lossless Transmission Lines................................................................. 17

4.3.16.    Uniform Distributed RC Lines (lossy)..................................................... 17

4.3.17.    Junction Diodes................................................................................... 17

4.3.18.    Bipolar Junction Transistors (BJT)......................................................... 17

4.3.19.    Junction Field-Effect Transistors (JFET)................................................ 18

4.3.20.    MOSFETs........................................................................................... 18

4.3.21.    MESFETs........................................................................................... 18

5.    Advanced SPICE Simulation Model Parameters............................................................ 20

5.1.     Overview....................................................................................................... 20

5.2.     Advanced Model Parameters............................................................................ 20

6.    SPICE Simulation Options.......................................................................................... 31

6.1.     Overview....................................................................................................... 31

6.2.     What are SPICE Simulation Options?................................................................ 31

6.3.     A Tradeoff Between Speed and Accuracy.......................................................... 31

6.4.     Changing SPICE Simulation Options................................................................. 32

6.5.     A Listing of SPICE Simulation Options.............................................................. 33

Option................................................................................................ 33

Effect................................................................................................. 33

6.6.                SPICE2 Emulation Mode....................................................................... 34

Option................................................................................................ 34

Effect................................................................................................. 34

7.    SPICE Simulation and Control Statements.................................................................... 35

7.1.                Overview............................................................................................ 35

7.2.                Available Analyses and Control Statements.............................................. 35

7.3.                SPICE Analyses and Control Statement Syntax........................................ 36

7.3.1.      Operating Point Analysis....................................................................... 36

7.3.2.      DC Transfer Function.......................................................................... 36

7.3.3.      Small-Signal AC Analysis....................................................................... 37

7.3.4.      Distortion Analysis............................................................................... 37

7.3.5.      Noise Analysis..................................................................................... 38

7.3.6.      Pole-Zero Analysis................................................................................ 38

7.3.7.      Sensitivity Analysis (DC or Small Signal AC)........................................... 39

7.3.8.      Transfer Function Analysis.................................................................... 39

7.3.9.      Transient Analysis................................................................................ 39

7.3.10.    PRINT Output..................................................................................... 40

7.3.11.    PLOT Output...................................................................................... 40

7.3.12.    SAVE Output....................................................................................... 40

7.3.13.    Fourier Analysis of Transient Analysis Output.......................................... 41

7.3.14.    Specify Initial Node Voltage Guesses...................................................... 41

7.3.15.    Set Initial Conditions............................................................................. 41

8.    SPICE Source Types and Parameters.......................................................................... 43

8.1.                Overview............................................................................................ 43

8.2.                SPICE Simulation Sources.................................................................... 43

8.3.                Using SPICE Simulation Sources........................................................... 44

8.3.1.      Pulse.................................................................................................. 44

8.3.2.      Sinusoid.............................................................................................. 44

8.3.3.      Exponential.......................................................................................... 44

8.3.4.      Piece-Wise Linear................................................................................. 45

8.3.5.      Single Frequency FM........................................................................... 45

 

 

 

 

The National Instruments SPICE Simulation Fundamentals series is your free resource on the internet for learning about circuit simulation. The series is a set of tutorials and information on SPICE simulation, OrCAD pSPICE compatibility, SPICE modeling, and other concepts in circuit simulation.

For more information, see the SPICE Simulation Fundamentals main page.

The series is divided among a number of in-depth detailed articles that will give you HOW TO information on the important concepts and details of SPICE simulation.

Circuit simulation is an important part of any design process. By simulating your circuits, you can detect errors early in the process, and avoid costly and time consuming prototype reworking. You can also easily swap components to evaluate designs with varying bills of materials (BOMs).

1.1. SPICE Simulation Program with Integrated Circuit Emphasis (SPICE)

SPICE is a computer simulation and modeling program used by engineers to mathematically predict the behavior of electronics circuits. Developed at the University of California at Berkeley, SPICE can be used to simulate circuits of almost all complexities. However, SPICE is generally used to predict the behavior of low to mid frequency (DC to around 100MHz) circuits.

1.2. SPICE Simulation Models and Netlists

SPICE has the ability to simulate components ranging from the most basic passive elements such as resistors and capacitors to sophisticated semiconductor devices such as MESFETs and MOSFETs. Using these intrinsic components as the basic building blocks for larger models, designers and chip manufacturers have been able to define a truly vast and diverse number of SPICE models. Most commercially available simulators include more than 15,000 different components.

The quality of SPICE models can vary, and not all SPICE models are applicable to every application. It is important to consider this when using the models supplied with a SPICE simulation package. Using a SPICE model inappropriately can lead to inaccurate results, or even generate an error in some circumstances. One of the most common errors made by even seasoned engineers is confusing a SPICE model with a PSPICE model. PSPICE is a commercially available program that uses proprietary languages to define components and models.

A circuit must be presented to SPICE in the form of a netlist. The netlist is a text description of all circuit elements such as transistors and capacitors, and their corresponding connections. Modern schematic capture and simulation tools such as Multisim allow users to draw circuit schematics in a user-friendly environment, and automatically translate the circuit diagrams into netlists. Consider as an example the simple voltage divider circuit below. We include both netlist and corresponding circuit schematic.

Voltage Divider Netlist

Voltage Divider Schematic

* Any text after the asterisk '*' is ignored by SPICE
* Voltage Divider
vV1 1 0 12
rR1 1 2 1000
rR2 2 0 2000

.OP * perform a DC operating point analysis
.END

 

1.3. A Tradeoff Between Speed and Accuracy

Although the SPICE models used in a SPICE simulation can greatly affect the accuracy of the results, simulation settings also contribute to varying degrees of accuracy. SPICE simulation options generally allow the user to gain more accuracy in the results at the cost of the speed of the simulation.

To understand the tradeoff between speed and accuracy in SPICE simulation one must consider a number of factors. SPICE simulation was created over 30 years go and around that time a typical computer had less power than the average microwave oven did thirty years later. Computing power was very expensive. The simulation of a circuit to the highest degree of accuracy could have taken longer and cost more money than building the actual circuit to see the results. Also, consider that the broad purpose of circuit simulation is to augment basic hand calculations and predict general circuit behavior. With these considerations in mind, the designers of SPICE created a program that could produce reasonably accurate results in a cost-effective manner. They also included many options to allow engineers to customize the accuracy of a simulation.

As computing power has increased exponentially over the years, so have the complexity of circuit designs being simulated. Speed and accuracy are still important factors to consider when simulating circuits.

1.4. Using SPICE Simulation

SPICE Simulation by itself can be used as a command line or text-based simulation tool. However, to effectively manage large and complex designs that span from simulation through to PCB layout and routing, several commercial software tools have been built around SPICE and XSPICE including Multisim. Included in Multisim is a graphical user interface to allow quick and efficient schematic capture, and interactive simulation.

1.5. Learning More

To learn more about SPICE simulation, please see the SPICE Simulation Fundamentals home page.

2.1. Overview

The National Instruments SPICE Simulation Fundamentals series is your free resource on the internet for learning about circuit simulation. The series is a set of tutorials and information on SPICE simulation, OrCAD pSPICE compatibility, SPICE modeling, and other concepts in circuit simulation.

For more information, see the SPICE Simulation Fundamentals main page.

The series is divided among a number of in-depth detailed articles that will give you HOWTO information on the important concepts and details of SPICE simulation.

Circuit simulation is an important part of any design process. By simulating your circuits, you can detect errors early in the process, and avoid costly and time consuming prototype reworking. You can also easily swap components to evaluate designs with varying bills of materials (BOMs).

SPICE simulation has been used for over thirty years to accurately predict the behavior of electronic circuits. Over the years the many revisions of SPICE have seen improvements in both accuracy and speed. In addition to these improvements, additions to the language have allowed simulation and modeling of more complex integrated circuits including MOSFETs.

2.2. SPICE Simulation History

Simulation Program with Integrated Circuit Emphasis, or SPICE, has been used for over thirty years. The original implementation of SPICE was developed at the University of California Berkeley campus in the late 1960s. SPICE was developed largely as a derivative of CANCER (Computer Analysis of Nonlinear Circuits, Excluding Radiation) also developed by UC Berkeley.

The first widely used version of SPICE was announced in Waterloo, Canada in 1973. Shortly thereafter SPICE was adopted by nearly all major engineering institutions throughout North America. SPICE has evolved into the academic and industry standard for analog and mixed-mode circuit simulation.

Over the years additional simulation algorithms, component models, bug fixes, and capabilities were added to the program. Even today SPICE is still the most widely used circuit simulator in the world and as of 2006 the latest version is SPICE 3F5.

XSPICE was developed at Georgia Tech as an extension to the SPICE language. XSPICE allows behavioral modeling of components which can drastically improve the speeds of mixed-mode and digital simulations. Multisim from National Instruments is based on SPICE 3F5 and XSPICE and provides additional convergence and speed improvements to complement these powerful simulation languages.

2.3. References

The SPICE Book, Andrei Vladimirescu, © 1994 John Wiley & Sons
The Life of SPICE, Laurence W. Nagel, © 1996

3.1. Overview

The National Instruments SPICE Simulation Fundamentals series is your free resource on the internet for learning about circuit simulation. The series is a set of tutorials and information on SPICE simulation, OrCAD pSPICE compatibility, SPICE modeling, and other concepts in circuit simulation.

For more information, see the SPICE Simulation Fundamentals main page.

The series is divided among a number of in-depth detailed articles that will give you HOWTO information on the important concepts and details of SPICE simulation.

Circuit simulation is an important part of any design process. By simulating your circuits, you can detect errors early in the process, and avoid costly and time consuming prototype reworking. You can also easily swap components to evaluate designs with varying bills of materials (BOMs).

An important key to performing accurate and successful SPICE simulation is to use high quality SPICE models. While most circuit simulation packages such as Multisim come with thousands of components and SPICE simulation models, frequently designers need to use a part that does not exist in the available database. When these situations arise, the software tool will typically have a way of adding custom components and models to the database. Multisim for example has a detailed component creation wizard that will guide designers through the process of defining custom parts for simulation and PCB layout (See Creating Custom Components in Multisim).

3.2. What is a SPICE Simulation Model?

A SPICE model is a text-description of a circuit component used by the SPICE Simulator to mathematically predict the behavior of that part under varying conditions. SPICE models range from the simplest one line descriptions of a passive component such as a resistor, to extremely complex sub-circuits that can be hundreds of lines long.

SPICE models should not be confused with pSPICE models. pSPICE is a proprietary circuit simulator provided by OrCAD. While some pSPICE models are compatible with SPICE, there is no guarantee. SPICE is the most widely used circuit simulator, and is an open standard.

3.3. Model Makers

Some SPICE simulation programs such as Multisim include model makers to automatically generate SPICE models for various components. Multisim version 10.1 has 24 SPICE Model makers.

3.4. Where to look for SPICE Simulation models

The best place to look for SPICE models is to browse the vendor or manufacturer’s website. Listed below are some of the most popular chip vendors that supply SPICE models on their website.

Vendor

 Description

Analog Devices

Amplifiers and Comparators, Analog to Digital Converters, Digital to Analog Converters, Embedded Processing & DSP, MEMS and Sensors, RF/IF Components, Switches/Multiplexers, Analog Microcontrollers, Interface, Power and Thermal Management

Analog and RF Models

Analog and RF Models

Apex Microtechnology

Linear Amplifiers, PWM Amplifiers

Christophe Basso

Switch-mode power supplies

Coilcraft, Inc.

Power Magnetics, RF Inductors, EMI / RFI Filters, Broadband Magnetics

Directed Energy

Diodes, Switch-mode MOSFETs, HF / VHF Linear MOSFETs, MOSFET Driver ICs

Duncan Amps

Amplifiers, Vacuum tubes

Fairchild Semiconductors

Amplifiers & Comparators, Diodes & Rectifiers, Interfaces, Digital Logic Devices, Signal Conversion, Voltage to Frequency Converters, Microcontroller, Optoelectronics, Switches, Power Controllers, Power Drivers, Transistors, Filters, Voltage Regulators

Infineon Technologies AG

Fiber Optics, Microcontrollers, Power Semiconductors, Small Signal Discretes

International Rectifier

HEXFET Power MOSFETs, Diodes, Bridges, Thyristors, Relays, High Voltage ICs, Intelligent Power Modules, Intelligent Power Switch, HiRel Power MOSFETs, HiRel High Voltage Gate Drivers

Kemet Home Page

Surface-mount capacitors in aluminum, ceramic and tantalum and leaded capacitors in ceramic and tantalum

Linear Technology

Signal Conditioning, Data Conversion, Power Management, Interfacing, High Freuqency & Optical

Maxim

Amplifiers and Comparators, Analog Switches and Multiplexers, Clocks, Counters, Delay Lines, Oscillators, RTCs, Data Converters, Sample-and-Holds, Digital Potentiometers, Fiber and Communications, Filters (Analog), High-Frequency ASICs, Hot-Swap and Power Switching, Interface and Interconnect, Memories: Volatile, NV, Multi-Function, Thermal Management, Sensors, Sensor Conditioners, Voltage References, Wireless, RF, and Cable

National Semiconductor

Amplifiers,Power Management, Temp Sensors, Interface, LVDS, Ethernet, USB Technologies, Micro SMD

ON Semiconductor

Power Management, Amplifiers, Comparators, Analog Switches, Thyristors, Diodes, Rectifiers, Bipolar Transistors, FETs, Standard Logic, Differential Logic,

Philips

Analog/Linear, Audio, Automotive, Connectivity, Data/Media/Video processing, Discretes, Displays, Interface and control, Logic, Microcontrollers, Power and power management, RF, Sensors

Polyfet

Polyfet transistors

Protek

Transient Voltage Suppression

SMPS Power Supplies

Switch-mode power supply simulation

SMPS Technology

Switch-mode power supply design

Supertex

Mixed signal semiconductor, High-voltage interface products

STMicroelectronics

Amplifiers & Linear,Analog & Mixed Signal ICs, Diodes, EMI Filtering & Conditioning, Logic, Signal Switch, Memories, Microcontrollers, Power Management, Protection Devices, Sensors, Smartcard ICs, Thyristors & AC Switches, Transistors

Texas Instruments

Buffers, Drivers and Transceivers, Flip-Flops, Latches and Registers, Gates, Counters, Decoders/Encoders/Multiplexers, Digital Comparators

Tyco Electronics (formerly Amp)

Electromechanical components, passive components, power sources, RF & Microwave products

Vishay

Manufacturer of analog switches, capacitors, diodes, inductors, integrated modules, power ICs, LEDs, power MOSFETs, resistors and thermistors.

Zetex

DC-DC boost controllers, Voltage references, Current monitors, Motor control, Acoustar™ audio solutions, Linear regulators

 

4.1. Overview

The National Instrument SPICE Simulation Fundamentals series is your free resource on the internet for learning about circuit simulation. The series is a set of tutorials and information on SPICE simulation, OrCAD pSPICE compatibility, SPICE modeling, and other concepts in circuit simulation.

For more information, see the SPICE Simulation Fundamentals main page.

The series is divided among a number of in-depth detailed articles that will give you HOWTO information on the important concepts and details of SPICE simulation.

Circuit simulation is an important part of any design process. By simulating your circuits, you can detect errors early in the process, and avoid costly and time consuming prototype reworking. You can also easily swap components to evaluate designs with varying bills of materials (BOMs).

4.2. Basic SPICE Simulation Devices

SPICE includes several different types of electrical components that can be simulated. These range from simple resistors, to sophisticated MESFETs. The table below lists these components and their SPICE syntax.

4.3. SPICE Model Syntax

Parameters in angular parentheses <> are optional. If left unspecified, the default SPICE parameter values will be used.

4.3.1.    Resistors

Syntax

Rname n1 n2 value

Example

Rin 2 0 100

Notes

n1 and n2 are the two element nodes. Value is the resistance (in ohms) and may be positive or negative but not zero.

4.3.2.    Semiconductor Resistors

Syntax

Rname n1 n2 <value> <Mname> <L=Length> <W=Width> <Temp=T>

Example

Rload 3 7 RMODEL L=10u W=1u

Notes

This is the more general form of the resistor and allows the modeling of temperature effects and for the calculation of the actual resistance value from strictly geometric information and the specifications of the process.

4.3.3.     Capacitors

Syntax

Cname n+ n- value <IC=INCOND>

Example

Cout 13 0 1UF IC=3V

Notes

n+ and n- are the positive and negative element nodes, respectively. Value is the capacitance in Farads. The (optional) initial condition is the initial (time-zero) value of capacitor voltage (in Volts).

4.3.4.    Semiconductor Capacitors

Syntax

Cname n1 n2 <value> <Mname> <L=Length> <W=Width> <IC=VAL>

Example

Cfilter 3 7 CMODEL L=10u W=1u

Notes

This is the more general form of the Capacitor and allows for the calculation of the actual capacitance value from strictly geometric information and the specifications of the process.

4.3.5.    Inductors

Syntax

Lname n+ n- value <IC=INCOND>

Example

LSHUNT 23 51 10U IC=15.7MA

Notes

n+ and n- are the positive and negative element nodes, respectively. Value is the inductance in Henries.  The (optional) initial condition is the initial (time-zero) value of inductor current (in Amps) that flows from n+, through the inductor, to n-.

4.3.6.    Coupled (Mutual) Inductors

Syntax

Kname Lname1 Lname2 value

Example

Kin L1 L2 0.87

Notes

Lname1 and Lname2 are the names of the two coupled inductors, and VALUE is the coefficient of coupling, K, which must be greater than 0 and less than or equal to 1.

4.3.7.     Switches

Syntax

Sname n+ n- nc+ nc- Mname <ON><OFF>
Wname n+ n- VNAM MnameL <ON><OFF>

Examples

Switch1 1 2 10 0 smodel1
W1 1 2 vclock switchmod1

Notes

Nodes n+ and n- are the nodes between which the switch terminals are connected. The model name is mandatory while the initial conditions are optional. For the voltage controlled switch, nodes nc+ and nc- are the positive and negative controlling nodes respectively. For the current controlled switch, the controlling current is that through the specified voltage source. The direction of positive controlling current flow is from the positive node, through the source, to the negative node.

4.3.8.    Voltage Sources

Syntax

Vname n+ n- <DC<> DC/TRAN VALUE> <AC <ACMAG <ACPHASE>>> <DISTOF1 <F1MAG <F1PHASE>>> <DISTOF2 <F2MAG <F2PHASE>>>

Examples

VCC 10 0 DC 6
Vin 13 2 0.001 AC 1 SIN(0 1 1MEG)

Notes

n+ and n- are the positive and negative nodes, respectively. Note that voltage sources need not be grounded. Positive current is assumed to flow from the positive node, through the source, to the negative node. A current source of positive value forces current to flow out of the n+ node, through the source, and into the n- node. Voltage sources, in addition to being used for circuit excitation, are the 'ammeters' for SPICE, that is, zero valued voltage sources may be inserted into the circuit for the purpose of measuring current. They of course have no effect on circuit operation since they represent short-circuits.

DC/TRAN is the dc and transient analysis value of the source. If the source value is zero both for dc and transient analyses, this value may be omitted. If the source value is time-invariant (e.g., a power supply), then the value may optionally be preceded by the letters DC.

4.3.9.    Current Sources

Syntax

Iname n+ n- <<DC> DC/TRAN VALUE> <AC <ACMAG <ACPHASE>>> <DISTOF1 <F1MAG <F1PHASE>>> <DISTOF2 <F2MAG <F2PHASE>>>

Examples

Igain 12 15 DC 1
Irc 23 21 0.333 AC 5 SFFM(0 1 1K)

Notes

ACMAG is the ac magnitude and ACPHASE is the ac phase. The source is set to this value in the ac analysis. If ACMAG is omitted following the keyword AC, a value of unity is assumed. If ACPHASE is omitted, a value of zero is assumed. If the source is not an ac small-signal input, the keyword AC and the ac values are omitted.

DISTOF1 and DISTOF2 are the keywords that specify that the independent source has distortion inputs at the frequencies F1 and F2 respectively (see the description of the .DISTO control line). The keywords may be followed by an optional magnitude and phase. The default values of the magnitude and phase are 1.0 and 0.0 respectively.

4.3.10.             Linear Voltage-Controlled Current Sources

Syntax

Gname n+ n- nc+ nc- value

Example

G1 2 0 5 0 0.1MMHO

Notes

n+ and n- are  the  positive  and  negative  nodes, respectively.   Current  flow is from the positive node, through the source, to the negative node.  nc+  and nc- are the positive and negative controlling nodes, respectively.  VALUE is the transconductance (in mhos).

4.3.11.             Linear Voltage-Controlled Voltage Sources

Syntax

Ename n+ n- nc+ nc- value

Example

E1 2 3 14 1 2.0

Notes

n+ is the positive node, and n- is the negative node. nc+  and nc- are the positive and negative controlling nodes, respectively. Value is the voltage gain.

4.3.12.             Linear Current-Controlled Current Sources

Syntax

Fname n+ n- Vname value

Example

F1 13 5 Vsen 5

Notes

n+ andn- are the positive and negative nodes, respectively.  Current flow is from the positive node, through the source, to the negative node.  Vname is the name of a voltage source through which the controlling current flows. The direction of positive controlling current flow is from the positive node, through the source, to the negative node of Vname. Value is the current gain.

4.3.13.             Linear Current-Controlled Voltage Sources

Syntax

Hname n+ n- Vname value

Example

Hx1 5 17 Vz 0.5K

Notes

n+ and n- are the positive and negative nodes, respectively. Vnameis the name of a voltage source through which the controlling current flows. The direction of positive controlling current flow is from the positive node, through the source, to the negative node of Vname. Value is the transresistance (in ohms).

4.3.14.             Non-linear Dependent Sources

Syntax

Bname n+ n- <I=EXPR> <V=EXPR>

Example

B1 0 1 I=cos(v(1))+sin(v(2))

Notes

n+ is the positive node, and n- is the negative node. The values of the V and I parameters determine the voltages and currents across and through the device, respectively. If I is given then the device is a current source, and if V is given the device is a voltage source. One and only one of these parameters must be given. The small-signal AC behavior of the nonlinear source is a linear dependent source (or sources) with a proportionality constant equal to the derivative (or derivatives) of the source at the DC operating point.

4.3.15.             Lossless Transmission Lines

Syntax

Oname n1 n2 n3 n4 Mname

Example

O23 1 0 2 0 LOSSYMOD

Notes

This is a two-port convolution model for single-conductor lossy transmission lines. n1 and n2 are the nodes at port 1; n3 and n4 are the nodes at port 2. Note that a lossy transmission line with zero loss may be more accurate than than the lossless transmission line due to implementation details.

4.3.16.             Uniform Distributed RC Lines (lossy)

Syntax

Uname n1 n2 n3 Mname L=LEN <N=LUMPS>

Example

U1 1 2 0 URCMOD L=50U

Notes

n1 and n2 are the two element nodes the RC line connects, while n3 is the node to which the capacitances are connected. Mname is the model name, LEN is the length of the RC line in meters. Lumps, if specified, is the number of lumped segments to use in modeling the RC line (see the model description for the action taken if this parameter is omitted).

4.3.17.             Junction Diodes

Syntax

Dname n+ n- Mname <Area> <OFF> <IC=VD> <TEMP=T>

Example

Dfwd 3 7 DMOD 3.0 IC=0.2

Notes

n+ and n- are the positive and negative nodes, respectively. Mname is the model name, Area is the area factor, and OFF indicates an (optional) starting condition on the device for dc analysis.

4.3.18.             Bipolar Junction Transistors (BJT)

Syntax

Qname nC nB nE <nS> Mname <AREA> <OFF> <IC=VBE, VCE> <TEMP=T>

Example

Q23 10 24 13 QMOD IC=0.6, 5.0

Notes

nC, nB, andnE are the  collector,  base,  and  emitter nodes,  respectively.  nS is the (optional) substrate node. If unspecified, ground is used.  Mname is the model name, Area is the area factor, and OFF indicates an (optional) initial condition on the device for the dc analysis.

4.3.19.             Junction Field-Effect Transistors (JFET)

Syntax

Jname nD nG nS Mname <Area> <OFF> <IC=VDS, VGS> <TEMP=T>

Example

J1 7 2 3 JM1 OFF

Notes

nD, nG, and nS are the drain, gate, and  source  nodes, respectively.   Mname  is  the  model name, Area is the area factor, and OFF indicates an (optional) initial condition on the  device for dc analysis.

4.3.20.             MOSFETs

Syntax

Mname ND NG NS NB MNAME <L=VAL> <W=VAL> <AD=VAL> <AS=VAL> <PD=VAL> <PS=VAL> <NRD=VAL> <NRS=VAL> <OFF> <IC=VDS, VGS, VBS> <TEMP=T>

Example

M31 2 17 6 10 Mname L=5U W=2U

Notes

nD, nG, nS, and nB are the drain,  gate,  source,  and  bulk (substrate)  nodes,  respectively.  Mname is the model name. L and W are the channel length and width, in meters.  AD and AS  are  the  areas  of  the drain and source diffusions, in 2 meters .  Note that the suffix U specifies microns (1e-6  m)  2 and  P  sq-microns (1e-12 m ). If any of L, W, AD, or AS are not specified, default values are used.

4.3.21.             MESFETs

Syntax

Zname nD nG nS Mname <Area> <OFF> <IC=VDS, VGS>

Example

Z1 7 2 3 ZM1 OFF

Notes

nD, nG, andnS are the drain, gate, and  source  nodes, respectively.   Mname  is  the  model name, Area is the area factor, and OFF indicates an (optional) initial condition on the  device for dc analysis.

 

Type

Abbr

Resistors

R

Semiconductor Resistors

R

Capacitors

C

Semiconductor Capacitors

C

Inductors

L

Coupled (Mutual) Inductors

K

 Switches

S
W

Voltage Sources

V

Current Sources

I

Linear Voltage-Controlled Current Sources

G

Linear Voltage-Controlled Voltage Sources

E

Linear Current-Controlled Current Sources

F

Linear Current-Controlled Voltage Sources

H

Non-linear Dependent Sources

B

Lossless Transmission Lines

O

Uniform Distributed RC Lines (lossy)

U

Junction Diodes

D

Bipolar Junction Transistors (BJT)

Q

Junction Field-Effect Transistors (JFET)

J

MOSFETs

M

MESFETs

Z

5.1. Overview

The National Instruments SPICE Simulation Fundamentals series is your free resource on the internet for learning about circuit simulation. The series is a set of tutorials and information on SPICE simulation, OrCAD pSPICE compatibility, SPICE modeling, and other concepts in circuit simulation.

For more information, see the SPICE Simulation Fundamentals main page.

The series is divided among a number of in-depth detailed articles that will give you HOWTO information on the important concepts and details of SPICE simulation.

Circuit simulation is an important part of any design process. By simulating your circuits, you can detect errors early in the process, and avoid costly and time consuming prototype reworking. You can also easily swap components to evaluate designs with varying bills of materials (BOMs). 

5.2. Advanced Model Parameters

The SPICE language can model many sophisticated real world effects such as the result of temperature variations on a component.

The attached document lists the detailed model parameters for all the native SPICE models.


 

Model Name

No

Name

Parameter

Units

Default

Example

Semiconductor Resistor Model ( R )

1

TC1 

first order temperature coeff. 

Ohm/°C

0.0 

 

 

2

TC2 

second order temperature coeff. 

Ohm/C²

0.0 

 

3

RSH 

sheet resistance 

Ohm/q 

50 

 

4

DEFW 

default width 

meters 

1.e-6 

2.e-6 

 

5

NARROW 

narrowing due to side etching 

meters 

0.0 

1.e-7 

 

6

TNOM 

parameter measurement temperature 

°C 

27 

50 

 

 

 

 

 

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值