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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2031|回复: 6

[求助] systemverilog中断言until的语法有大神介绍一下么?

[复制链接]
发表于 2020-8-19 17:28:24 | 显示全部楼层 |阅读模式

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

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

x
如题所示
 楼主| 发表于 2020-8-19 17:29:12 | 显示全部楼层
自己顶一下,求大神围观
发表于 2020-8-20 03:38:32 | 显示全部楼层
The property until checks that the antecedent 'a' is true, for every clock cycle until (but not including) consequent 'c' is true. Using the example



  1. ap_until: assert property (@(posedge clk) a until c);


复制代码
, this assertion will pass iff a is true for N clock cycles and is followed by c; 'a' has to be false before 'c' is true, because `until` property is not overlapping.

If you still have doubts, either check the IEEE 1800-2012 for the formal semantics on the property, or let me know so we can create a small example.
发表于 2020-8-20 09:49:14 | 显示全部楼层
3l正解
 楼主| 发表于 2020-8-20 10:40:54 | 显示全部楼层


dogor1 发表于 2020-8-20 03:38
The property until checks that the antecedent 'a' is true, for every clock cycle until (but not incl ...


谢谢大神

发表于 2020-8-22 00:43:27 | 显示全部楼层
除了until,还有一个until_with也比较常用。
二者的区别时,一个包含了重叠,一个不用重叠。
对于下面波形(从左到右表示电平变化的顺序):
a:-1-1-1-0-0-0
b:-0-0-0-1-1-1
a until b = true 但是 a until_with b = false

波形改为:
a:-1-1-1-1-0-0
b:-0-0-0-1-1-1
a until b = true 且 a until_with b = true

点评

谢谢大神指点  发表于 2020-8-24 16:59
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-5-14 06:04 , Processed in 0.021267 second(s), 7 queries , Gzip On, Redis On.

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