nullHSPICE辅助
设计
领导形象设计圆作业设计ao工艺污水处理厂设计附属工程施工组织设计清扫机器人结构设计
HSPICE辅助设计2010.9
OUTLINESPICE Overview
Simulation Input & Controls
Sources & Stimuli
Analysis Types
Output
Hspui & Waveview
Exercise TipsOUTLINESPICE OverviewSPICE OverviewCircuit Design Background
to predict the circuit/system characteristic after manufactureSPICE OverviewSPICE OverviewCircuit Simulation Background
SPICE OverviewSPICE OverviewSPICE Background
Simulation Program with Integrated Circuit Emphasis
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…SPICE OverviewSPICE OverviewSPICE Simulation Algorithm - DCSPICE OverviewSPICE OverviewSPICE Simulation Algorithm - TranSPICE OverviewSPICE OverviewBasic Flow for SPICESPICE OverviewSPICE OverviewHSPICE
Meta-Software -> Avant! -> Synopsys
Advantages
模型较多,仿真精度高
收敛性强
在亚微米和深亚微米工艺中表现出色SPICE OverviewSPICE OverviewHSPICE Data FlownullSmall signal model of transitor.option post nomod
.tran 100us 50ms
.print v(1) v(out) i(CL)
.param Load=10kvs 1 0 sin(0v 0.1v 60 0us 0 0)Egs out 0 2 0 10
Rs 1 2 50
R1 2 0 10k
RL out 0 Load
CL out 0 100p .lib or .model or .subcircuitTitleControlsSourcesComponents.alter
.param Load=5k.endModel & SubcktsEnd file Analysis Input & ControlsNetlist StructureInput & ControlsInput & ControlsNaming Conventions
Node and Element Identification
Either Names or Numbers, no delimiters (e.g. src, n3, 11, …)
0 is ALWAYS Ground
Trailing Alphabetic Character are ignored in Node Number (e.g. 5A = 5B = 5)
Ground may be 0, GND, !GND
All nodes are assumed to be local
Node names can be across all subcircuits by .GLOBAL statement (e.g. .GLOBAL VDD VSS)Input & ControlsInput & ControlsNaming Conventions
Instance and Element NamesInput & ControlsInput & ControlsNaming Conventions
Units
Resistor (ohm), Capacitor (F), Inductor (H), Voltage (V),
Current (A), Length (M), Time (Sec),
Frequency (Hz), Temperature (℃).
Scale Factors
F = 1e-15 P = 1e-12 N = 1e-9 U = 1e-6
M = 1e-3 K = 1e3 MEG = X = 1e6
G = 1e9 T = 1e12
DB = 20log10 FT=0.305
Input & ControlsInput & ControlsFormat Conventions
A line may be continued by entering a plus sign('+') in column 1 of the following line.
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”)
Upper and lower case is ignored except as filenames on UNIX.
The input file cannot contain lines with more than 80 columns.
Except first line, Title, and last line, .END, the order of the remaining lines is arbitrary.
Input & ControlsInput & Controls.ALTER
Rerun a simulation with different models/parameters/options…
Input & ControlsInput & Controls.DATA
Rerun a simulation with different models/parameters/options…
Input & ControlsInput & Controls.SUBCKT
use hierarchical circuits
Definition
Call
Remember:
All nodes are localInput & ControlsInput & Controls.LIB
Definition
ms018_v1p8.lib
Call
clocktree.sp.LIB ms018_v1p8.lib TT.LIB TT
.PARAM
……
.INC ‘ms018_v1p8.mdl’
.ENDL TT
.LIB FF
……
.ENDL FFInput & ControlsInput & ControlsOthers
.OPTION
modifies various aspects of simulation
(input/output/analysis/accuracy/algorithm, etc.)
.TEMP
specifies circuit temperature for simulation
.DC
performs several types of sweeps during DC analysis
for details:
HSPICE Reference Manual: Commands and Control OptionsSources & StimuliSources & StimuliSources
Independent Sources
AC, DC Sources
Transient Sources
Voltage and Current Controlled Sources
E -- VCVS
F -- VCCS
G -- CCVS
H – CCCS
for details:
HSPICE Reference Manual: Simulation and Analysis
Sources & StimuliSources & StimuliAC, DC Sources
Sources & StimuliSources & StimuliTransient Sources
PULSESources & StimuliSources & StimuliTransient Sources
SINSources & StimuliSources & StimuliTransient Sources
PWL (Piecewise Linear Source)Analysis TypesAnalysis TypesAnalysis Types
DC Operating Point
.OP .IC .NODESET
DC Sweep & DC Small Signal Analysis
.DC .TF .PZ
AC Sweep & Small Signal Analysis
.AC .NOISE
Transient Analysis
.TRAN .FOUR
for details:
HSPICE Reference Manual: Simulation and Analysis
Analysis TypesAnalysis 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
.ENDAnalysis TypesAnalysis Types.AC
to calculate frequency-domain responseA 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
.ENDAnalysis TypesAnalysis Types.Tran
to calculate time-domain responseInverter 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
.ENDOutputOutputOutput Files Summary
OutputOutput.MEAS(URE)
Measurement Modes:
Rise, Fall, Delay
AVG, RMS, MIN, MAX, P-P
Find-When
for details:
HSPICE Reference Manual: Commands and Control Options
OutputOutput.MEAS (Rise, Fall, Delay)
.MEAS DC|AC|TRAN measure_name
+TRIG outvar1 VAL=trig_val [TD=td] [CROSS=#crosses]
+ [RISE=#rises] [FALL=#falls]
+TARG outvar2 VAL=trig_val [TD=td] [CROSS=#crosses]
+ [RISE=#rises] [FALL=#falls]
.MEAS TRAN tphl TRIG V(in) VAL=2.5V RISE=1
+ TARG V(out) VAL=2.5V FALL=1
.MEAS TRAN tperiod TRIG V(in) VAL=2.5V CROSS=1
+ TARG V(in) VAL=2.5V CROSS=3
OutputOutput.MEAS Examples (Rise, Fall, Delay)
OutputOutput.MEAS Examples (Ripple)
OutputOutput.MEAS Examples (OPA)
unity-gain freq, phase margin, DC gain
bandwidth, quality factorHSPICE DemoHSPICE DemoOscillator for example
.option list node nomod
.ic V(1)=5
.global VDD
.param Lm=0.5u Wn=0.7u Wp=1.2u
.tran 0.1n 5n
Vdd VDD 0 5
.subckt inverter in out
Mp out in VDD VDD mod2 W=Wp L=Lm
Mn out in 0 0 mod1 W=Wn L=Lm
.endsHSPICE Demo
Xinv1 1 2 inverter
Xinv2 2 3 inverter
Xinv3 3 1 inverter
.MODEL MOD1 NMOS VTO=1.0 KP=4.5E-5 LAMBDA=0 GAMMA=0.4
+TOX=1.0E-7 NSUB=4.0E+15 LD=0.06U CJ=2.0E-4 MJ=0.5
+CJSW=2.0E-10 MJSW=0.4 CGSO=1E-10 CGDO=1E-10
+CGBO=2E-9
.MODEL MOD2 PMOS VTO=-1.2 KP=2.5E-5 LAMBDA=0 GAMMA=0.4
+TOX=1.0E-7 NSUB=4.0E+15 LD=0.06U CJ=2.0E-4 MJ=0.5
+CJSW=2.0E-10 MJSW=0.4 CGSO=1E-10 CGDO=1E-10
+CGBO=2E-9
.alter
.param Wn=1u Wp=2.2u
.endHSPICE Demohspui & waveviewhspui & waveviewQuick Starthspui & waveviewhspui & waveviewQuick Start
Open hspui.exe;
Open .sp file;
(Note : 不能存在中文路径)
Simulate;
Open .lis (Edit LL) to find syntax errors or measurement results;
(Tip: use Ctrl-F to locate target)
hspui & waveviewhspui & waveviewQuick Start
if has errors (Edit NL), go to 3;
Open Avanwaves or Waveviewhspui & waveviewhspui & waveviewAvanWaveshspui & waveviewhspui & waveviewAvanWaveshspui & waveviewhspui & waveviewWaveView (CustomExplorer)Exercise TipsExercise Tips目的:了解连线寄生效应的影响,特别是长连线之间的耦合电容产生的干扰。
内容
财务内部控制制度的内容财务内部控制制度的内容人员招聘与配置的内容项目成本控制的内容消防安全演练内容
:模拟两条平行长连线之间的信号干扰问题。采用如下图中电路模型。
金属线总长度10mm,分成10段,线宽1µm,单位面积连线对衬底电容0.031fF/µm2, 线间电容为53fF / mm。采用给定的MOSFET模型参数。若节点13在20ns时从0上升到5V,在80ns时从5V下降到0,上升边和下降边都是1ns,节点1有一个周期时间为20ns幅度为5V的方波。
a. 模拟节点1的波形变化对节点14和24的干扰;
b. 改变下面信号线驱动器尺寸(缩小和增大一倍),再做上面的模拟;
c. 节点1的信号到节点12的延迟,并与集总模型和π模型结果比较。
要求:给出输入文件和模拟结果,以及对结果的分析讨论。 Exercise TipsExercise Tipslumped modelpi modelbuf(W/L) X2Exercise TipsExercise Tips目的:掌握H-树结构形成时钟线分布网的
方法
快递客服问题件处理详细方法山木方法pdf计算方法pdf华与华方法下载八字理论方法下载
,以及用反相器链构成的驱动电路的设计。
内容:设计一个数字系统的时钟线分布及驱动电路,时钟频率100MHz,总的负载电容200pF,分布到10mm×10mm的芯片内。用单层金属线,线宽2µm,不考虑线间电容和边缘电容,单位面积连线对衬底电容0.03fF/µm2, 金属线电阻0.07Ω/□,要求时钟信号的上升边和下降边不应大于1.5ns,时钟线分布网到达芯片四周的终点信号要同步,且延迟量不应大于1.8ns ,MOSFET模型参数用0.18μm工艺的参数,电源电压1.8V。
要求:给出设计思路、采用的驱动电路结构,说明MOS管尺寸设计的考虑和设计结果,给出模拟结果以及对结果的分析讨论。null1、.LIB ms018_v1p8.lib TT
.LIB ms018_v1p8.lib RES_TT
.LIB ms018_v1p8.lib MIM_TT
2、Mp out in VDD VDD p18 W=Wp L=Lm
Mn out in 0 0 n18 W=Wn L=Lm
R1 2 3 rndifsab l = xxxx um w = xxxx um
Cp 5 0 mim l = xxxx um w = xxxx um
确定反相器级数
确定末级反相器尺寸
确定所有反相器尺寸
验证和调整Exercise TipsFurther Reading\docs_help
|--- hspice_sa.pdf (Simulation and Analysis)
|--- hspice_cmdref.pdf (Commands and Control Options)
|--- avanwaves.pdf (AvanWaves User Guide)
HSPICE 2009.9 + WaveView 2009.9 Software
ftp://ftp.utsz.edu.cn/upload/2软件资源/8
工程
路基工程安全技术交底工程项目施工成本控制工程量增项单年度零星工程技术标正投影法基本原理
软件/Hspice 2009.9.rar
OR
ftp://ftp.utsz.edu.cn/2软件资源/8工程软件/Hspice 2009.9.rar
Further Reading