ECE 532 Hspice Tutorial

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

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

Op-Amp Simulation Part II

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

ETIN25 Analogue IC Design. Laboratory Manual Lab 2

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

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

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

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

ECE 2274 MOSFET Voltmeter. Richard Cooper

The default account setup for the class should allow you to run HSPICE without any further configuration. To verify this, type:

Elad Alon HW #1: Circuit Simulation EECS 141 Due Thursday, Aug. 30th, 5pm, box in 240 Cory

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

PHYSICS 330 LAB Operational Amplifier Frequency Response

EE 3305 Lab I Revised July 18, 2003

Homework Assignment 06

ECEN 474/704 Lab 8: Two-Stage Miller Operational Amplifier

Simulating Circuits James Lamberti 5/4/2014

EE140: Lab 5, Project Week 2

ECEN 474/704 Lab 6: Differential Pairs

ECE 3274 MOSFET CD Amplifier Project

Index. Small-Signal Models, 14 saturation current, 3, 5 Transistor Cutoff Frequency, 18 transconductance, 16, 22 transit time, 10

Homework Assignment 07

EEL2216 Control Theory CT2: Frequency Response Analysis

0.85V. 2. vs. I W / L

Lecture 2 Analog circuits. Seeing the light..

MOSFET Amplifier Design

Phy 335, Unit 4 Transistors and transistor circuits (part one)

ECE 2201 PRELAB 6 BJT COMMON EMITTER (CE) AMPLIFIER

Background (What Do Line and Load Transients Tell Us about a Power Supply?)

EECE 488: Short HSPICE Tutorial. Last updated by: Mohammad Beikahmadi January 2013

LF155/LF156/LF355/LF356/LF357 JFET Input Operational Amplifiers

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

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

Lecture 2 Analog circuits. Seeing the light..

Homework Assignment 10

EECE 488: Short HSPICE. Tutorial. Last updated by: Mohammad Beikahmadi January Original presentation by: Jack Shiah

LM348. Quad Operational Amplifier. Features. Description. Internal Block Diagram.

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

Federal Urdu University of Arts, Science & Technology Islamabad Pakistan THIRD SEMESTER ELECTRONICS - II BASIC ELECTRICAL & ELECTRONICS LAB

Operational Amplifier BME 360 Lecture Notes Ying Sun

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

Lecture #2 Operational Amplifiers

Lecture Notes Unit-III

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

ECEN 474/704 Lab 1: Introduction to Cadence & MOS Device Characterization

Electronic PRINCIPLES

ECE4902 C Lab 7

Chapter 10: The Operational Amplifiers

Lab 9: Operational amplifiers II (version 1.5)

Operational Amplifiers. Boylestad Chapter 10

Physics 303 Fall Module 4: The Operational Amplifier

Assignment 8 Analyzing Operational Amplifiers in MATLAB and PSpice

EECE488: Analog CMOS Integrated Circuit Design Set 7 Opamp Design

Lecture 2, Amplifiers 1. Analog building blocks

EE140: Lab 5, Project Week 2

Tsung-Chu Huang. Department of Electronic Engineering National Changhua University of Education /10/4-5 TCH NCUE

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

ECEN 325 Lab 5: Operational Amplifiers Part III

EE 2274 MOSFET BASICS

d. Why do circuit designers like to use feedback when they make amplifiers? Give at least two reasons.

DIGITAL VLSI LAB ASSIGNMENT 1

Infrared Communications Lab

Low Cost, General Purpose High Speed JFET Amplifier AD825

School of Sciences. ELECTRONICS II ECE212A 2 nd Assignment

Homework Assignment 07

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

DC Operating Point, I-V Curve Trace. Author: Nate Turner

Lecture 2 Analog circuits. Seeing the light..

Common-Source Amplifiers

High Speed, Low Power Dual Op Amp AD827

Mentor Graphics OPAMP Simulation Tutorial --Xingguo Xiong

ECEN 474/704 Lab 5: Frequency Response of Inverting Amplifiers

ECE 363 FINAL (F16) 6 problems for 100 pts Problem #1: Fuel Pump Controller (18 pts)

ECE 415/515 ANALOG INTEGRATED CIRCUIT DESIGN

Experiments #7. Operational Amplifier part 1

IOWA STATE UNIVERSITY. EE501 Project. Fully Differential Multi-Stage Op-Amp Design. Ryan Boesch 11/12/2008

EE3204 D2015 HW Set 3

AN294. Si825X FREQUENCY COMPENSATION SIMULATOR FOR D IGITAL BUCK CONVERTERS

