ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

Similar documents
ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

EE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

ETIN25 Analogue IC Design. Laboratory Manual Lab 2

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

Homework Assignment 07

EK307 Active Filters and Steady State Frequency Response

ECE4902 C Lab 7

Introduction to NI Multisim & Ultiboard Software version 14.1

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

EECS 312: Digital Integrated Circuits Lab Project 2 Extracting Electrical and Physical Parameters from MOSFETs. Teacher: Robert Dick GSI: Shengshuo Lu

ECE 2201 PRELAB 6 BJT COMMON EMITTER (CE) AMPLIFIER

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

ECE 532 Hspice Tutorial

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

Homework Assignment 07

MultiSim and Analog Discovery 2 Manual

ENGI0531 Lab 2 Tutorial

EE140: Lab 5, Project Week 2

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

The above figure represents a two stage circuit. Recall, the transfer function relates. Vout

ECE 310L : LAB 9. Fall 2012 (Hay)

Op-Amp Simulation Part II

EE140: Lab 5, Project Week 2

E84 Lab 3: Transistor

ECE 220 Laboratory 3 Thevenin Equivalent Circuits, Constant Current Source, and Inverting Amplifier

EXPERIMENT NUMBER 10 TRANSIENT ANALYSIS USING PSPICE

EE 3305 Lab I Revised July 18, 2003

Simulating Circuits James Lamberti 5/4/2014

14:332:223 Principles of Electrical Engineering I Instructions for using PSPICE Tools Sharanya Chandrasekar February 1, 2006

LT Spice Getting Started Very Quickly. First Get the Latest Software!

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

1. Hand Calculations (in a manner suitable for submission) For the circuit in Fig. 1 with f = 7.2 khz and a source vin () t 1.

Laboratory 4 Operational Amplifier Department of Mechanical and Aerospace Engineering University of California, San Diego MAE170

EE4902 C Lab 7

ECEN 474/704 Lab 6: Differential Pairs

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

PHYSICS 330 LAB Operational Amplifier Frequency Response

Lecture 2 Analog circuits. Seeing the light..

EE 2274 MOSFET BASICS

Cir cuit s 212 Lab. Lab #7 Filter Design. Introductions:

Pre-Lab. Introduction

Assignment 8 Analyzing Operational Amplifiers in MATLAB and PSpice

STATION NUMBER: LAB SECTION: Filters. LAB 6: Filters ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

0.85V. 2. vs. I W / L

Operational Amplifiers 2 Active Filters ReadMeFirst

EK307 Passive Filters and Steady State Frequency Response

ENG 100 Lab #2 Passive First-Order Filter Circuits

Magnitude and Phase Measurements. Analog Discovery

Chapter 12: Electronic Circuit Simulation and Layout Software

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

Figure 1. Main window (Common Interface Window), CIW opens and from the pull down menus you can start your design. Figure 2.

ECE 585 Microwave Engineering II Lecture 16 Supplemental Notes. Modeling the Response of a FET Amplifier Using Ansoft Designer K.

Using LTSPICE to Analyze Circuits

ECE 2274 MOSFET Voltmeter. Richard Cooper

Lab 6: Building a Function Generator

3.2 Measuring Frequency Response Of Low-Pass Filter :

Operational Amplifier BME 360 Lecture Notes Ying Sun

Experiment 5 Single-Stage MOS Amplifiers

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Lab 4: Analysis of the Stereo Amplifier

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

Laboratory 8 Operational Amplifiers and Analog Computers

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

EE 210 Lab Exercise #5: OP-AMPS I

LTSpice Basic Tutorial

Introduction to PSpice

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

Lab 9 Frequency Domain

Class #8: Experiment Diodes Part I

EECS 312: Digital Integrated Circuits Lab Project 1 Introduction to Schematic Capture and Analog Circuit Simulation

Operational Amplifier Circuits

EE 210 Lab Exercise #3 Introduction to PSPICE

Testing and Stabilizing Feedback Loops in Today s Power Supplies

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering

SAMPLE: EXPERIMENT 2 Series RLC Circuit / Bode Plot

5.25Chapter V Problem Set

ENEE207 Electric Circuits Lab Manual

Laboratory Experiment #1 Introduction to Spectral Analysis

Operational Amplifiers

Analog Electronics. Lecture Pearson Education. Upper Saddle River, NJ, All rights reserved.

Lab 9: Operational amplifiers II (version 1.5)

LLS - Introduction to Equipment

Using the V5.x Integrator

EE 105 MICROELECTRONIC DEVICES & CIRCUITS FALL 2018 C. Nguyen. Laboratory 2: Characterization of the 741 Op Amp Preliminary Exercises

Lecture 2 Analog circuits. Seeing the light..

Laboratory on Filter Circuits Dr. Lynn Fuller

