|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
求hspice 对开关电容滤波器进行hbac snac仿真的方法 怎么设置参数
以下面这个为例:我该怎么设置.SN tres=0.5m period=15m trinit=6m这一句,tres和period怎么选择合适数值。采样时钟是20khz
*pss pac snac
.OPTIONs post=2 measfall=0 ingold=2 NOMOD
.include 'C:\Users\dzy\Desktop\FIVE\opamop.sp'
.include 'C:\Users\dzy\Desktop\FIVE\Five_LSCF.cdl'
.LIB 'ms018_v1p7.lib' TT
*源
VIN1 node_VIN 0 snac 0.001 0 $ Small signal
VDD node_vdd 0 DC 0.90000
VSS node_vss 0 DC -0.90000
VCLK CLKIN 0 PULSE (0.9 -0.9 24U 1U 1U 24U 50U) $ Periodic, Large-Signal Input
*器件
X1 0 node_VIN1 node_VOUT1 node_vdd node_vss OPAMP
X2 0 node_VIN2 node_VOUT2 node_vdd node_vss OPAMP
X3 0 node_VIN3 node_VOUT3 node_vdd node_vss OPAMP
X4 0 node_VIN4 node_VOUT4 node_vdd node_vss OPAMP
X5 0 node_VIN5 node_VOUT node_vdd node_vss OPAMP
XLSCFF node_vdd node_vss CLKIN 0 node_VIN1 node_VIN2 node_VIN3 node_VIN4 node_VIN5 node_VOUT1 node_VOUT2 node_VOUT3 node_VOUT4 node_VIN node_VOUT Five_LSCF
Rout node_VOUT 0 10G
.SN tres=0.5m period=15m trinit=6m
.OPTION SNACCURACY=10
.snac lin 1 3k 20
.probe sn v(node_VOUT)
.print snfd v(node_VOUT)
*.print snac v(node_VOUT)
*Tres is the resolution of time, DELMAX=tres is a good choice.
*Period is the guessing period of PSS.
*Trinit is the start point of PSS detecting, the value is period*(10~20) for convergence consideration.
*.hb tones=20Hz nharms=1
*.hbac DEC 20 1 5K
*.peobe hbac v(node_VOUT)
*.print hbfd v(node_VOUT)
*.print hbac v(node_VOUT)
*.probe hbac v(node_VOUT)
.option post accurate probe
.END
|
|