[SI-LIST] hspice erroring out
- From: Danish Jawed <danishj@xxxxxxxxx>
- To: si-list@xxxxxxxxxxxxx
- Date: Fri, 30 Jan 2009 11:58:37 +0530
Hi,
I am new to hspice. Can anyone tell what is wrong with the following
netlist. hspice is erroring out with the following error
**error** measure statement failure
rise,fall,or cross must be specified if
at=val was not specified in trigger
**error** measure statement failure
rise,fall,or cross must be specified if
at=val was not specified in target
===========================NETLIST BEGINS HERE=====================
.option acct list post
*** create pulse
.param vcc=5v hiv=vcc lowv=0
.param rho=.6mohm/sq cap=8.5e-7farad/meter**2 ind=60ph/sq
* len=.305 wid=150u len=12inch wid=6mil
+ transit_time ='.305*sqrt(cap*ind)' impedance
='sqrt(ind/(cap*150u*150u))'
.ac dec 100 100k 1g
.probe s11(mag) s12(mag)
.probe s11(phase) s12(phase)
* If i move this line below the measure statement then hspice does not
errors out
.tran .01ns 12ns
.measure line_freq trig s12(phase) val=-1 fall=1
+ targ s12(phase) val=-1 fall=2
.net v(out1) v1
v1 in gnd ac=1 pl lowv,0n hiv,.05n hiv,3.5n lowv,3.55n lowv,7n r=0n
**--> copper trace on fr-4 pc board
x1 in out1 gnd wlump10 len=.305 wid=150u $len=12inch wid=6mil
r1_term out1 gnd impedance ac=1g
**--> ideal transmission line element circuit
t3 in gnd out3 gnd z0=impedance td=transit_time
r3_term out3 gnd impedance ac=1g
.probe input=v(in) wlump10=v(out1) tline=v(out3)
*--< find voltage at 50% vcc and measure input to output delay
.param vref='vcc/2'
.measure wlump10 trig v(in) val=vref rise=1
+ targ v(out1) val=vref rise=1
.measure tline trig v(in) val=vref rise=1
+ targ v(out3) val=vref rise=1
.macro wlump10 in out2 ref len=2.54e-2 wid=150u
*--< the 10 lump macro is simply 2 5-lump macros each with half the length
x10a in out1 gnd wlump5 len_l5='len/2' wid_l5=wid
x10b out1 out2 gnd wlump5 len_l5='len/2' wid_l5=wid
.ends
.macro wlump5 in out ref len_l5=2.54e-2 wid_l5=150u
*--< the 5-lump macro defines a parameterized transmission line
*--< for fr-4 pc board material
.prot
.param rho=.6mohm/sq cap=8.5e-7farad/meter**2 ind=60ph/sq
.param reseff='len_l5*rho/(wid_l5*5)'
+ capeff='len_l5*wid_l5*cap/5'
+ indeff='len_l5*ind/(wid_l5*5)'
r1 in 1 reseff
c1 1 ref capeff
l1 1 2 indeff
*
r2 2 3 reseff
c2 3 ref capeff
l2 3 4 indeff
*
r3 4 5 reseff
c3 5 ref capeff
l3 5 6 indeff
*
r4 6 7 reseff
c4 7 ref capeff
l4 7 8 indeff
*
r5 8 9 reseff
c5 9 ref capeff
l5 9 out indeff
*
.unprot
.ends
.end
Thanks,
Danish.
------------------------------------------------------------------
To unsubscribe from si-list:
si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
or to administer your membership from a web page, go to:
http://www.freelists.org/webpage/si-list
For help:
si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field
List technical documents are available at:
http://www.si-list.net
List archives are viewable at:
http://www.freelists.org/archives/si-list
or at our remote archives:
http://groups.yahoo.com/group/si-list/messages
Old (prior to June 6, 2001) list archives are viewable at:
http://www.qsl.net/wb6tpu
Other related posts: