Computer Aided Design Course 2. Setting up Analyses In order to measure a circuit performance, it is necessary to simulate its behavior. PSpice A/D is.

Slides:



Advertisements
Similar presentations
DC Analysis Engr. Fahmi Samsuri, FKEE, UMP 4/6/2017.
Advertisements

The uA741 Operational Amplifier
Chapter 7 Operational-Amplifier and its Applications
1 Analysis and Simulation Exercises ~DC Circuit Analysis (1) Basic Circuit Laws (Kirchhoff ’ s Voltage/ Current Law) Thévenin’s Theorem Norton ’ s Theorem.
Sweeping a Variable Resistor Wheatstone Bridge. Place the Parts 1.VDC 2.R, which you place 3 times. The numbering of the resistor increases sequentially.
Differential Amplifiers
Design a Logic Probe Experiment 20. Design Specifications Design a logic probe as shown in the block diagram of Figure 1 of Experiment 20 with a signal.
PSPICE Tutorial Spring 2015
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.
Black Box Electronics An Introduction to Applied Electronics for Physicists 5. Pushing the Limits With Spice University of Toronto Quantum Optics Group.
Monte Carlo Simulations
Cascode Stage. OUTLINE Review of BJT Amplifiers Cascode Stage Reading: Chapter 9.1.
Recall Lecture 13 Biasing of BJT Applications of BJT
PSPICE - Review Kishore C. Acharya. Kishore Acharya2 Starting Simulation with PSPICE Launch PSPICE design Manager Create a New Work Space or Open an Existing.
In PSpice. DC Sweep in PSpice A simulation that results in a plot of specified voltages and/or currents in the circuit as a function of a particular variable.
Introduction to PSpice R. E. Abdel-Aal February 2005.
Comparator circuits An ideal comparator compares two input voltages and produces a logic output signal whose value (high or low) depends on which of the.
Chapter 2 Small-Signal Amplifiers
Department of Information Engineering357 Operation amplifier The tail, large impedance gives high CMRR Mirror as active load. High gain Follower as buffer.
Getting Started with Cadence Prepared by Ryan Johnson, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The following.
Astable multivibrators I
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.
Digital Integrated Circuits© Prentice Hall 1995 Inverter THE INVERTERS.
Electronic Circuits Laboratory EE462G Lab #8 BJT Common Emitter Amplifier.
Operational Amplifiers David Lomax Azeem Meruani Gautam Jadhav.
Recall Last Lecture Biasing of BJT Applications of BJT
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering Circuit Design Verification.
Chapter 5: BJT AC Analysis
BJT Transistor Modeling - I Electronic Circuits First Term Second Year (11CS Batch) 1.
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.
Computer Aided Design Course 5 Transient Analyses.
BJT Common-Emitter Amplifier By: Syahrul Ashikin School of Electrical System Engineering.
Voltage and Current Dividers
ECE122 – Digital Electronics & Design
Electronic Devices and Circuit Theory
Lecture on PSpice. Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated.
Field Effect Transistor. What is FET FET is abbreviation of Field Effect Transistor. This is a transistor in which current is controlled by voltage only.
SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available –Used for simulating.
Week 5 Experiments 8 and 9. Lecture Schedule Next week (9/29/2011) – Topics of lectures are: Design a Voltmeter – You have two weeks to perform this lab.
Lab 4 Experiments 8 and 9. Same Circuit: Experiment 8 and 9.
1 Parametric analysis Overview This course describes how to set up parametric and temperature analyses. Parametric and temperature are both simple multi-run.
Chapter 4 Bipolar Junction Transistors
Introduction to PSpice
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.
Chapter 3 Feedback Circuits BY: PN NORIZAN BINTI MOHAMED NAWAWI EKT 214 – Analog Electronic CIRCUIT II.
Exam 3 information Open book, open notes, bring a calculator Eligible topics (1 of 9) (not an exhaustive list) Generic amplifiers Amplifier basics voltage.
EE101-Lecture 8 Operational Amplifier Basics of amplifiers EE101 Fall 2012 Lect 8- Kang1 Noninverting amplifier & Inverting amplifier.
Intro to BJT Amplifier Circuits. In this Lecture, we will:  Discuss how a BJT is used as a switch (use this as a frame of reference).  Understand the.
It’s always important that all of your nodes be numbered. So the way to do that is to go to Options at the top of the screen then select Preferences. When.
Chapter 5 BJT AC Analysis.
The uA741 Operational Amplifier
Recall Last Lecture Biasing of BJT Applications of BJT
Recall Last Lecture Biasing of BJT Three types of biasing
E212 – Analog Electronic II
Recall Last Lecture Biasing of BJT Three types of biasing
Recall Last Lecture Biasing of BJT Three types of biasing
Lecture 10 Bipolar Junction Transistor (BJT)
Complete Ch. 2, Begin Ch. 14, Look at Ch. 11
Recall Lecture 13 Biasing of BJT Voltage Divider Biasing Circuit.
Chapter 5: BJT AC Analysis
Analog Electronic Circuits 1
Electronics Fundamentals
The uA741 Operational Amplifier
Bipolar Junction Transistor
global parameter model parameter temperature
Lecture 11 ANNOUNCEMENTS OUTLINE Review of BJT Amplifiers
Chapter 5 OUTLINE Op-Amp from 2-Port Blocks
Presentation transcript:

