微波EDA网,见证研发工程师的成长! 2025骞�02鏈�23鏃� 鏄熸湡鏃�
首页 > 研发问答 > 嵌入式设计讨论 > FPGA,CPLD和ASIC > Verilog的语法问题请教

Verilog的语法问题请教

时间:10-02 整理:3721RD 点击:
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。可是实际上是可以的。不知道我哪里理解有问题




鍔犺浇涓�...


我说可以实现bit-select是因为这个工程通过的QuartusII 的语法检查

应该是bit级的变量不能再支持bit-select和part-select

最后一句,应该说的是 bit-select 或 part-select 时的 index 不能是变量。


对的,左值括号里不能是变量。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top