SAR (successive-approximation-register) ADCs

ELECTRICAL CIRCUITS 6. OPERATIONAL AMPLIFIERS PART III DYNAMIC RESPONSE

Lecture 2 Analog circuits...or How to detect the Alarm beacon

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

When you have completed this exercise, you will be able to determine the frequency response of an

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

Figure 1: JFET common-source amplifier. A v = V ds V gs

Testing and Stabilizing Feedback Loops in Today s Power Supplies

ENEE307 Lab 7 MOS Transistors 2: Small Signal Amplifiers and Digital Circuits

Lab 9 Frequency Domain

SIMULATION OF A SERIES RESONANT CIRCUIT ECE562: Power Electronics I COLORADO STATE UNIVERSITY. Modified in Fall 2011

Analog CMOS Interface Circuits for UMSI Chip of Environmental Monitoring Microsystem

Homework Assignment 13

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

OPERATIONAL AMPLIFIERS and FEEDBACK

OPERATIONAL AMPLIFIER PREPARED BY, PROF. CHIRAG H. RAVAL ASSISTANT PROFESSOR NIRMA UNIVRSITY

High Speed, Low Power Dual Op Amp AD827

Laboratory #3, 2009

Frequency Response Analysis and Design Tutorial

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Dual Bipolar/JFET, Audio Operational Amplifier OP275*

Transcription:

SCT 2.03.2004 E-Mail: sterry2@utk.edu ECE 532 Hspice Tutorial I. The purpose of this tutorial is to gain experience using the Hspice circuit simulator from the Unix environment. After completing this assignment, the student should be able to: A. Use Hspice to find the operating point for an analog circuit. B. Use Hspice to plot an amplifier s open-loop frequency response and be able to measure low frequency gain, gain bandwidth product, phase margin, and gain margin. C. Use Hspice to plot the closed-loop transient response of an amplifier, and be able to plot and measure both the large-signal (e.g. slew-rate) and small-signal (e.g. 10-90 risetime) step response. II. Preliminary Setup A. First you must add Hspice to your search path (all commands to be entered from the unix prompt, from now on assume that the % symbol refers to the unix prompt) % source ~cad/.cshrc % synopsys_tools B. Next create a simulation directory and copy over the required simulation files (start from home directory) % mkdir sims % cd sims % mkdir spice_tutorial % cd spice_tutorial % cp ~scterry/analog/sims/ece532/test.sp. % cp ~scterry/analog/sims/ece532/cmosamp.spice.