Computer Aided Design Course 2

Setting up Analyses In order to measure a circuit performance, it is necessary to simulate its behavior. PSpice A/D is a simulation program that models the behavior of a circuit containing any mix of analog and digital devices. Used with Schematics for design entry, you can think of PSpice A/D as a software-based breadboard of your circuit that you can use to test and refine your design before ever touching a piece of hardware.

For the circuit to be simulated you need to setup the analyses first. Certain analyses (such as noise, Monte Carlo, sensitivity/worst-case, DC sensitivity, Fourier, and small-signal DC transfer function) require you to specify output variables for voltages and currents at specific points on the schematic.

1.DC Analyses In order to set up and run DC analyses, you will have to go through a sequence of several steps. A typical example of such a sequence is given below: Applying an appropriate DC Stimulus DC Stimulus Setting up Initial Bias Point Condition (for some DC sweep analyses) Initial Bias Point Condition Enabling Bias Point Detail analysisBias Point Detail Performing DC Sweep analysisDC Sweep Setting up Small-Signal DC Transfer analysisSmall-Signal DC Transfer Selecting DC Sensitivity analysis DC Sensitivity Selecting Options Options

1.DC stimulus To run a DC sweep ( with swept variable a V or I source) or small-signal DC transfer analysis, you need to place and connect one or more independent sources and then set the DC voltage or current level for each source. Adding and Defining Stimulus To simulate your circuit, you need to connect one or more source symbols that describe the input signal that the circuit must respond to.

The PSpice libraries supply several source symbols that are described in the tables that follow. These symbols depend on: the kind of analysis you are running, whether you are connecting to the analog or digital portion of your circuit, and how you want to define the stimulus: using the Stimulus Editor, using a file specification, or by defining symbol attribute values. Stimulus Editorfile specificationattribute values The analog stimuli symbols available in Schematics are presented on the following chart: stimulus.doc

2. Initial Bias Point Condition There are three options for simulation initial conditions setting: Save and Load Bias Point Setpoints Setting Initial Conditions

Save and Load Bias Point Save Bias Point and Load Bias Point are used to save and restore bias point calculations in successive PSpice A/D simulations. Saving and restoring bias point calculations can decrease simulation times when large circuits are run multiple times and can aid convergence. Save/Load Bias Point affect the following types of analyses: –transient –DC –AC

Setpoints Pseudo components that specify initial conditions are called setpoints. These apply to the analog portion of your circuit.

IC1 is a one-pin symbol that allows you to set the initial condition on a net for both small-signal and transient bias points IC2 is a two-pin symbol that allows you to set initial condition between two nets Using IC symbols sets the initial conditions for the bias point only. It affect only initial condition for transient analysis. It is necessary for oscillators. It does not affect the DC sweep. If the circuit contains both an IC symbol and a NODESET symbol for the same net, the NODESET symbol is ignored.

NODESET1 is a one-pin symbol which helps calculate the bias point by providing a initial guess for some net. NODESET2 is a two-pin symbol which helps calculate the bias point between two nets. Some or all of the circuit nets may be given an initial guess. NODESET symbols are effective for the bias point (both small-signal and transient bias points) and for the first step of the DC sweep. It is used for DC sweep of bistable circuits. It has no effect during the rest of the DC sweep or during the transient analysis itself.

Setting Initial Conditions The IC attribute allows initial conditions to be set on capacitors ( initial voltage on C) and inductors ( initial current by L). These conditions are applied during all bias point calculations. However, if you select () the Skip Initial Transient Solution check box in the Transient Analysis Setup dialog box, the bias point calculation is skipped and the simulation proceeds directly with transient analysis at TIME=0. Devices with the IC attribute defined start with the specified voltage or current value; however, all other such devices have an initial voltage or current of 0.

3. Bias (Operating) Point Detail The bias point is calculated for any analysis whether or not the Bias Point Detail analysis is enabled in the Analysis Setup dialog box. When Bias Point Detail analysis is not enabled, only analog node voltages and digital node states are reported to the output file.Analysis Setup dialog box

When the Bias Point Detail analysis is enabled, the following information is reported to the output file: SMALL SIGNAL BIAS SOLUTION A list of all analog node voltages; A list of all digital node states; The currents of all voltage sources and their total power. OPERATING POINT INFORMATION ( for OP ) Currents, terminal voltages A list of the small-signal parameters for all nonlinear devices.