55:041 Electronic Circuits The University of Iowa Fall Exam 3. Question 1 Unless stated otherwise, each question below is 1 point.

EENG-201 Experiment # 4: Function Generator, Oscilloscope

Physics 303 Fall Module 4: The Operational Amplifier

Class #9: Experiment Diodes Part II: LEDs

OPERATIONAL AMPLIFIERS (OP-AMPS) II

CHARACTERIZATION OF OP-AMP

A Brief Handout for Introduction to

Lab 6: MOSFET AMPLIFIER

Filter Design, Active Filters & Review. EGR 220, Chapter 14.7, December 14, 2017

Transcription:

ECE4902 Lab 5 Simulation Simulation Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation Be sure to have your lab data available from Lab 5, Common Source Amplifier with Active Load. Also, be sure you use the updated model files using the parameters you developed and verified in Labs 3 and 4. Following is an overview of the sections of this lab S5-1. Common Source amplifier with active load S5-2. DC sweep, finding operating point S5-3. Using calculator to find gain from DC sweep plot S5-4. AC sweep at operating point S5-5. Using Bode plot to find gain, f3db, ft Here you draw the schematic and set up the simulation for the common source amplifier from Lab 5 From the DC sweep of the common source amplifier, you find the DC operating point to use for the AC sweep in part S5-4. The low-frequency small-signal gain is the slope of the DC input-output plot at the operating point. The Calculator function in cadence can be used to calculate functions of waveforms, for example, derivatives. Here we use the simulator to sweep frequency (rather than DC voltage). The result is a plot of behavior vs. frequency. If we plot magnitude and phase of gain vs. frequency, we have a Bode plot The Bode plot can be used to find the bandwidth (3-dB frequency f 3dB ) and the unity gain frequency (f T ) S5-6. Exporting to MATLAB S5-1. Common source amplifier with active load Data can be exported for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation Using the techniques you've practiced in simulating Labs 1 and 3, draw the schematic of the common source amplifier with active load. Your schematic should look something like this:

Note the input source V_IN. In class we have usually drawn the input as two separate sources, a DC bias source setting the operating point and a small signal source in series. While we could draw two sources in the schematic, it is more common practice to set the DC and AC source values in one source. To see how this is done, let's look at the Properties window for the V_IN source:

Note that the Properties window allows entries for both the AC magnitude (value of the small signal component) and the DC voltage (the DC bias level). A little explanation is in order here: 1. DC voltage For the DC bias, we will sweep the value of the variable vdc_in to find the correct input operating point to give an output operating point of +2.5V. This corresponds to your procedure in lab, when you adjusted the DC offset of the function generator to get the correct DC operating point at your circuit output. 2. AC magnitude This is supposed to be the "small signal" -- but there is an AC magnitude of 1V entered!?! From your lab measurements you know that a 1V input amplitude is much too big to satisfy the "small signal" assumption, and would result in clipping

at the output. To measure the gain in lab, you applied a small input magnitude (for example, maybe 10mV peak), then measured the output magnitude (of order 1V peak), then divided v out / v in to get the small-signal gain. The key here is that the AC analysis we will be doing uses the linearized smallsignal model. It doesn't check for sanity in the output amplitude. If the small signal gain of your circuit is 100, and you apply an AC input of 1V peak, it will tell you the output is 100V peak. As an experienced designer you know this won't really happen. But, the reason we use a 1V input is that we can see the gain directly without having to divide by the input magnitude -- since the input is 1, the output magnitude corresponds directly to the gain. So, with this background information, let's proceed to the simulations. S5-2. DC sweep, finding operating point Do a DC sweep of vdc_in, the DC value of the input source V_IN. Because of the steep slope of the input-output plot in the high gain region, you will need to reduce the sweep increment to around 1mV to be sure of seeing the gain behavior in the high gain region. 1) Start Analog Environment Once you've saved the schematic and started the Analog Environment tool, click on the Edit > Copy from Cell view to enter the vdc_in variable name. You need to supply some value for the simulator to run, so just enter something reasonable like 2V for now. You will be sweeping the DC value to get a precise operating point shortly.

2) Set up DC sweep Choose a DC analysis. Click on the "Component Parameter" button and select the V_IN component on the schematic. Sweep the dc value over a range that (based on your lab measurements) you know will include the high gain portion of the input-output plot. In this example I chose a Start point of 1V and a Stop point of 3V. Choose a Linear Sweep, with a Step Size of 1mV to be sure of seeing the high gain region.

3) Choose outputs to be plotted On the schematic, choose two quantities to plot: the output voltage and the drain current of the NMOS device. Use the Outputs > To Be Plotted > Select On Schematic and remember to click on a node wire to plot a voltage; on an element terminal to plot a current.

4) Run the simulation The Analog Environment should now look like this, ready to run the simulation:

