Lecture on PSpice. Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated.

Slides:



Advertisements
Similar presentations
SPICE USING LTSPICE DR. ASLAN TEXAS STATE UNIVERSITY.
Advertisements

ECE201 Lect-231 Transient PSpice Analysis (7.4) Dr. Holbert April 26, 2006.
12- Agenda Introduction 1 Verilog-A Modules 2 DAY 1 Synopsys 60-I-032-BSG-005 © 2007 Synopsys, Inc. All Rights Reserved Simulating Variability – Design.
1 Analysis and Simulation Exercises ~DC Circuit Analysis (1) Basic Circuit Laws (Kirchhoff ’ s Voltage/ Current Law) Thévenin’s Theorem Norton ’ s Theorem.
EEL102 Introduction to SPICE. Spice – Introduction Spice is a short form of : Simulated Program with Integrated Circuit Emphasis Used for circuit analysis.
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) lecture10 Prof. Sherief Reda Division of Engineering, Brown University Spring 2008.
Experiment 17 A Differentiator Circuit
Capacitor and Inductor Using PSpice First Edition: 18/8/09.
PSpice Tutorial October 13, 2004 Franklin Chiang.
PSPICE Tutorial. Introduction SPICE (Simulation Program for Integrated Circuits Emphasis) is a general purpose analog circuit simulator that is used to.
Introduction to SPICE. History  SPICE stands for Simulation Program with Integrated Circuit Emphasis  In 1960 ECAP was developed by a team of IBM programmers.
Spice Enrico Santi. Types of Analysis Bias point (always performed).TRANtransient analysis.ACAC analysis (on linearized system).FOURFourier analysis.DCDC.
INTRODUCTION Spice Excel. SPICE Simulation Program with Integrated Circuit Emphasis.
1 References: G. W. Roberts, A. Sedra, SPICE, © Oxford University Press, 2/e, 1977 Tutorial on PSPICE.
EMT 251 SPICE NETLIST. Introduction SPICE (Simulation with Integrated Circuits Emphasis) SPICE (Simulation with Integrated Circuits Emphasis) General.
What is Spice? Spice is the short form of: Simulated Program with Integrated Circuit Emphasis.
LAB No.3 Introduction to PSpice Engr. Mian Shahzad Iqbal Lecturer Department of Telecommunication Engineering Digital Electronics.
Introduction  SPICE is a general-purpose circuit simulation program for nonlinear DC, nonlinear transient, and linear AC analyses.  Circuits may contain.
Automatic Holiday Light Display. Goal of Experiment Design an automatic light display in which a set of blinking lights (LEDs) turns on as the amount.
Experiment 11: An Inverting Amplifier
IEEE Spice Seminar Simulation Program with Integrated Circuit Emphasis.
전자 회로 1 Lecture 1 임한조 아주대학교 전자공학부
Introduction to PSpice R. E. Abdel-Aal February 2005.
EE141 Fall 2003 Discussion 1 Tips for Using SPICE.
Experiment # 3 EE 312 Basic Electronic Instrument Laboratory September 13, 2000 See Lecture 5 Filters on 1999 EE 312/352 Website
EE141 Spring 2003 Discussion 1 Tips for Using SPICE.
EE42/100 Lecture 9 Topics: More on First-Order Circuits Water model and potential plot for RC circuits A bit on Second-Order Circuits.
Lecture 9, Slide 1EECS40, Fall 2004Prof. White Lecture #9 OUTLINE –Transient response of 1 st -order circuits –Application: modeling of digital logic gate.
Week 9: Series RC Circuit Experiment 14. Circuit to be constructed Shunt resistor It is good practice to short the unused pin on the trimpot when using.
Objective of Lecture Discuss analog computing and the application of 1 st order operational amplifier circuits. Derive the equations that relate the output.
Characteristics of Op-Amp &
Recall Last Lecture Biasing of BJT Applications of BJT
A Differentiator Circuit.  All of the diagrams use a uA741 op amp. ◦ You are to construct your circuits using an LM 356 op amp.  There is a statement.
Experiment 17 A Differentiator Circuit
VARIABLE-FREQUENCY NETWORK
APPLICATION OF THE LAPLACE TRANSFORM
Behavioral Buffer Modeling with HSPICE – Intel Buffer
Automatic Holiday Light Display. Goal of Experiment Design an automatic light display in which a set of blinking lights (LEDs) turns on as the amount.
 Lab assistants are: Dilara YALÇIN–Kami ÇEVİK  Labs are divided into two sections (same as course sections). Verify your section as soon as possible.
