Circuit Simulation Using SPICE ECE222

Similar documents
THE SPICE BOOK. Andrei Vladimirescu. John Wiley & Sons, Inc. New York Chichester Brisbane Toronto Singapore

MOSFET: Mxxx nd ng ns nb modelname W=value L=value Ad As Pd Ps

PSpice Simulation. The target of computer-aided analysis is to determine the circuit currents and voltages everywhere in the circuit.

HSPICE. Chan-Ming Chang

SPICE 4: Diodes. Chris Winstead. ECE Spring, Chris Winstead SPICE 4: Diodes ECE Spring, / 28

Circuit Simulation with SPICE OPUS

Introduction to SwitcherCAD

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

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

TAMU ECEN 751 Spring Project 1: Matlab Circuit Parser User s Manual

NGSPICE- Usage and Examples

Experiment #1: Solid State Diodes Testing & Characterization. Type Value Symbol Name Multisim Part Description Resistor 1MΩ R 2 Basic/Resistor ---

The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE 20 - LAB

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

Chapter #4: Diodes. from Microelectronic Circuits Text by Sedra and Smith Oxford Publishing

Introduction to PSpice

WinSpice. The steps to performing a circuit simulation with WinSpice are:

Laboratory Lecture 4

A Short SPICE Tutorial

Mor M. Peretz Power Electronics Laboratory Department of Electrical and Computer Engineering Ben-Gurion University of the Negev, ISRAEL

Circuit Simulation. LTSpice Modeling Examples

Chapter #3: Diodes. from Microelectronic Circuits Text by Sedra and Smith Oxford Publishing

Mentor Analog Simulators

An Introductory Guide to Circuit Simulation using NI Multisim 12

SPICE FOR POWER ELECTRONICS AND ELECTRIC POWER

Simulation Using WinSPICE

dc Bias Point Calculations

Microelectronic Circuits, Kyung Hee Univ. Spring, Chapter 3. Diodes

HSPICE (from Avant!) offers a more robust, commercial version of SPICE. PSPICE is a popular version of SPICE, available from Orcad (now Cadence).

Lec (03) Diodes and Applications

ESE319 Introduction to Microelectronics High Frequency BJT Model & Cascode BJT Amplifier

Conduction Characteristics of MOS Transistors (for fixed Vds)! Topic 2. Basic MOS theory & SPICE simulation. MOS Transistor

Topic 2. Basic MOS theory & SPICE simulation

Conduction Characteristics of MOS Transistors (for fixed Vds) Topic 2. Basic MOS theory & SPICE simulation. MOS Transistor

INTRODUCTION TO CIRCUIT SIMULATION USING SPICE

3.4. Reverse Breakdown Region Zener Diodes In the breakdown region Very steep i-v curve Almost constant voltage drop Used for voltage regulator

Amplifier Frequency Response, Feedback, Oscillations; Op-Amp Block Diagram and Gain-Bandwidth Product

Lab 7 PSpice: Time Domain Analysis

DESIGN TIP DT Variable Frequency Drive using IR215x Self-Oscillating IC s. By John Parry

ECE 304: Diode Capacitances

MG200Q2YS60A(1200V/200A 2in1)

ES 330 Electronics II Homework # 1 (Fall 2016 SOLUTIONS)

Electronic Circuits Laboratory EE462G Lab #3. Diodes, Transfer Characteristics, and Clipping Circuits

I1 19u 5V R11 1MEG IDC Q7 Q2N3904 Q2N3904. Figure 3.1 A scaled down 741 op amp used in this lab

Zener Diodes. Specifying and modeling the zener diode. - Diodes operating in the breakdown region can be used in the design of voltage regulators.

EXPERIMENT 4: RC, RL and RD CIRCUITs

Paper-1 (Circuit Analysis) UNIT-I

Diodes (non-linear devices)

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

BJT Circuits (MCQs of Moderate Complexity)

55:041 Electronic Circuits

FET Channel. - simplified representation of three terminal device called a field effect transistor (FET)

SPICE Simulation Program with Integrated Circuit Emphasis

Introduction to LTSpice

Electric Circuit Fall 2017 Lab3 LABORATORY 3. Diode. Guide

Radio Frequency Electronics

Journal of Engineering Research and Studies

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


Pulsed Power Engineering Circuit Simulation

SPICE for Power Electronics and Electric Power

Experiment #1 Introduction to SPICE

EEL 646 POWER ELECTRONICS II. Issa Batarseh. January 13, 2015

LECTURE 4 SPICE MODELING OF MOSFETS

Electrochemical Impedance Spectroscopy and Harmonic Distortion Analysis

Homework Assignment True or false. For both the inverting and noninverting op-amp configurations, V OS results in

LM4005 LM4005C150 MHz Video Line Driver

