在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3527|回复: 3

D触发器 setup time 怎么仿真?

[复制链接]
发表于 2013-9-23 09:39:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
用到了如下的代码:
....
.....
vcc VDD! 0 exvcc
vss GND! 0 0
vD D 0 pwl 0 0 10n 0 10.01n exvcc 22n exvcc 23n 0 30n 0  Td="delaytime"
vE E 0 pwl 0 exvcc 10n exvcc 10.01n 0 20n 0  
VR R 0 pwl 0 exvcc 2n exvcc 2.1n 0

x1 VDD! Q out VDD! p33_ckt l=0.5 w=4
x2 out Q 0 0 n33_ckt l=0.5 w=2
.param delaytime=opt1(6n -6n 6n) exvcc=2.4v etemp=-40

.op
.tran .001n 30n  sweep optimize=opt1 result=maxvout model=optmod
.meas tran setupt trig v(D) val='exvcc/2' rise=1 targ v(E) val='exvcc/2' fall=1
.meas tran maxvout max v(Q) goal='exvcc*0.9'

.alter FF.del lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' TT.lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' FF
.alter SS.del lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' FF.lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' SS

.alter SF.del lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' SS.lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' SNFP

.alter FS.del lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' SNFP.lib '/home/xyhuang/EC1005Z_new/public/38nand_3.3vmosonly_v0p0.lib' FNSP

.end发现在执行.alter更换工艺角之前的第一次仿真能给出合理的结果,而在.alter后的仿真都abort....
bow~~
DFF.PNG
发表于 2013-9-23 13:24:29 | 显示全部楼层
create  data table  to run sweep transient simulation,  what's more, in the data table, you need to adjust D delay  relative to clock pin,  the incremental step is determined by the precision requirment,  so generally speaking, in the table, it must include incremental delta delay to approach the target setup time, and clock transition , and Q load pin capacitance. you also can put the delta delay outside of the table, but you must build many sub-circuits  to attain the target, but it has been processed parallel simulation.
 楼主| 发表于 2013-9-23 15:27:28 | 显示全部楼层
Can not use sweep data=*** with model statement.
My purpose is to get minimum setup time, "sweep optimize" should be able to do this for me. But I got some error I can not fix.
Here is the error message:

**error** endpoints have same sign in bisection.
For delaytime       = -1.00000E-08, maxvout         =  6.26407E-03.
For delaytime       =  1.00000E-08, maxvout         =  3.56375E-05.
Both of these are on the same side of the goal value maxvout         =   2.4300    .
          ***** job aborted
 楼主| 发表于 2024-6-28 23:37:19 | 显示全部楼层
请教大侠~~
system verilog 的数字验证环境里能载入这种netlist 作联仿吗?
多谢~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条


小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-12-26 16:28 , Processed in 0.022000 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表