北京大学-HSPICE2010使用教程

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
HSPICE辅助设计
2010.9
OUTLINE
SPICE Overview
Simulation Input & Controls
Sources & Stimuli
Analysis Types Output Hspui & Waveview Exercise Tips
SPICE Overview
Output
Output Files Summary
Output File Type Output Listing DC Analysis Results DC Analysis measurement Results AC Analysis Results AC Analysis Measurement Results Transient Analysis Results Transient Analysis Measurement Results Subcircuit Cross-Listing Operating Point Node Voltages Extension .lis .sw# .ms# .ac# .ma# .tr# .mt# .pa# ic
Call
clocktree.sp
.LIB ms018_v1p8.lib TT
……
.ENDL FF
Input & Controls
Others
.OPTION
modifies various aspects of simulation (input/output/analysis/accuracy/algorithm, etc.)
Analysis Types
.Tran
to calculate time-domain response
Inverter Circuit .OPTION LIST NODE POST .TRAN 200P 20N .PRINT TRAN V(IN) V(OUT) M1 OUT IN VCC VCC PCH L=1U W=20U M2 OUT IN 0 0 NCH L=1U W=20U VCC VCC 0 5 VIN IN 0 0 PULSE .2 4.8 2N 1N 1N 5N 20N CLOAD OUT 0.75P .MODEL PCH PMOS LEVEL=1 .MODEL NCH NMOS LEVEL=1 .END
o Ground may be 0, GND, !GND
o All nodes are assumed to be local o Node names can be across all subcircuits by .GLOBAL statement (e.g. .GLOBAL VDD VSS)
SPICE Simulation Algorithm - Tran
SPICE Overview
Basic Flow for SPICE
SPICE Overview
HSPICE
Meta-Software -> Avant! -> Synopsys
Advantages
模型较多,仿真精度高
收敛性强
Sources & Stimuli
AC, DC Sources
Sources & Stimuli
Transient Sources
PULSE
Sources & Stimuli
Transient Sources
SIN
Sources & Stimuli
Transient Sources
PWL (Piecewise Linear Source)
Input & Controls
.SUBCKT
use hierarchical circuits
Definition Call
Remember: All nodes are local
Input & Controls
.LIB
Definition
ms018_v1p8.lib
.LIB TT
.PARAM …… .INC ‘ms018_v1p8.mdl’ .ENDL TT .LIB FF
Input & Controls
Naming Conventions
Instance and Element Names
Input & Controls
Naming Conventions
Units
Resistor (ohm), Current (A), Frequency (Hz), Capacitor (F), Length (M), Inductor (H), Time (Sec), Voltage (V),
Analysis Types
Analysis Types
DC Operating Point
.OP .IC .NODESET
DC Sweep & DC Small Signal Analysis
.DC .TF .PZ
AC Sweep & Small Signal Analysis
.AC .NOISE
.TEMP
specifies circuit temperature for simulation
.DC
performs several types of sweeps during DC analysis for details: HSPICE Reference Manual: Commands and Control Options
在亚微米和深亚微米工艺中表现出色
SPICE Overview
HSPICE Data Flow
Input & Controls Netlist Structure
Title Small signal model of transitor .option post nomod .tran 100us 50ms .print v(1) v(out) i(CL) .param Load=10k Sources vs 1 0 sin(0v 0.1v 60 0us 0 0) Egs out 0 2 Rs 1 2 50 R1 2 0 10k RL out 0 Load CL Model & Subckts Analysis End file out 0 100p 0 10
Sources & Stimuli
Sources
Independent Sources
o AC, DC Sources o Transient Sources
Voltage and Current Controlled Sources
o E -- VCVS o F -- VCCS o G -- CCVS o H – CCCS for details: HSPICE Reference Manual: Simulation and Analysis
V_GS
V_DS
M1
Analysis Types
.AC
to calculate frequency-domain response
A SIMPLE AC RUN .OPTION LIST NODE POST .OP .AC DEC 10 1K 1MEG .PRINT AC V(1) V(2) I(R2) I(C1) V1 1 0 10 AC 1 R1 1 2 1K R2 2 0 1K C1 2 0 .001U .END
来自百度文库
Output
.MEAS(URE)
Measurement Modes: Rise, Fall, Delay AVG, RMS, MIN, MAX, P-P Find-When
for details: HSPICE Reference Manual: Commands and Control Options
Output
.MEAS (Rise, Fall, Delay)
Controls
Components
.lib or .model or .subcircuit .alter
.param Load=5k .end
Input & Controls
Naming Conventions
Node and Element Identification
o Either Names or Numbers, no delimiters (e.g. src, n3, 11, …) o 0 is ALWAYS Ground o Trailing Alphabetic Character are ignored in Node Number (e.g. 5A = 5B = 5)
Format Conventions
o A line may be continued by entering a plus sign('+') in column 1 of the following line.
o Quotation marks must be used to specify an algebraic equation. Both single(„ ‟) and double(“ ”) quotation marks can be used. (e.g. J = „ A+B*C ‟, K = “2*J”)
Transient Analysis
.TRAN for details: HSPICE Reference Manual: Simulation and Analysis .FOUR
Analysis Types
.DC
to calculate transfer curves
*NMOS M1 2 1 0 0 NOS W=10U l=2U V_GS 1 0 V_DS 2 0 .OPT POST .PRINT DC I(M1) .DC V_DS 0 5 0.1 V_GS 0 5 1 .MODEL NOS NMOS LEVEL=2 .END
Widely adopted, become de facto standard SBTSPICE, HSPICE, Spectre, TSPICE, Pspice, Smartspice…
SPICE Overview
SPICE Simulation Algorithm - DC
SPICE Overview
o Upper and lower case is ignored except as filenames on UNIX. o The input file cannot contain lines with more than 80 columns. o Except first line, Title, and last line, .END, the order of the remaining lines is arbitrary.
Circuit Design Background
to predict the circuit/system characteristic after manufacture
SPICE Overview
Circuit Simulation Background
SPICE Overview
SPICE Background
Simulation Program with Integrated Circuit Emphasis
Developed by University of California/Berkeley, 1972
Simulation in steady-state, transient, and frequency domains
Temperature (℃).
Scale Factors
F = 1e-15 M = 1e-3 G = 1e9 DB = 20log10 P = 1e-12 K = 1e3 T = 1e12 FT=0.305 N = 1e-9 MEG = X = 1e6 U = 1e-6
Input & Controls
Input & Controls
.ALTER
Rerun a simulation with different models/parameters/options…
Input & Controls
.DATA
Rerun a simulation with different models/parameters/options…
相关文档
最新文档