hung_wai_ming@hotmail.com
Full Member level 6
Hi ALL
Here are the hspice script. Assume X1 is the INPUT, X2 is the OUTPUT. Ignore crystal model and include shunt cap
**Global setting for method 1 & 2
.param pwr=3.3v
.ic v(x1)="pwr/2"
.ic v(x2)="pwr/2"
Method 1
.ac lin 30000 3950000 4050000
.net v(x2) vin rout=50 rin=50
cin in x1 0.1 $ ac couple
vin in 0 ac=1
.probe negr=par('z11(r)+z22(r)-z21(r)-z12(r)')
Method 2
.ac lin 30000 3950000 4050000
ixtal x1 x2 dc=0 ac=1
.probe ac vr(x2,x1)
both results are close but NOT the same. Can anyone tell me which one is correct?
Here are the hspice script. Assume X1 is the INPUT, X2 is the OUTPUT. Ignore crystal model and include shunt cap
**Global setting for method 1 & 2
.param pwr=3.3v
.ic v(x1)="pwr/2"
.ic v(x2)="pwr/2"
Method 1
.ac lin 30000 3950000 4050000
.net v(x2) vin rout=50 rin=50
cin in x1 0.1 $ ac couple
vin in 0 ac=1
.probe negr=par('z11(r)+z22(r)-z21(r)-z12(r)')
Method 2
.ac lin 30000 3950000 4050000
ixtal x1 x2 dc=0 ac=1
.probe ac vr(x2,x1)
both results are close but NOT the same. Can anyone tell me which one is correct?