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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1822|回复: 1

[求助] 选择一个data fix-with value的问题

[复制链接]
发表于 2012-8-2 21:27:43 | 显示全部楼层 |阅读模式

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

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

x
我看到有这样一种写法:
   data[sel*5+:5]   
sel是变量,感觉就是选择固定位宽的值,比如sel=0=> data[4:0]
sel=1=>data[9:5]
哪位大神解释下这个+:是怎么展开的。
我只知道怎么用,都是死记的。


还有看到一种data[j+:c]  这表示的是什么呢。
发表于 2013-3-15 10:50:45 | 显示全部楼层
[j+:c], normally, j is an expression and c should be a number;
also there is [j-:c];
It is a new feature in verilog2001 or systemverilog, I'm not sure.
The best way to understand it is creating a simple case and to run simulation.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-27 21:03 , Processed in 0.017574 second(s), 7 queries , Gzip On, Redis On.

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