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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3051|回复: 2

[求助] gate level simulation 中的$deposit和force区别

[复制链接]
发表于 2016-12-13 15:56:57 | 显示全部楼层 |阅读模式

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

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

x
在gate level simulation 中,$deposit(a,1)表示给一个net a 赋一个初值1,而 force a = 1  也表示给a 强迫一个初值 1,请问二者的区别?什么时候使用deposit,什么时候使用force.
发表于 2016-12-14 21:22:31 | 显示全部楼层
deposit -- 使用代码或者脚本驱动后可以由dut内部信号再次改写
deposit: it will put a value to a signal, but it will hold until it is overwritten.
for example if I 'deposite' a Q of a flip flop to a '0', it will remain a '0', untill the simulation updates it to a new value. It is like giving a initial value to a signal.

force -- 使用代码或者脚本驱动后无法通过dut内部信号改写
force: it will put a value to a signal, and this value will remain as such throughout the simulaiton. It cannot be overwritten by simulation.

个人理解,希望对你有帮助
 楼主| 发表于 2017-1-19 10:30:08 | 显示全部楼层
非常感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-13 09:52 , Processed in 0.021248 second(s), 8 queries , Gzip On, Redis On.

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