1、Introduction to HSPICE,Speaker : Shang-Jyh Shieh Email : d8542015ccunix.ccu.edu.tw TEL : Lab 7354,HSPICE(200010),第 2頁,PRELIMINARY,Appending the following line in your “.cshrc” file source /usr/meta/cur/bin/cshrc.metaHSPICE model path/vlsi-data/eda_models/hspice/tsmc035/logsp35.l (TSMC 0.35um)/vlsi-d
2、ata/eda_models/hspice/tsmc06/logic06.l (TSMC 0.6um)/vlsi-data/eda_models/hspice/tsmc08/model0.8t (TSMC 0.8um)HSPICE online document/usr/meta/cur/docs/hspiceManual.pdf,HSPICE(200010),第 3頁,EXAMPLE OF INPUT (*.sp),Include files .INC and2.subcktLibrary Call .LIB /vlsi-data/eda_models/hspice/tsmc035/logs
3、p35.l TTNetlist mp1 1 2 vdd! vdd! pch w=2.8u l=0.6u mn1 1 2 gnd! gnd! nch w=1.4u l=0.6u C1 3 gnd! 250fF IC=3.3V R2 2 3 100megOutput Control .meas tran Tr TRIG v(in) val=3.3/2 TD=10n RISE=1 + TARG v(out) val=3.3/2 RISE=1 .meas tran Tf TRIG v(in) val=3.3/2 TD=10n FALL=1 + TARG v(out) val=3.3/2 FALL=1
4、.meas Tdelay param=(Tr+Tf)/2free format / case insensitive,HSPICE(200010),第 4頁,ELEMENTS (I),Independent Voltage / Current Source (DC),Vdc n1 n2 3.3,n1,n2,td,tper,v1,v2,tpw,tf,tr,Idc n3 n4 20m,Pulse : Vpul n1 n2 pulse( v1 v2 td tr tf tpw tper ),3.3V,20mA,n3,n4,HSPICE(200010),第 5頁,ELEMENTS - MOSFET (I
5、),MOSFETMxxx D G S B MODEL W=x L=x AS=x AD=x PS=x PD=x,HSPICE(200010),第 6頁,ELEMENTS - MOSFET (II),LDIF,HDIF,Basic KnowledgeLDD: Lightly Doped Drain,HSPICE(200010),第 7頁,ELEMENTS - MOSFET (III),Basic KnowledgeACM : Area Calculation Method ACM=3,GEO=2,GEO=1,GEO=3,AD=2*HDIF*W,AD=HDIF*W,AS=2*HDIF*W,AD=HD
6、IF*W,AS=HDIF*W,AS=HDIF*W,PD=4*HDIF+W,PS=4*HDIF+W,PD=2*HDIF,PS=2*HDIF,PD=2*HDIF,PS=2*HDIF,Default GEO=0,D,D,D,S,S,S,W,HDIF,HDIF,LDIF,HSPICE(200010),第 8頁,ELEMENTS - MOSFET (IV),Example: mp1 zn ia vdd vdd pch w=1.4u l=0.6u GEO=1 mp2 zn ib vdd vdd pch w=1.4u l=0.6u GEO=1 mn1 zn ib n1 gnd nch w=1.4u l=0.
7、6u GEO=2 mn2 n1 ia gnd gnd nch w=1.4u l=0.6u GEO=1,ia,gnd,vdd,vdd,n1,ib,zn,HSPICE(200010),第 9頁,SUBCIRCUIT,.subckt XOR3 5 8 6 1 2 3 99 * A B C s sb vds vss mp1 1 2 3 3 pch w=1.4u l=0.6u mn1 1 2 99 99 nch w=1.4u l=0.6u mp2 2 1 3 3 pch w=1.4u l=0.6u mn2 2 1 99 99 nch w=1.4u l=0.6u mn3 7 10 1 99 nch w=1
8、.4u l=0.6u mn4 5 4 7 99 nch w=1.4u l=0.6u mn5 11 6 1 99 nch w=1.4u l=0.6u mn6 9 8 7 99 nch w=1.4u l=0.6u mn7 7 6 2 99 nch w=1.4u l=0.6u mn8 5 8 11 99 nch w=1.4u l=0.6u mn9 11 10 2 99 nch w=1.4u l=0.6u mna 9 4 11 99 nch w=1.4u l=0.6u xinvA 5 9 3 99 inv wp_inv=2.8u xinvB 8 4 3 99 inv wp_inv=2.8u xinvC
9、 6 10 3 99 inv wp_inv=2.8u .ends,.subckt inv 2 3 1 4 wp_inv=1.4ump1 3 2 1 1 pch w=wp_inv l=0.6u mn1 3 2 4 4 nch w=1.4u l=0.6u .ends,subcircuit definition,example,subcircuit call,xinvX 5 9 3 99 inv wp_inv=2.8u xinvY 8 4 3 99 inv wp_inv=2.8u xinvZ 6 10 3 99 inv wp_inv=2.8u,HSPICE(200010),第 10頁,MEASURE
10、 (I),Trigger/Target.MEAS TRAN T1 TRIG v(in) VAL=2.5V TD=20n RISE=1 + TARG v(out) VAL=2.5V FALL=1 .MEAS TRAN T2 TRIG v(in) VAL=2.5V TD=20n FALL=1 + TARG v(out) VAL=2.5V RISE=1 .MEAS Tpd PARAM=(T1+T2)/2,AVG/RMS/MIN/MAX/PP.MEAS TRAN vomax MAX v(out) FROM=20n TO=100n .MEAS TRAN vomin MIN v(out) FROM=20n
11、 TO=100n .MEAS TRAN vorms RMS v(out) FROM=20n TO=100n,HSPICE(200010),第 11頁,MEASURE (II),FIND/WHEN.MEAS TRAN time1 WHEN v(out)=2.5V FALL=LAST .MEAS TRAN time2 WHEN v(out)=2.5V CROSS=4 .MEAS TRAN v1 FIND v(out) AT=50n,HSPICE(200010),第 12頁,Power Measurement,Basic Power Meter,Practical Power Meter,*REFE
12、RENCERy=1e15Cy=1e-12,HSPICE(200010),第 13頁,ANALYSIS TYPE,Transient analysis .TRAN 0.1n 100n UICOperating Point .OPDC Sweep .DC vin 1V 5V 0.5VAC small signal analysis .AC LIN 1K 100MEG .AC DEC 1K 100MEG,HSPICE(200010),第 14頁,OTHER COMMAND CARD,OPTION for Accuracy .OPTIONs absmos=1p absv=1p relmos=1u re
13、lv=1p relvar=1m,Graphic Output for “AWAVES”Plot all input, output and internal nodes .OPTIONs POSTPlot specified nodes .OPTIONs POST PROBE .PROBE v(1) V(2) V(3) V(4) V(5),Temperature .TEMP 100 ( default 25 degree C ),HSPICE(200010),第 15頁,INVOKING HSPICE,Executing HSPICE % hspice myfile.sp Output files*.tr? graphic output files for awaves*.mt? measure output files (TXT file),