Made of semiconducting materials: silicon, gallium arsenide, indium phosphide, gallium nitride, etc. (EE 332 stuff.)

SPICE MODELING OF MOSFETS. Objectives for Lecture 4*

ECE 201 LAB 6 INTRODUCTION TO SPICE/PSPICE

Roll No. B.Tech. SEM I (CS-11, 12; ME-11, 12, 13, & 14) MID SEMESTER EXAMINATION, ELECTRONICS ENGINEERING (EEC-101)

AND8254/D. Avalanche TVS Diode SPICE Macro Models APPLICATION NOTE

R a) Draw and explain VI characteristics of Si & Ge diode. (8M) b) Explain the operation of SCR & its characteristics (8M)

High Temperature Silicon Carbide Power Schottky Diode

AC Analyses. Chapter Introduction

RClamp0504N RailClamp Low Capacitance TVS Diode Array

Electronics I. Midterm #1

Microelectronic Circuits

TOSHIBA IGBT Module Silicon N Channel IGBT MG400Q2YS60A

ENG2210 Electronic Circuits. Chapter 3 Diodes

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

University of Southern C alifornia School Of Engineering Department Of Electrical Engineering

LF411 Low Offset, Low Drift JFET Input Operational Amplifier

LF453 Wide-Bandwidth Dual JFET-Input Operational Amplifiers

Mor M. Peretz Power Electronics Laboratory Department of Electrical and Computer Engineering Ben-Gurion University of the Negev, ISRAEL

Lecture 14. Field Effect Transistor (FET) Sunday 26/11/2017 FET 1-1

TL082 Wide Bandwidth Dual JFET Input Operational Amplifier

LF353 Wide Bandwidth Dual JFET Input Operational Amplifier

Glossary + - A BNC plug that shorts the inner wire in a coax cable to the outer shield through a

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

University of Southern C alifornia School Of Engineering Department Of Electrical Engineering

GLOSSARY. A connector used to T together two BNC coax cables and a BNC jack. The transfer function vs. frequency plotted on Log Log axis.

A Colpitts VCO for Wideband ( GHz) Set-Top TV Tuner Applications

LF451 Wide-Bandwidth JFET-Input Operational Amplifier

LF353 Wide Bandwidth Dual JFET Input Operational Amplifier

Homework Assignment 02

f14m1s_elct7.fm - 1 The University of Toledo EECS:3400 Electronocs I Electronics I Problems Points Total 15 Was the exam fair?

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

GATE SOLVED PAPER - IN

3.4. Operation in the Reverse Breakdown

Transcription:

Circuit Simulation Using SPICE ECE222

Circuit Design Flow Idea Conception Specification Initial Circuit Design Circuit Simulation Meet Spec? Modify Circuit Design Circuit Implementation 2

Circuit Simulation Voltage and current signals are represented as continuous variables. Circuit elements are represented by linear or nonlinear device models. Circuit is described by a set of nonlinear differential equations. Time-domain circuit simulation means solving the differential equations at each time step iteratively based on previous step. Initial condition is required. Accuracy depends on the error criterion set. 3

Example: Node voltages: Ve 1 V e 2 Branch currents: ivs ir ic Device models: i R = GV R dv i = C C dt C Circuit equations using Modified Modal Analysis: Circuit equations for numerical analysis: G( V V ) 2 + i dv C dt V = e1 e Vs = e e1 V S 0 2 G( V V ) = 2 e1 e 0 0 0 0 0 0 Ve1 G G 1 Ve 1 0 d C 0 + = Ve2 G G 0 Ve 2 0 dt 0 0 i Vs 1 0 0 ivs VS 4

SPICE Simulation Program with Integrated Circuit Emphasis Developed at UC Berkeley Coincided with emergence of silicon valley Industry-standard general-purpose circuit simulator Numerical simulation Modified nodal analysis Trapezoidal or Gear integration method External nodes define boundary conditions Circuit elements represented by device models Text input, text or graphical output 5

Circuit Elements in SPICE Resistors Capacitors Inductors and coupled inductors Independent sources (V, I) Dependent sources Transmission lines Switches Uniform distributed RC lines Active devices Diodes, BJTs, JFETs, MOSFETs, MESFETs 6

Analysis Modes DC analysis (operating points):.dc,.op,.tf Also before transient and AC Sweep bias points AC small-signal analysis:.ac Frequency response Linearized small-signal device models Transient analysis:.tran Most frequently used in digital circuit simulation Tool to determine time-domain parameters 7

Analysis Modes (cont.) Pole-zero analysis:.pz Poles/zeros in the small-signal ac transfer function Small-signal distortion analysis:.disto Steady-state harmonic and intermodulation products for small input signal magnitudes Sensitivity analysis:.sens Sensitivity of DC operating-point or AC small-signal of an output variable with respect to circuit variables Noise:.NOISE Analysis at different temperature Nominal temperature of 27ºC 8