Do not forget to set the model libraries! After sweeping the DC value of V_IN from 1V to 3V with 1mV resolution, your output should be similar (not identical!) to the following:

5) New Sub-window feature To see the values more clearly, it's usually beneficial to plot both graphs on separate axes. To plot on separate axes, click on the "New Sub-window" button (circled in red above), then select and drag one of the traces to the new window. You should see a plot similar to the following:

Now you can use the crosshairs to identify the value of V_IN that corresponds to an output DC bias level of 2.5V. In the example shown above, the top cursor is at an output of 2.5V; both devices are in the active region) for an input voltage of 1.871V You will use this value as the DC component of V_IN for the AC sweep later. In this example, for vout to be at 2.5V, the variable vdc_in should be at 1.871V. The µa, bottom cursor shows that the DC drain current at this operating point is 105 which should be close to the current measured in the lab.

6) Deleting a plot Once you've verified the DC current at the operating point, you can delete the plot of drain current to simplify the display and focus on the output voltage behavior. Simply click in the subwindow and hit the delete key. It should disappear and you will be back to a single plot of only vout. Now you can use the delta cursor to select points around the center of the linear range. To select the delta cursor hit 'd' or go to Trace > Delta cursor. Here the "slope = -90.5" tells us to expect a small signal gain (slope of the input-output plot) of -90.5 when we do the AC analysis.

5-3. Using calculator to find gain from DC sweep plot The DC gain is the slope or derivative of the DC sweep plot. You can plot the derivative using the 'deriv' function of the calculator. 1) Go to Tools > Calculator to open this tool.

2) First delete anything that may be in the equation area. We now need to select the output waves to do calculations on. Click on the button marked wave, and then in the simulation output plot window. Click on the output waveform. Next find and select deriv from the functions list on the right, and then click plot (circled in red above) to plot the resulting equation.

You should see a plot like this:

Zoom in on the high gain region to get a better look.

Note a few things from this zoomed-in view: The derivative is not constant in the high gain region! Even though the plot of vout looks kind of linear, it really isn't, as is shown by the varying derivative. The reason is that the actual current-voltage characteristic at the drain, which we represent with a small signal output resistance r ds, isn't really linear. To get linear behavior from our eventual op-amp design, we will need to use negative feedback around the high gain op-amp. The maximum value of the derivative, -97.7, is larger in magnitude than what we predicted from the slope between the delta cursors. To get the maximum small signal gain, we should use an input DC operating point of 1.87V in the AC analysis. We should then expect something about -97.7 for the DC gain of the circuit. S5-4. AC sweep at operating point 1) Set up for AC sweep in analog Environment In Open the Analysis window and select ac. Click on Frequency for the Sweep Variable Set Frequency range for 1 to 1G (1GHz), and a Logarithmic sweep of 20 points per decade. This will give good resolution for your Bode plot

3) Simulate Set the DC value of the input source vdc_in to the VIN from the previous part corresponding to the output being at the intended operating point. To simplify the output plot, delete the dc analysis and the output plot of drain current - just look at vout

Run the simulation and you will get the AC magnitude as a function of frequency. It's not a Bode plot yet, since there's no phase and the vertical axis is in linear units, not db. Check that the low frequency (~DC) gain corresponds with the value you got earlier from the derivative of the input-output DC plot. In this case, the low frequency value of 97.68 matches up well.

4) Go back to the Analog Environment simulation interface, and click on Results > Direct Plot > AC Magnitude and Phase.

5) Go to the schematic window. Click on the 'vout' net. Then hit the Esc key to finish the selection. On the Waveform separate the axes again to get a better look at what's going on. You should see a plot like the one below: S5-5. Using Bode plot to find gain, 3dB bandwidth f 3dB, Unity Gain Frequency f T The low frequency gain should match the DC gain from the previous part. Use the cursors to find the 3-dB frequency and the unity gain frequency and compare to your measured results. In the plot above, the low frequency DC gain is 39.8dB, which converts to 10 (39.8/20) = 97.7. At a frequency of 920 Hz, the gain magnitude has dropped to a value 3dB

below its maximum - so the bandwidth is 920Hz. The plot below shows the gain has dropped to approximately 0dB (unity) at a frequency of 87.8 khz. Note that 97.7 X 920Hz = 89.8 khz ~ 87.8 khz, a preview of the gain-bandwidth product relationship! S5-6. Exporting to MATLAB, Excel, etc. 1) Go back to the waveform window. In this example, it is the Bode plot just created. 2) Open Tools > Calculator. Click the 'Wave' button and select the waveform you want. In this example, it is the magnitude plot (in db). 3) Click the button 'tabular results display' (circled in red below) and click 'ok'.

You have to set the range you are looking for: To get any use from this information you need to be able to access it from MATLAB or some other program. To do this, select File > Save as CSV to save the data as a comma delimited file, which can then be read into MATLAB.