HSPICE教程
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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.)
SPICE Overview
Simulation Input & Controls
Sources & Stimuli
Analysis Types Output Hspui & Waveview Exercise Tips
SPICE Overview
Circuit Design Background
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
.TEMP
specifies circuit temperature for simulation
.DC
performs several types of sweeps during DICE Reference Manual: Commands and Control Options
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.
to predict the circuit/system characteristic after manufacture
SPICE Overview
Circuit Simulation Background
SPICE Overview
SPICE Background
Simulation Program with Integrated Circuit Emphasis
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”)
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
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
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
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
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)
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
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
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)
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
Meta-Software -> Avant! -> Synopsys
Advantages
模型较多,仿真精度高
收敛性强
在亚微米和深亚微米工艺中表现出色
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
Input & Controls
.ALTER
Rerun a simulation with different models/parameters/options…
Input & Controls
.DATA
Rerun a simulation with different models/parameters/options…
用单层金属线线宽2m不考虑线间电容和边缘电容单位面积连线对衬底电容003ffm金属线电阻007要求时钟信号的上升边和下降边不应大于15ns时钟线分布网到达芯片四周的终点信号要同步且延迟量不应大于18nsmosfet模型参数用018m工艺的参数电源电压18v
HSPICE辅助设计
2010.9
OUTLINE
Sources & Stimuli
AC, DC Sources
Sources & Stimuli
Transient Sources
PULSE
Sources & Stimuli
Transient Sources
SIN
Sources & Stimuli
Transient Sources
PWL (Piecewise Linear Source)
Developed by University of California/Berkeley, 1972
Simulation in steady-state, transient, and frequency domains
Widely adopted, become de facto standard SBTSPICE, HSPICE, Spectre, TSPICE, Pspice, Smartspice…
Output
.MEAS (Rise, Fall, Delay)
SPICE Overview
SPICE Simulation Algorithm - DC
SPICE Overview
SPICE Simulation Algorithm - Tran
SPICE Overview
Basic Flow for SPICE
SPICE Overview
HSPICE
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),