SPICE File A SPICE file is made of a series of statements. First line is a title statement. Last line is an end statement. The order of other statement is arbitrary. Element statements describe the circuit. Control statements describe model parameters and execute analyses. 9

SPICE Syntax Each statement is on one line, unless continued with + as the first character. Each statement consists of fields. Fields are separated by,= ( ) or spaces. Fields consist of keywords, symbols, names, numbers, or scale-factors. Scale-factors: T=1e12, G=1e9, MEG=1e6, K=1e3 M=1e-3, U=1e-6, N=1e-9, P=1e-12, F=1e-15 Comment lines start with * or $. 10

SPICE File Conventions Upper-case letters for SPICE keywords. Lower-case letters for user-defined names. File structure: Title Parameters Circuit description Input control Analyses Output control Models End Comment inserted for documentation. 11

Circuit Elements General syntax NAME node1 node2 noden <model_ref> value +<parameter1=val> < <parameter2=val> Nodes defined by unique numbering (or names in HSPICE). Node number 0 (or GND in HSPICE) reserved for ground. 12

Circuit Elements (cont.) Resistor Rxxx n1 n2 value Capacitor Cxxx n1 n2 value <IC=initial_condition> Inductor Lxxx n1 n2 value <IC=initial_condition> Coupled inductor Kxxx Lyyy Lzzz value 13

Circuit Elements (cont.) Independent voltage/current source Vxxx n+ n- <DC> DC_value Ixxx n+ n- <DC> DC_value> Vxxx n+ n- <<DC> DC_value> AC AC_value +<phase> Ixxx n+ n- <<DC> DC_value> AC AC_value +<phase> 14

Circuit Elements (cont.) Dependent sources VCVS: Exxx n+ n- nc1 nc2 value VCCS: Gxxx n+ n- nc1 nc2 value CCVS: Hxxx n+ n- nc1 nc2 value CCCS: Fxxx n+ n- nc1 nc2 value 15

Circuit Elements (cont.) Sinusoidal source Vxxx n+ n- SIN(vo va fo <td> <a> <phase>) Piece-wise linear sources Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3 ) Pulse sources Vxxx n+ n- PULSE(v0 v1 td tr tf tw t0) 16

Circuit Elements (cont.) Diode Dxxx n+ n- <model_name> BJT Qxxx nc nb ne <model_name> MOSFET Mxxx nd ng ns nb <model_name> L=val W=val +<AD=val> <AS=val> <PD=val> <PS=val> 17

Circuit Elements (cont.) Subcircuit Xxxx n1 n2 n3 subcircuit_name Subcircuit Definition.SUBCKT subcircuit_name n1 n2 n3 element statements.ends subcircuit_name 18

Output Statements.PRINT type ov1 ov2 ov3....plot type ov1 ov2 ov3... Node voltage, current through voltage sources Type: DC, AC, or TRAN Suffix: M: Magnitude DB: Magnitude in db P: Phase R: Real part I: Imaginary part 19

HSPICE Specials Node names.param Define parameters.include Include external SPICE file.lib Call library entries.options POST Create graphic plots for AvanWaves/CosmosScope 20

HSPICE Specials.MEASURE Rise, Fall and Time Delay Average, RMS, min, max, peak-to-peak and integral Find X when Y occurs Derivative and Integral Evaluations Equation Evaluations Relative Error See HSPICE manuals for more details 21

Device Models A wide variety of active device models Process parameter variation Process corners Statistical spread Behavioral modeling 22

SPICE Diode Model 23

SPICE Diode Model.MODEL model_name D (IS=val N=val RS=val +CJ0=val TT=val BV=val IBV=val) IS saturation current (default=1e-14 A) N emission coefficient (=1) RS series resistance (=0 ohm) CJ0 junction capacitance (=0 F) TT transit time (=0 sec) BV reverse bias breakdown voltage (=inf V) IBV reverse bias breakdown current (=1e-10 A) 24

Equivalent Circuit for Zener Diode 25

SPICE Netlist.SUBCKT zener_diode 1 2 *connections: * anode * cathode Dforward 1 2 ma_diode Dreverse 2 4 ideal_diode Vz0 4 3 DC 4.9V Rz 1 3 10 * diode model statements.model ma_diode D (Is=100pA n=1.679).model ideal_diode D (Is=100pA n=0.01).ends zener_diode 26

Example: Voltage Doubler 27

Example: Voltage Doubler 28

Further Reading Sedra & Smith 1.8, 2.9, 3.9 The Spice Page, http://bwrc.eecs.berkeley.edu/icbook/spice. 29