EE 積體電路設計導論 Introduction to HSPICE

Slides:



Advertisements
Similar presentations
ECE 3130 – Digital Electronics and Design
Advertisements

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.
1 Analysis and Simulation Exercises ~DC Circuit Analysis (1) Basic Circuit Laws (Kirchhoff ’ s Voltage/ Current Law) Thévenin’s Theorem Norton ’ s Theorem.
MicroSim pspice.
EEL102 Introduction to SPICE. Spice – Introduction Spice is a short form of : Simulated Program with Integrated Circuit Emphasis Used for circuit analysis.
Directions given for PSpice Schematics. AttributeDescription DELAYThe time delay before the pulses are started. ONTIMEThe length of time that the pulse.
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) lecture10 Prof. Sherief Reda Division of Engineering, Brown University Spring 2008.
Getting Started with Cadence Compiled by Ryan Johnson April 24, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT.
PSPICE Tutorial Spring 2015
PSpice Tutorial October 13, 2004 Franklin Chiang.
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.
Introduction to PSpice Simulation Software. The Origins of SPICE In the 1960’s, simulation software begins –CANCER Computer Analysis of Nonlinear Circuits,
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.
What is Spice? Spice is the short form of: Simulated Program with Integrated Circuit Emphasis.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
Advisor : Jin-Fu Li Teaching Assistant : Che-Wei Chou Advanced Reliable Systems (ARES) Laboratory Department of Electrical Engineering National Central.
ECE 3130 – Digital Electronics and Design Lab 4 VTC and Power Consumption Fall 2012 Allan Guan.
IEEE Spice Seminar Simulation Program with Integrated Circuit Emphasis.
PSPICE - Review Kishore C. Acharya. Kishore Acharya2 Starting Simulation with PSPICE Launch PSPICE design Manager Create a New Work Space or Open an Existing.
FCU, Department of ECE, IC Design Research Lab. TEL: # 4945 Pre-SIm , Post-Sim.
Circuit Simulation and Analysis with HSPICE
EE141 Fall 2003 Discussion 1 Tips for Using SPICE.
S. Reda EN160 SP’07 Design and Implementation of VLSI Systems (EN0160) Prof. Sherief Reda Division of Engineering, Brown University Spring 2007 [sources:
EE 2303 Week 2 EE 2303 Week 2. Overview Kirchoff’s Current Law (KCL) Kirchoff’s Voltage Law (KVL) Introduction to P-spice.
PSPICE Graphical Tutorial Based on the PSPICE in BR 123.
Getting Started with Cadence Prepared by Ryan Johnson, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The following.
EE141 Spring 2003 Discussion 1 Tips for Using SPICE.
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.
Abdülkadir ERYILDIRIM Turgut Ozal University. The Objectives:  Open and Save New Project File  Create a Circuit Schematic  Get Place, Place Parts i.e.
Behavioral Buffer Modeling with HSPICE – Intel Buffer
1 Circuit Simulation using PSPICE PSPICE Seminar.
Islamic Azad University - Qazvin Branch1 HSPICE ® Introduction Autumn 2006.
 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.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 Lab 4: VTC & Power.
ECE122 – Digital Electronics & Design
EENG 2920: Circuit Design and Analysis Using PSpice Class 3: DC and Transient Analysis Oluwayomi Adamo Department of Electrical Engineering College of.
Lecture on PSpice. Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated.
Square Wave Sources: Digclock and Vpulse Directions given for PSpice Schematics.
Optimization With HSpice. Before you start optimizing What are you optimizing for? –Linearity (as in an amplifier) –Gain –Frequency response –Drive ability.
ECE4430 Project Presentation
SPICE Simulation Program with Integrated Circuit Emphasis –Developed in 1970’s at Berkeley –Many commercial versions are available –Used for simulating.
Electronic Circuits Laboratory EE462G Lab #5 Biasing MOSFET devices.
EE 211 Lecture 6 Feb. 24, Topics Mid term exam Prelab policy Pspice Analysis Frequency Response.
WEBENCH Schematic Editor Hands On Problems
Introduction to HSPICE Speaker : Shang-Jyh Shieh TEL: Lab 7354.
Objectives Understand the design environment and flow
EE141 Fall 2004 Discussion 1 Tips for Using SPICE.
Introduction to PSpice
SJTU 2006 SPADE Manual Ma Diming
ARES LAB S.-P. Yong Hspice Tutorial 2008 Professor: Jin-Fu Li TAs: 永昇平 & 盧星辰.
ECE122 – Digital Electronics & Design Tanner Tools Tutorial Ritu Bajpai September 4, 2008.
CMOS 2-Stage OP AMP 설계 DARK HORSE 이 용 원 홍 길 선
Nov.6 th 1 Multimedia Lab..  Schematic Editor For MyAnalog 실행 ◦ MyCAD Pro 2007 > Schematic Editor For MyAnalog 2 Multimedia Lab.
EMT 251 SPICE NETLIST.
EMC of ICs Practical Trainings
Electronic Circuits Laboratory EE462G Lab #6
In The Name of God Design of A Sample And Hold Circuit Based on The Switched Op-Amp Techniques M.Rashtian: Faculty of Civil Aviation Technology College.
類比電路(一)實習.
Week 9: Series RC Circuit
INTRODUCTION Spice Excel.
Introduction to PSpice
Spice Seminar Simulation Program with Integrated Circuit Emphasis.
Introduction to HSPICE
Lecture 8: SPICE Simulation
global parameter model parameter temperature
Lecture 8: SPICE Simulation
Spice Seminar Simulation Program with Integrated Circuit Emphasis.
Presentation transcript:

EE323000 積體電路設計導論 Introduction to HSPICE Tutor : Chien-Chen Lin 2017/4/10

What is SPICE Simulation Program with Integrated Circuit Emphasis PSPICE 、SPECTRE use graphical interface like HSPICE use text interface like Mn vd vg vss vss n_18 w=1u l=0.18u m=1 device name net1 net2……. type parameter value SBT-Spice Star-HSpice H-Spice P-Spice SPECTRE SPICE2 SPICE2G.6 SPICE3 etc SPICE

Prepare files Hspice Library cic018.l Netlist inv.spi Simulation file Hw1.sp

Example (inverter analysis) * title .prot .lib “cic018.l” TT .unprot .inc “inv.spi” .option post x1 VIN VOUT VDD GND inv C1 out 0 0.05p v1 VDD 0 1.8 v2 GND 0 0 v3 VIN 0 0 .dc v3 0 1.8 0.01 .probe V(VOUT) .end VDD Set up Z A VSS Circuit description X1 3.3V Power supply Analysis File end

Basic syntax 第一行 HSPICE 不會讀到,一般用來註明TITLE 。 用 ﹡來當作整行註解;用$來當作該行部分註解。 SPICE code不分大小寫,且擺放位置先後順序可對調。 Net用0 、gnd來命名皆表示該 net 接地。 結尾要打.END 。

Device table Device table Unit table

Device Resistor Rxxx net1 net2 R=? Ω Ex : R1 v1 v2 100 Inductor Lxxx net1 net2 L=? H Ex : L2 v3 v4 1n Capacitor Cxxx net1 net2 C=? F Ex : C3 v5 v6 2p

Device Mxxx drain gate source body channel-type width length m . NMOS body is the most negative bias (GND) . PMOS body is the most positive bias (VDD) Ex : Inverter MP Z A VDD VDD p_18 w=1u l=0.18u m=2 MN Z A GND GND n_18 w=1u l=0.18u m=1

Corner FF: Fast NMOS and Fast PMOS TT: Typical NMOS and PMOS SS: Slow NMOS and Slow PMOS SF: Slow NMOS and PMOS FS: Fast NMOS and Slow PMOS

Sub-circuit .subckt sub-circuit name port name Your sub-circuit schematic .ends Ex : Inverter (inv.spi) *title .subckt inv A Z VDD GND MP Z A VDD VDD pch w=1u l=0.35u m=2 MN Z A GND GND nch w=1u l=0.35u m=1

Example (inverter DC analysis) * title .prot .lib “cic018.l” TT .unprot .inc “inv.spi” .option post x1 VIN VOUT VDD GND inv C1 out 0 0.05p v1 VDD 0 1.8 v2 GND 0 0 v3 VIN 0 0 .dc v3 0 1.8 0.01 .probe V(VOUT) .end VDD Set up Z A VSS Circuit description X1 1.8V Power supply Analysis File end

Example (inverter DC analysis) * title .prot .lib “cic018.l” TT .unprot .inc “inv.spi” .option post .param vin = 0 x1 VIN VOUT VDD GND inv C1 out 0 0.05p v1 VDD 0 1.8 v2 GND 0 0 v3 VIN 0 ‘vin’ .dc vin 0 1.8 0.01 .probe V(VOUT) .end VDD Set up Z A VSS Circuit description X1 1.8V Power supply Analysis File end

Source Voltage source Vxxx net1 net2 DC=? V AC=? V Ex : Vsupp vdd vss DC=3.3 Ex : Vin vi vss DC=2 AC=1 Vxxx net1 net2 SIN vdc vamp freq td df phase Ex: VSIN in 0 SIN 1.65 0.1 1Meg Vxxx net1 net2 PULSE v1 v2 td tr tf pw period Ex: VPULSE in 0 PULSE 0 3.3 1n 0.1n 0.1n 0.9n 2n Vxxx net1 net2 PWL t1 v1 t2 v2 t3 v3…….. Ex: VPWL in 0 PWL 0 0 1n 0 1.1n 3.3 2n 3.3 2.1n 0 3n 0 Current source Ixxx net1 net2 DC=? A AC=? A Ex : Isupp vdd vss DC=3.3

PULSE & PWL V0 vp 0 (1.8 0 0.5n 0.1n 0.1n 0.9n 2n) v1 td pw period v2 tf tr V0 vpwl 0 PWL( 0n 1.8 1n 0 2n 0 2.1n 1.8)

Analysis .OP: Analyze operation point of nodes in circuit. -> *.lis Syntax. .OP Example. .OP .DC: DC analysis to sweep parameter, source and temperature values. - > *.sw* Syntax. .DC <var1> <start> <stop> <step> Example. .DC Vgs 0 5 0.1 .AC: AC analysis to sweep frequency. -> *.ac* Syntax. .AC <DEC/LIN> <np> <start> <stop> Example. .AC DEC 10 1KHz 10MHz .Tran: Transient analysis to sweep time. -> *.tr* Syntax. .Tran <step> <stop> Example. .Tran 1ns 1us

Analysis .Probe : Probe the observation will not show in the result file but can be seen at awaves .probe V(net) I(device) .Print : Print the observation in the result file .print V(net) I(device) .Plot : Plot the observation in the result file (Funny Plot) .plot V(net) I(device)

Optional Analysis SWEEP: Additional nested sweep analysis. Sweep parameter, source or temperature values but not model parameters. Syntax. <Analysis> SWEEP <var> <start> <stop> <step> or <Analysis> SWEEP <var> <DEC/LIN> <np> <start> <stop> Example. .DC Vds 0 5 0.1 SWEEP Vgs 2 5 1 .AC DEC 10 1K 10M SWEEP RL 10K 30K 10K .Tran 1ns 1us SWEEP TEMP 0 100 10 .ALTER: Alter condition and repeat analysis. Syntax. .ALTER (usually combines with .param) Example. .ALTER .lib ‘cic018.l’ ff .ALTER .lib ‘cic018.l’ ss .END

Measure Function from to Syntax. .meas <Analysis> <Result_Var> FUNC <V(net)> From To Ex: .meas Tran MaxValue MAX V(out) from=1n to=10n Syntax. .meas <Analysis> <Result_Var> FUNC <V(net)> AT Ex: .meas DC DC_Gain DERIV V(out) at=‘0.5*3.3’ FUNC can be MIN, MAX, AVG, RMS, DERIV, INTEG PARAM Syntax. .meas <Analysis> <Result_Var> PARAM=(‘’) Ex: .meas AC AC_GAIN PARAM=(‘Vdb(out)-Vdb(in)’)

Examples 找出output在1n到10n的最高值 找出output在0.5VDD的斜率 .meas Tran MaxValue MAX V(out) from=1n to=10n 找出output在0.5VDD的斜率 .meas DC DC_Gain DERIV V(out) at=‘0.5*3.3’

Measure Trigger and Target Syntax. .meas <Analysis> <Result_Var> TRIG <V(netx)> <val=X> <Slew> TARG <V(nety)> <val=Y> <Slew> Ex: .meas tran SettleTime Trig V(out) val=0V rise=1 Targ V(out) + val=1V cross=last Analysis can be DC, AC, Tran Val means value of V(net) Slew can be rise, fall, cross (special word “last”)

Example .meas tran SettleTime Trig V(out) val=0V rise=1 Targ V(out) + val=1V cross=last Targ val=1V cross=last Trig val=0v rise=1 Targ val=1V cross=1

Measure Find When Syntax. .meas <Analysis> <Result_Var> FIND <V(net)> WHEN + <V(net)> Slew Ex: .meas AC Phase FIND VP(out) WHEN VdB(out)=0 fall=1 Find At Syntax. .meas <Analysis> <Result_Var> FIND <V(net)> AT Ex: .meas TRAN Volt Find V(out) at=10n

How to run HSPICE Make sure all files are in the same folder you can type ls to check Enter that folder, type hspice xxx.sp >! xxx.lis or hspice -i xxx.sp -o xxx.lis If there is no error, terminal will print out job concluded otherwise, terminal will print out job aborted Open xxx.lis file check error. It will tell you everything.

SPICE explorer Type sx & at terminal

SPICE explorer

SPICE explorer Double click

SPICE explorer Double click

Basic syntax (inverter DC analysis) * title .prot .lib “mm0355v.l” TT .unprot .inc “inv.spi” .option post x1 IN OUT VDD GND inv C1 out 0 0.05p v1 VDD 0 3 v2 GND 0 0 v3 IN 0 0 .dc v3 0 3 0.01 .probe V(OUT) .end title include library and set corner condition include netlist waveform post call inv sub-circuit voltage source simulation analysis output node voltage file end