At the final of Operating Point analysis the linearizing nonlinear circuit elements are ready. Convergence problems: The best aid for problems in calculating the bias point is the NODESET statement. It is rare to have a convergence problem in the bias point calculation; this because PSpice contains an algorithm for automatically scaling the power supplies if it ts having trouble finding a solution.

Example: Determine the OP for CS JFET amplifier.

** SMALL SIGNAL BIAS SOLUTION TEMPERATURE = DEG C NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE ( VDD) (N00021) (N00057) (N00060) (N00088) (N00155) (N000390) VOLTAGE SOURCE CURRENTS NAME CURRENT V_VI 0.000E+00 V_V E-03 TOTAL POWER DISSIPATION 4.10E-02 WATTS ** OPERATING POINT INFORMATION TEMPERATURE = DEG **** JFETS NAME J_J1 MODEL BF256B ID 2.04E-03 VGS -1.14E+00 VDS 2.66E+00 GM 3.52E-03 GDS 8.47E-06 CGS 1.60E-12 CGD 1.21E-12

4. DC Sweep The DC sweep analysis causes a DC sweep to be performed on the circuit. DC sweep allows you to sweep a source (voltage or current), a global parameter, a model parameter, or the temperature through a range of values. The bias point of the circuit is calculated for each value of the sweep. This is useful for finding the transfer function of an amplifier, the high and low thresholds of a logic gate, and so on. To calculate the DC response of an analog circuit, PSpice A/D removes time from the circuit. This is done by treating all capacitors as open circuits, all inductors as shorts, and using only the DC values of voltage and current sources. A similar approach is used for digital devices: all propagation delays are set to zero, and all stimulus generators are set to their time-zero values.

Nested DC Sweep A second sweep variable can be selected once a primary sweep value has been specified in the DC Sweep dialog box. When you specify a secondary sweep variable, it forms the outer loop for the analysis. That is, for every increment of the second sweep variable, the first sweep variable is stepped through its entire range of values. val_var2=start2 for ( val_var2  stop2, val_var2(i+1)=val_var2(i)+pas2) val_var1=start1 for(val_var1  stop, val_var1(j+1)=val_var1(j)+pas1) out_var=f(val_var1, val_var2)

Minimum Circuit Design Requirements: Swept Variable

Convergence problems: The most common cause of failure of the DC sweep analysis is an attempt to analize a circuit with regenerative feedback, for instance a Schmitt trigger. There is an easy solution for this problem: don’t do this. The DC sweep is not appropriate for calculating the hysteresis of such circuits because it is required to jump discontinously from one solution to another at the crossover point. Instead, use transient analysis.

Settings of primary variable Settings of secondary variable

5. Small-Signal DC Transfer The Small-signal DC transfer analysis causes the small- signal transfer function to be calculated by linearizing the circuit around the bias point. The small-signal gain (dV out /dV in ), (dI out /dI in ), (dI out /dV in ) sau (dV out /dI in ), input resistance (dV in /dI in ), and output resistance (dV out /dI out ) are calculated and reported. Minimum circuit design requirements The circuit should contain an input source, such as VDC. Minimum program setup requirements In the Transfer Function dialog box, specify:Transfer Function dialog box the name of the input source the output variable

Example 1: Consider the CE BJT amplifier. Compute the small-signal parameters when the input small-signal is I1. Simulation results are: BETADC 5.81E+01 GM 4.89E-02

SMALL-SIGNAL CHARACTERISTICS V(OUT)/I_I1 = E+05 INPUT RESISTANCE AT I_I1 = 1.239E+03 OUTPUT RESISTANCE AT V(OUT) = 1.951E+03

6. DC Sensitivity The sensitivity is calculated by linearizing all devices around the bias point. DC sensitivity analysis calculates and reports the sensitivity of one node voltage: absolute sensitivity () and relative sensitivity, to each device parameter for the following device types: resistors independent voltage and current sources voltage and current-controlled switches diodes bipolar transistors Minimum program setup requirements: In the Sensitivity Analysis dialog box, enter the output variable desired.Sensitivity Analysis dialog boxoutput variable

Example 1: Consider the BJT cascode amplifier (CE-CB). Compute the sensitivity of IC(Q2).

**** DC SENSITIVITY ANALYSIS TEMPERATURE = DEG C DC SENSITIVITIES OF OUTPUT I(V_VSENS) ELEMENT ELEMENT ELEMENT NORMALIZED NAME VALUE SENSITIVITY SENSITIVITY (AMPS/UNIT) (AMPS/PERCENT) R_RE 3.300E E E-06 R_R E E E-06 R_R E E E-06 R_R E E E-06 R_RC 6.000E E E-08 R_RS 4.000E E E+00 R_RL 4.000E E E+00 V_VSENS 0.000E E E+00 V_V E E E-05 V_VS 0.000E E E+00

7. Options The Options is used to set all the options, limits, and control parameters for the simulator.