EE141 Fall 2003 Discussion 1 Tips for Using SPICE.

Slides:



Advertisements
Similar presentations
Variation Aware Gate Delay Models Dinesh Ganesan.
Advertisements

EE 積體電路設計導論 Introduction to HSPICE
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.
EEL102 Introduction to SPICE. Spice – Introduction Spice is a short form of : Simulated Program with Integrated Circuit Emphasis Used for circuit analysis.
Analog Electronics Workshop (AEW) Apr 3, Contents Intro to Tools Input Offset Input and Output Limits Bandwidth Slew Rate Noise EMIRR Filtering.
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) lecture10 Prof. Sherief Reda Division of Engineering, Brown University Spring 2008.
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.
INTRODUCTION Spice Excel. SPICE Simulation Program with Integrated Circuit Emphasis.
EMT 251 SPICE NETLIST. Introduction SPICE (Simulation with Integrated Circuits Emphasis) SPICE (Simulation with Integrated Circuits Emphasis) General.
Using Spice in Lab Practicing for Analog ASIC Design Goran Jovanović, Faculty of Electronic Engineering University of Niš Serbia and Montenegro.
Black Box Electronics An Introduction to Applied Electronics for Physicists 5. Pushing the Limits With Spice University of Toronto Quantum Optics Group.
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.
1 EE40 Summer 2010 Hug EE40 Lecture 10 Josh Hug 7/17/2010.
S. Reda EN160 SP’07 Design and Implementation of VLSI Systems (EN0160) Prof. Sherief Reda Division of Engineering, Brown University Spring 2007 [sources:
Department of EECS University of California, Berkeley EECS 105 Fall 2003, Lecture 16 Lecture 16: Small Signal Amplifiers Prof. Niknejad.
Lecture 11 ANNOUNCEMENTS OUTLINE Review of BJT Amplifiers
PSPICE Graphical Tutorial Based on the PSPICE in BR 123.
ECE C03 Lecture 61 Lecture 6 Delays and Timing in Multilevel Logic Synthesis Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
EE141 Spring 2003 Discussion 1 Tips for Using SPICE.
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.
Digital Integrated Circuits© Prentice Hall 1995 Inverter THE INVERTERS.
Solving Op Amp Stability Issues Part 1
Abdülkadir ERYILDIRIM Turgut Ozal University. The Objectives:  Open and Save New Project File  Create a Circuit Schematic  Get Place, Place Parts i.e.
Islamic Azad University - Qazvin Branch1 HSPICE ® Introduction Autumn 2006.
Electronic Circuits Laboratory EE462G Lab #3
THE INVERTERS. DIGITAL GATES Fundamental Parameters l Functionality l Reliability, Robustness l Area l Performance »Speed (delay) »Power Consumption »Energy.
EE 211 Lecture 4 T. H. Ortmeyer Spring This week’s labs Grounding Lab Labview Tutorial.
ECE122 – Digital Electronics & Design
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 1: September 5, 2012 Introduction and.
EENG 2920: Circuit Design and Analysis Using PSpice Class 3: DC and Transient Analysis Oluwayomi Adamo Department of Electrical Engineering College of.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Lecture on PSpice. Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated.
EE105 - Spring 2007 Microelectronic Devices and Circuits Prof. Ming C. Wu 261M Cory Hall.
SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available –Used for simulating.
WEBENCH Schematic Editor Hands On Problems
Introduction to HSPICE Speaker : Shang-Jyh Shieh TEL: Lab 7354.
Timing Analysis Section Delay Time Def: Time required for output signal Y to change due to change in input signal X Up to now, we have assumed.
1 Parametric analysis Overview This course describes how to set up parametric and temperature analyses. Parametric and temperature are both simple multi-run.
EE141 Fall 2004 Discussion 1 Tips for Using SPICE.
Introduction to PSpice
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 3: September 12, 2011 Transistor Introduction.
SJTU 2006 SPADE Manual Ma Diming
ECE 576 – Power System Dynamics and Stability
ELECTRIC CIRCUITS ECSE-2010 Spring 2003 Class 13.
Micron Technology Clinic Tool Flow and Comparison of Micron Package Models Presenter: Michael Tomer Advisor: Dr. Ken Stevens.
Timing Behavior of Gates
Physical Properties of Logic Devices Technician Series Created Mar
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 4: September 12, 2012 Transistor Introduction.
ECE122 – Digital Electronics & Design Tanner Tools Tutorial Ritu Bajpai September 4, 2008.
Circuit Delay Performance Estimation Most digital designs have multiple signal paths and the slowest one of these paths is called the critical path Timing.
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 5: September 8, 2014 Transistor Introduction.
AUDIO OSCILLATORS An audio oscillator is useful for testing equipment that operates in the audio-frequency range. Such instruments always produce a sine-wave.
Lab 1 LTspice Intro EC538 Selected Topics in Electronics 1 Eng. Nihal Tawfik.
Data Acquisition ET 228 Chapter
EMT 251 SPICE NETLIST.
Introduction to PSPICE
Electronic Devices Ninth Edition Floyd Chapter 13.
VLSI Testing Lecture 5: Logic Simulation
Electronic Circuits Laboratory EE462G Lab #6
Week 9: Series RC Circuit
INTRODUCTION Spice Excel.
Spice Seminar Simulation Program with Integrated Circuit Emphasis.
DC & Transient Response
Introduction to HSPICE
Medical electronics II RC operation amplifier circuits
Lecture 8: SPICE Simulation
Lecture 8: SPICE Simulation
Presentation transcript:

EE141 Fall 2003 Discussion 1 Tips for Using SPICE

Discussion Operation  Discussion talks about technical details that could help understanding the class material –Tips in using the circuit design tools –Advices on preparing for the projects and homeworks –Discussing common mistakes / misunderstandings in the graded homeworks –Review on some typical old exam problems  Open to questions and discussions

Computer Accounts for Students If you already have Instructional UNIX accounts, using your existing account on the Instructinal systems, including cory.eecs and the Sun xterminals in 199 Cory If you do not have UNIX account, you can request them using the on-line request process: go to a UNIX computer in 199 Cory and login as 'newacct' (password: 'newacct'). "newacct" asks for your SID number and you can select a login name. The account form is available in 391 Cory after 1pm the next day. If you enrolled via TeleBears, you are on the list for "newacct". If "newacct" rejects you, it tells you what to do. For more information, Cardkey Access for Students Go to 391 Cory or 387 Soda to get a cardkey or to request that access be added to it. If you are enrolled via TeleBears, you are pre-approved for the cardkey access that is needed for the class. Otherwise, you may need to get an approval from the instructor. 199 Cory (UNIX) is always unlocked. 111 and 117 Cory (Win2K) are unlocked when Cory Hall is unlocked. You need cardkey access to get into the building and Win2K labs after hours. Get Your Self Ready

SPICE —  The main computer-aided analysis program used in circuit design for the last 30 years  Originated from the work of a number of talented grad. Students in EECS Dept. of UC, Berkeley, under the guidance of D. Pederson and R. Rohrer.  The universal acceptance is due not only to its robustness and ease of use but also to its original free distribution by UCB.  In nowadays research is still going on to make SPICE faster, more reliable and extending the area of its application.

Where to Use  HSPICE is available for instructional use on: –the SunRays in 199 Cory –c199.eecs.berkeley.edu –cory.eecs.berkeley.edu –mingus.eecs.berkeley.edu –(there is no AWaves on mingus).

Getting Started Musts:  Input files must have the extension.sp for the waveform viewer to work.  The input file must have “.OPTION POST=2” specified.  Run the simulator on your input file: hspice filename.sp >! filename.lis  Use the waveform viewer to see the output: awaves Documental helps:  View the online documentation at  Do not print it out! (hspice manual is 10MB, over 1900 pages)  “The SPICE Book” by Andrei Vladimirescu

Netlist Format  The input files are case insensitive.  The first line is always a comment. Other lines are commented with a leading * or $  All nonlinear devices must have a.MODEL statement. Modeling of nonlinear elements Circuit netlist Control statements Analysis

Names  Can contain letters, numbers, and the characters ! # $ % * + - / [ ] _  Can be 1024 characters long  Node names can begin with letters, numbers, or the characters # _ ! %  Trailing alphabetic characters are ignored in net names. For example a node named 1A is considered to be equivalent to node 1  Nodes named 0, GND, GND!, and GROUND all refer to the global ground node.

Values  Scientific notation: e.g. 1.1e-17  Use a suffix: e.g. 2.3u (x=mega, k=kilo, m=mili, u=micro, n=nano, p=pico, f=femto)  Use a parameter: e.g. Kratio (parameters must be declared with a.PARAM statement)  Evaluated expressions: e.g. ‘500m*Kratio’  Voltage between two nodes: v(n1,n2)  Voltage of a node relative to ground: v(n1)  Current through an independent source: i(vin) Output Variables

Control .INCLUDE – includes a file, usually a model file, or a subcircuit file .OPTION – sets simulation options, e.g.OPTION POST=2 .ALTER – but allows another simulation to be performed with the same setup except the changes that follow the.ALTER statement .END – marks the end of an input file

Analysis  OP Operating point, DC circuit solution .DC Sweep of DC operating points (capacitances are ignored) .DC var startval stopval incr - performs a DC sweep on the independent source or parameter var, varying its value from startval to stopval using the increment incr. .TRAN Perform a transient analysis (differential equation solver) .TRAN tincr tstop – finds the operating point (.OP) and then performs a transient analysis of duration tstop seconds with a maximum time step of tincr. .AC Frequency sweep – used in analog design to find the frequency responds of a circuit

Measurement .MEASURE TRAN t_delay TRIG v(in) VAL=2.5 CROSS=1 TARG v(out) VAL=2.5 CROSS=1 –Measures the propagation delay between the nodes in and out, where the signals first cross 2.5 volts. .MEAS t_rise TRIG v(out) VAL=0.5 RISE=1 TARG v(out) VAL=4.5 RISE=1 –Measures the first 10%-90% rise time of a 5V signal .MEAS TRAN max_current MAX I(Vdd) –Measures the maximum current through the independent source Vdd .MEAS peak_power PARAM=’max_current*5’ –Calculates the peak power, assuming that max_current has been measured

Trouble Shooting — Failure to Converge  Non-convergence happens in OP, DC and TRAN analysis – when SPICE can’t find solution to the circuit calculation with the input control and circuit setup  Typical error messages: – *ERROR* : NO CONVERGENCE IN DC ANALYSIS – *ERROR* : INTERNAL TIME STEP TOO SMALL IN TRANSIENT ANALYSIS  To deal with it… – In digital circuit simulation, CHECK THE CIRCUIT CONNECTIONS. – In analog circuit simulation, do hand analysis / change control options / simplify models …

Trouble Shooting — No DC Path to Ground  (OP and DC) – This often happens with floating MOSFET gates. Just add a resistor between the node and ground, or use the.IC or.NODESET commands to create an initial condition. Be warned, however, that.NODESET and.IC can cause convergence problems.

Trouble Shooting — Stability Problems  (TRAN) – Sometimes a transient analysis shows a “ringing” or oscillation that shouldn’t be there. This can often be solved by reducing the maximum time step or using slower rise and fall times for independent sources.

Next — The Hand Analysis  A good designer must be equipped with two weapons: –The ability to get the most help from tools –The intuition into the design System definition / integration Architecture management Circuit optimization Device modeling –Simplified models of device operation with only first-order effect suffices to help us develop intuitions into the circuit functions / performances design.