Electronic Circuits Laboratory EE462G Lab #3
EENG 2920: Circuit Design and Analysis Using PSpice Class 3: DC and Transient Analysis Oluwayomi Adamo Department of Electrical Engineering College of.
SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available –Used for simulating.
EE 211 Lecture 6 Feb. 24, Topics Mid term exam Prelab policy Pspice Analysis Frequency Response.
Chapter 8 The Operational Amplifier (Part I) ~ Using PSpice
APPLICATION OF THE LAPLACE TRANSFORM
EE141 Fall 2004 Discussion 1 Tips for Using SPICE.
Introduction to PSpice
ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 21.
Introduction to Elementary Circuit Simulations with PSpice
Phasors and Kirchhoff’s Current Law
ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 13.
PSPICE 仿真. OP … NODE VOLTAGE NODE VOLTAGE ( 1) ( 2) ( 3).6954 ( 4) ( 5) VOLTAGE SOURCE CURRENTS NAME CURRENT V_V E+00.
Simulated Inductance Experiment 25.
ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 38.
CMOS 2-Stage OP AMP 설계 DARK HORSE 이 용 원 홍 길 선
Transient Response. Transient Analysis Plot of the voltages or currents as a function of time. – Output plot mimics the oscilloscope display. If simulating.
EMT 251 SPICE NETLIST.
Feedback No feedback : Open loop (used in comparators)
What is an Op-Amp Low cost integrating circuit consisting of:
Complete Ch. 2, Begin Ch. 14, Look at Ch. 11
Week 9: Series RC Circuit
INTRODUCTION Spice Excel.
Introduction to PSpice
Spice Seminar Simulation Program with Integrated Circuit Emphasis.
INTRODUCTION Spice.
Operational Amplifier (Op-Amp)-μA741
global parameter model parameter temperature
Chapter 4 through Section 4.3
Spice Seminar Simulation Program with Integrated Circuit Emphasis.
Presentation transcript:

Lecture on PSpice

Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated Circuits Emphasis  HSPICE = High-performance SPICE  PSpice = PC version of SPICE

SPICE Functions  DC analysis: DC transfer curve  Transient analysis: voltage and current as a function of time  AC Analysis: output as a function of frequency  Noise analysis  and more ….  SPICE has analog and digital libraries for standard components (Transistor, NAND, NOR, …)  Different temperatures Default temperature is 300K

Components  Independent voltage and current sources  Dependent voltage and current sources  Resistor  Capacitor  Inductor  Operational amplifier  Transistor  Digital gates …

SPICE Source File  Title statement: first line  Data statements: specify the Circuit, components, interconnections  Control statements: specify what types of analysis to perform on the circuit.  Output statements: specify outputs  Comment statements: begin with an asterisk (*)  End statement:.END  "+" sign (continuation sign)

Suffixes  TTera ( )  GGiga (10 +9 )  MEGMega (10 +6 )  KKilo (10 +3 )  MMili (10 -3 )  UMicro (10 -6 )  NNano (10 -9 )  PPico ( )  FFemto ( )

Independent DC Sources  Voltage source: Vname N+ N- Type Value  Current source: Iname N+ N- Type Value  Type: DC, AC or TRAN (transient) (like PULSE, …)  Vin 2 0 DC 10  Vin 2 0 AC 10  Is 3 4 DC 1.5  Voltage and Current Conventions N1(+) N2(-) N1(+) N2(-)

Dependent DC Sources  Voltage controlled voltage source: Ename N+ N- NC+ NC- Value  Voltage controlled current source: Gname N+ N- NC+ NC- Value  Current controlled voltage source: Hname N+ N- Vmeas Value  Current controlled current source: Fname N+ N- Vmeas Value  N+ and N- are terminals of the dependent source  NC+ and NC- are terminals of the controlling voltage source

Ename N+ N- NC+ NC- α Gname N+ N- NC+ NC- γ Hname N+ N- Vmeas ρ Fname N+ N- Vmeas β Vmeas N+ N- Vmeas

Example F1 0 3 Vmeas 0.5 Vmeas 4 0 DC 0

Resistors, Capacitors, Inductors  Rname N+ N- Value  Cname N+ N- Value  Lname N+ N- Value  IC = initial condition ( DC voltage or current ) Example: C pF 5V C pF L mH L mH 1mA 1pF _4_ V

