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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

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

[讨论] Verilog的语法问题请教

[复制链接]
发表于 2016-2-27 13:59:39 | 显示全部楼层 |阅读模式

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

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

x
The left-hand side of the assignment in the assign statement shall be a variable reference or a concatenation
of variables. It shall not be a memory word (array reference) or a bit-select or a part-select of a variable.



这是IEEE_2001_verilog_standar 第125页对assign的赋值说明。意思是在assign的等号左边不可以是 变量的bit-select或者是part-select。可是实际上是可以的。不知道我哪里理解有问题




1.png

我说可以实现bit-select是因为这个工程通过的QuartusII 的语法检查
发表于 2016-2-28 13:30:05 | 显示全部楼层
应该是bit级的变量不能再支持bit-select和part-select
发表于 2016-2-28 15:50:43 | 显示全部楼层
最后一句,应该说的是 bit-select 或 part-select 时的 index 不能是变量。
发表于 2016-2-29 09:59:55 | 显示全部楼层
回复 3# 加油99
对的,左值括号里不能是变量。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-5-1 02:12 , Processed in 0.032725 second(s), 10 queries , Gzip On, Redis On.

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