您当前的位置: 首页 > 

刘颜儿

暂无认证

  • 5浏览

    0关注

    99博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

报错:cannot match operand(s)in the condition to the corresponding edges in the enclosing event control

刘颜儿 发布时间:2022-06-22 10:18:56 ,浏览量:5

报错信息:

在这里插入图片描述 通过报错信息的提示,v(79)找到代码中这一行内容, 在这里插入图片描述 然后发现在always块的敏感信号列表里,出现了2个posedge,将posedge改成negedge即可

修改为:

在这里插入图片描述

补充

注意下面的使用方法

always@(posdge a or negedge b)
posedge搭配if(a)
negedge搭配if(!b)
关注
打赏
1659364566
查看更多评论
立即登录/注册

微信扫码登录

0.0930s