Damped Sinusoidal Sources  Vname N+ N- SIN(VO VA FREQ TD THETA PHASE)  VO - offset voltage in volt.  VA - amplitude in volt.  f = FREQ in Hz  TD - delay in seconds  THETA - damping factor per second  Phase - phase in degrees  If TD, THETA and PHASE are not specified, it is assumed to be zero. Example: V1 1 2 SIN( ) V2 3 4 SIN( )

F=1, THETA=.4, VO=5, VA=3, TD=0, Phase=600

Piecewise linear source (PWL)  Vname N+ N- PWL(T 1 V 1 T 2 V 2 T 3 V 3...)  V i is the value source at time T i  Example: Vg 1 2 PWL(0 0 10U 5 100U 5 110U 0)

Pulse  Vname N+ N- PULSE(V1 V2 TD Tr Tf PW Period)  V1 - initial voltage  V2 - peak voltage  TD - initial delay time  Tr - rise time  Tf - fall time  pw- pulse-width  Period - period

Subcircuits  A subcircuit allows you to define a collection of elements as a subcircuit (e.g. an operational amplifier).SUBCKT SUBNAME N1 N2 N3... Element statements..ENDS SUBNAME  N1, N2, N3 are the external nodes of the subcircuit. The external nodes cannot be 0.  The node numbers used inside a subcircuit are strictly local, except for node 0 which is always global.

Example: µ741 (Op Amp) * Subcircuit for 741 op amp * +in (=1) -in (=2) out (=3).subckt opamp rin 1 2 2meg rout e k r meg c nf eout ends opamp741

Using Subcircuit vs 1 0 dc 5 r rf 2 3 1k x opamp741.dc vs option post.end

.OP Statement  Instructs SPICE to compute DC operating points voltage at each node current in each voltage source operating point for each element

.DC Statement  Increment (sweep) an independent source over a certain range with a specified step.DC SRCname START STOP STEP  SRCname = name of the source  START and STOP = starting and ending values  STEP = size of increments  Example:.DC V

.TRAN Statement  Specifies time interval for transient analysis.TRAN TSTEP TSTOP  TSTEP = increment  TSTOP = final time  TSTART = starting time

.AC Statement  Specify frequency (AC) analysis.AC LIN NPFSTART FSTOP  LIN = linear frequency variation  NP = number of points.  FSTART and FSTOP = start and stopping frequencies (Hz)  Example:.AC LIN

Output Statements .PLOT plots selected output variables, to design.lis using ASCII characters..PLOT is useful for looking at plotted results without access to AvanWaves. .PRINT DC V(2) prints node voltage value for node 2 in the design.lis file.

.PRINT &.PLOT .PRINT TYPEOV1 OV2 OV3... .PLOT TYPE OV1 OV2 OV3...  TYPE = type of analysis printed or plotted DC TRAN AC  OV1, OV2 = output variables Examples:.PLOT DC V(1,2) V(3) I(Vmeas).PRINT TRAN V(3,1) I(Vmeas)

Example 1

* We are interested in finding the following characteristics: * 1. Node voltages v12, v2 and current i4 when vin=10V * 2. Thevenin equivalent voltage and resistance, seen * at the output terminals v(3,0) VIN 1 0 DC 10 VMEAS 4 0 DC 0 *VMEAS is a 0V source to measure i4 F1 0 3 VMEAS 0.5 R K R K R K R K R K.tran.01n 50n.TF V(3,0) VIN.DC VIN PLOT DC V(1,2).END

Example 2

* pulse generator * +node -node V1 V2 TD TR TF PW PER VIN 1 0 PULSE ( N 0.1N 50N 100N) R M R M C uF * transient simulation for 50ns with 0.01ns step size.tran.1n 500n * dc simulation with stimulus voltage (source VIN) from 0 to 5V in 0.1V steps.DC VIN end

Example 3 * Thevenin Vs 1 0 DC 10V E R R R R R R R R TF V(5,6) Vs.plot DC V(5,6).plot DC I(Vs).DC Vs END V _ 5V

Example 4

OLD_HW1_Solution * Thevenin Vs 2 5 DC 100V Vmeas 2 3 DC 0V Fx 6 7 Vmeas 4.0 Ex R R R R R R MEG.TF V(4,0) Vs.plot DC V(5,4).plot DC V(1,0).plot DC I(Vmeas).DC Vs tran 1n 50n 0.END

Example

OLD_HW2_Solution Vs 1 0 AC 1 L m C n R M.AC LIN plot AC V(1,2) I(Vs).END