45
HSICE Simulation Guide HSICE Simulation Guide Mixed Signal Chip Design Lab Department of Computer Science & Engineering The Penn State Univ.

Very Useful HSPICEGuide

Embed Size (px)

DESCRIPTION

this documents contains summary of hspice

Citation preview

HSICE Simulation GuideHSICE Simulation GuideMixed Signal Chip Design LabDepartment of Computer Science & EngineeringThe Penn State Univ!nsoo "im#an $%& $''%HSPICE Input/Output Files & SuffixesHSPICE Input/Output Files & SuffixesHSPICE Inputinput netlist .spdesign configuration .cfginitiali(ation hspiceiniHSPICE Outputrun status.st0output listing .lisinitial condition .icmeasure output .m* )eg mt'&mt*&+,nal-sis data& transient .t! )eg tr'&tr*&+,nal-sis data& dc .s" )eg s.'&s.*&+,nal-sis data& ac .ac )eg ac'&ac*&+Plot file g! )eg gr'& gr*&+Note:# is either a sweep or a hardcopy file number.Typical Invocations:hspice design > design.lisor...hspice design.ckt > design.out.lis file contains results of:.print & .plot.op operating point!.options results!"un time status#epends on .$ption %ost!nsoo "im#an $%& $''%#etlist St!uctu!e$ %ecommended Fo!mat#etlist St!uctu!e$ %ecommended Fo!matTitle&ontrols'ources&omponents(odels & 'ubckts*** This is a better netlist.optionspostacctoptsnode.tran 0.1 5 $ needs 5 seconds to settle.printv(6)i(r16).plot v(4)v(14)v(data) *Voltage sourcesv440 dc 0 ac 0 0 pulse 0 1 0 .15 .15 .4 2vdatadata0 sin(1.0 1.0 1.0 0.0 1.0)v660 exp(1 0 .1 .02 .6 .2)* ComponentsL6616.05c6160.05r1616040c4414.1L5data 15 1c5150.2.odel ....endInput Cont!olInput Cont!oloptionparamaltermodelLib!nsoo "im#an $%& $''%.OP&IO#.OP&IO#/PT!/0 L!STPrints a list of netlist elements& node connections& and valuesCalculates effective si(es of elements and 1e- valuesUseful in diagnosing topolog- related problems/PT!/0 0/DEPrints a node connection tableThe nodal cross2reference table lists each node and all the elements connected to itUseful in diagnosing topolog- related non2convergence problems/PT!/0 ,CCT3eports 4ob accounting and run2time statistics at the end of the output listingUseful in observing simulation efficienc-Maximum performance is .henTotal !teration Count 5 Convergent !teration Count is $5*/PT!/0 0/M/DSuppresses the print2out of M/DEL parameters!nsoo "im#an $%& $''%.OP&IO#.OP&IO#/PT!/0 P/ST P3/6E7raph nodal voltages& element currents& circuit response& algebraic expressions from transient anal-sis& DC s.eeps& ,C anal-sis 3e8uesting 7raph Data 9ormat/PT!/0 P/ST )binar-+/PT!/0 P/ST:$),SC!!& platform independent+P3/6E ;rite directl- to the 7raph Data 9ile ).ithout .riting to the L!S file+Limit data in 7raph Data file to that specified in P3!0T& PL/T& P3/6E& 73,P/40 ( '"r%>/40*.*rin% )2nd*=*ar/)$."ari%/50*0 )+%>*=*ar/)'"r%>/50*0*ar/)$i)%een%>/50*02nd+.0000+%>16.0000*aram$i)%een%>/)02-6.0000?SPICEO"%*"%!nsoo "im#an $%& $''%.'*&E%.'*&E%,LTE33erun a simulation several times .ith differentCircuit Topolog-ModelsLibrar- ComponentsElementsParameter ?alues/ptionsSource stimulus,nal-sis ?ariablesPrintAPlot commands )must be parameteri(ed+*st 3un 2 Standard form5 print ?)node+ or !)element+ or P,3)Be8uationC+v)*+ : voltage at node *v)*&$+ : voltage bet.een node * and node $ )differential+i)3in+ : current through 3inP,3)Bv)out+Av)in+C+ :value of v)out+Av)in+!nsoo "im#an $%& $''%.P%I#&.P%I#&III !D2?ds curve temp:' nmos .:@' l:'G dbp'**IIIoption nomod nopage acct .l scale:'KLu co:*E$temp $@inc MAhomeAusers$A1-usunAmodelAmodelFt-pMparam paFvgs:G'vdc vds 'v G@v '@vvds vds gndvgs vg gnd paFvgsvbb vbb gnd 2*'vmnmos vds vg gnd vbb g .:'E% l:'$Lr*vds vsFim *'1r$vsFim gnd*'1print i)mnmos+ endInput filePrint value of current through element mnmos!nsoo "im#an $%& $''%.P%I#&.P%I#&III id2vds curve temp:' nmos .:@' l:'G dbp'**III IIIIIIdc transfer curves tnom:$@''' temp:$@''' IIIIIIx voltcurrent mnmos '*''''p @'''''''m G$EHLEu *'''''K'KHGGu *@''''**G*@KEu $'''''*E$G@H@u $@''''*E%G'@Eu E'''''*EK@GL'u E@''''*G'E@LEu G'''''*G$'@@Ku G@''''*GEL'G@u- IIIII 4ob concludedOutput file(.lis)!nsoo "im#an $%& $''%.(E'S+%E.(E'S+%EME,SU3EPrint user2defined electrical specifications of a circuitME,SU3E is a post processorSeven 9undamental Measurement modes53ise& 9all& Dela-,verage& 3MS& Min& Max& & Pea12to2Pea19ind2;henE8uation EvaluationDerivative Evaluation!ntegral Evaluation3elative Error!nsoo "im#an $%& $''%.(E'S+%E.(E'S+%EME,SU3E=DC N T3,0 N ,C> result T3!7 T,37 =optimi(ation options>result 2 name given the measured value in the =C3/SS:Pof> =3!SE:Pof> J=9,LL:Pof>T3!7 ,T:valueT,37 targFvar ?,L:targFval =TD:timedela-> =C3/SS:Pof N L,ST> J=3!SE:Pof N L,ST> =9,LLS:Pof N L,ST>.MEAST#AN T:LAGT#I@ V/10VAL=2.-T:=10n$#ISE=21TA#@ V/20 VAL=2.- FALL=2 :e!ay 10n$ ... ...2.-62.-6T:LAGV/10V/20!nsoo "im#an $%& $''%.(E'S+%E.(E'S+%EME,SU3E =DC N T3,0 N ,C> resultfunc outFvar=93/M:val>=T/:val>=optimi(ation options>func5,?7& 3MS& M!0& M,Q& PPresult5name given the measured value in the resultP,3,M:Be8uationC J=optimi(ation options>result 2 name given the measured value in the >>>PULSE )v* v$=options> +Eg+ ?!0E'PULSE)2* * $ns $ns $ns @'ns *''ns++,-v. must be definedtd delay from beginning of tran interval to ,st rise ramp. #ef: /.tr rise time default:T'T0%!tf fall time default:T'T0%!pw pulse widthdef: T'T0%!per pulse period def: T'T0%!+,,/pulse/1v1ns1ns1ns,/ns2/ns 1 ,/ ,1 ./ .1 2/ 21/1pertdtr tfpw!nsoo "im#an $%& $''%Independent Sou!ces$ P3*Independent Sou!ces$ P3*Piece2;ise LinearP;L t* v* =t$ v$ tE vE> =3 =:repeat>> =TD:dela->P;L )t* v* =options>+P;L t* !* =t$ !$> =options>?alue of source at intermediate values is determined b- linear interpolationPL ),SPEC st-le+ reverses order to voltage2time pairs+IN+3ate / %45 / /v 1n /v 6,/n1v ,2n 1v ,1n ..1v ..n ..1v 6.1n / 2/n / "!1 ,/ ,1 ./ .1 2/ 21/1!nsoo "im#an $%& $''%Independent &!ansient Sou!cesIndependent &!ansient Sou!ces$ $ SI#- (ixed SI#- (ixedS!0S!0 vo va =fre8 =td =damping =phasedela->>>>S!0 )vo va =options> +Examples5?!0E'S!0 ) '**''ME7*ns*e*'+Damped sinusoidal source connected bet.een nodes E and ''v offset& Pea1 of *v& fre8 of *'' Mme