C. Finally create a models directory and copy over the model files (again start from your home directory). % mkdir model % cd model % cp ~scterry/analog/model/ece532/*ami05u*. D. Helpful Unix Commands 1. To edit a text document in Unix type (this assumes you have already sourced ~cad/.cshrc) % edit filename 2. To print a text or postscript file from the Unix machines in the FH-508 electronics lab type % lp dfh507 filename III. Operating Point Calculation A. Background: When simulating analog circuits, it is very good practice to generate an operating point and study it carefully before performing an AC sweep, DC sweep, or transient simulation. The operating point shows all the bias voltages in the circuit, and also all of the important large- and small-signal parameters for the transistors. Almost all analog circuit design problems can be quickly found by examining the operating point. B. First edit the file test.sp so that the.inc statements point to the correct places in your account. Note that if you are including a file that is in the same directory as the *.sp file, then you only have to use the file name. C. Fig. 1 shows the correct configuration for measuring the operating point of an amplifier. Confirm that the host-file reflects this configuration. D. To generate an operating point type at the command line:

Fig. 1. Circuit for measuring an amplifier s operating point % hspice test.sp >! test.out & E. Assignment: Open the file test.out and use the information to construct a table showing these important characteristics: 1. Amplifier offset voltage 2. Drain current (I D ), drain-to-source voltage (V DS ), saturation voltage (V DSAT ), gate-to-source voltage (V GS ), transconductance (g m ), output resistance (r o = 1/g ds ), and operating region for each transistor (find the inversion region and saturation region, also ignore the Hspice listed operating region because it might be wrong). IV. AC Analysis A. Background: AC analysis is used to plot an amplifier s frequency response. It can be used to find an amplifier s small-signal bandwidth, phase margin, commonmode rejection, etc. Note that an AC analysis is performed by linearizing a circuit about its bias point, and can therefore not give any information about non-linear effects such as slew-rate, distortion, output limiting, etc. B. Preliminary: Edit the.sp file so the amplifier s open loop gain can be measured. Use the configuration shown in Fig. 2. Additionally you must add an AC sweep statement like this one

Fig. 2. Circuit for measuring an amplifier s AC response. Fig. 3. Awaves window with annotation

.AC DEC 10 1 10X C. Running the simulation and plotting the output 1. Run the simulation from the command line as before. After the simulation is complete, you should always check your output file to be sure the simulation did not have any problems. % hspice test.sp >! test.out & 2. The program AvanWaves will be used to view the output. Fig. 3 shows a blank Awaves window with several important buttons annotated. To launch AvanWaves type at the command line % awaves & 3. Once Awaves is open, click on DESIGN and then OPEN. Next click on test.sp and the Results Browser will open automatically. In the Results Browser, click the words AC: ece-532 that appear next to the ac0 and all of the variables which are available for plotting will be shown. 4. First we will plot the magnitude of the frequency response. First click on the Expression Builder button in the main window and then click the decibel function listed under the Functions column. Next go back to the Results Browser and select Volts Mag from the Types: column. Then go the Curves: column and middle click vout and then drag and drop it into the expression field in the Expression Builder window. Next you must give the expression a name (e.g. GAIN) in the Result field and hit return. To view the magnitude response, simply double click on the gain expression in the Expressions column from the Expression Builder window. You can now close the expression builder window. 5. Now we will plot the phase response. First go back to the main Awaves window and click Panels and then Add. Now go back to the Results Browser window and under the Types: column click Volts Phase. Finally double click vout in the Curves: column.

6. The next step is to clean up the plot so it will be readable. First, go the main Awaves window and group the two windows by clicking Panels and then Group Panels and then click on both panels so that the title of each is highlighted in pink. Next right click on the x-axis in each plot and select logarithmic. Often this will scale the x-axis so that it is not readable. To fix this problem, click on the Zoom x-axis button and go to one of the plots. Left click in the plot near 1 Hz, and then hold and drag to the far right edge of the plot. The frequency axis of your plot should now be in decades and should run from 1 Hz to 10 MHz. 7. To measure the gain bandwidth product click on the Measure Point button and then go the magnitude response plot. Sweep over the plot until you see the magnitude go to zero and left click at this point. Likewise to measure the phase margin click on the Measure Point button and go to the unity gain crossover frequency and left click. To save your plot click on the Print button and select Print To: File and PS format and then click Print. Type in a file name (filename.ps) and make sure that the directory you are trying to write to is in your account. You can print this file directly from unix, or you can make it windows readable by typing at the command line %ps2pdf filename.ps 8. My plot is shown in Fig. 4. D. Assignment: Report the measured results for the previous step in tabular format, and print out a plot of the frequency response. V. Transient Analysis A. Background: Transient analysis models the time domain response of a circuit. It can be used to investigate large-signal effects such as slew rate limiting, clipping, distortion, etc. It can also be used to investigate small-signal effects, such as 10 90 risetime, overshoot, and settling time. B. Small signal performance

Fig. 4. Magnitude and phase Bode plot generated using Hspice

1. Edit the.sp file to measure the small-signal step response using the circuit shown in Fig. 1. Instead of grounding the positive input add a 50 mv pulse voltage source, such as in the following statement VIN VINP 0 PWL(0 0 500NS 0 500.1NS 50MV) 2. Additionally you must add a transient statement.tran 1N 1000N 0 1N 3. Finally run the simulation from the command line and plot the result in Awaves. To plot the output signal, all you have to do is plot vout directly in the window without using the Expression Builder. My result is shown in Fig. 5. C. Large Signal Performance 1. The circuit for measuring the large signal transient response is shown in Fig. 6. An inverting gain configuration is used so that the amplifier will operate with a fixed input common-mode level, and the unity gain buffer is used to isolate the amplifier output from the feedback resistance. The buffer could be realized as a simple ESOURCE as E1 VOUTX 0 (VOUT,0) 1 2. To measure the slew rate generate a large input pulse (e.g. 2V to +2V). Simulate the circuit and plot the transient response as before. Simulate for both a positive and negative pulse. The following pulse statement can be used VIN VINX 0 PWL(0 2 500N 2 500.1N 2 2500N 2 2500.1N 2) D. Assignment: Generate plots for both the small-signal and large-signal pulse responses and measure the 10 90 risetime and positive and negative slew-rate. Report your results in tabular form.

Fig. 5. Small-signal step response

Fig. 6. Circuit for measuring an amplifier s slew rate Fig. 7. Large-signal step response