www.pudn.com > hspice_lab.rar > lab6b.spx
*lab6b LCR circuit .option post accurate *v in gnd ac 1 v in gnd dc 5 c in outc 3n l outc outl 10u r outl gnd 10 .tran 1n 20n *.ac dec 1000 1k 1g .meas maxv MAX v(outl) .meas maxf FIND PAR(hertz) WHEN v(outl)=maxv .meas hwhm1 FIND PAR(hertz) WHEN V(outl)='0.5*maxv' RISE=1 .meas hwhm2 FIND PAR(hertz) WHEN V(outl)='0.5*maxv' FALL=1 .meas fwhm PARAM='hwhm2-hwhm1' .end