Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Icarus Verilog 中正确的多位数组声明是什么?我在这段代码中遇到了解析错误, input [19:0] array [0:9];但是当我尝试时input [20*10-1] array;,没有解析错误,但我的输入/输出中有错误。
input [19:0] array [0:9];
input [20*10-1] array;
Verilog,不仅仅是 Icarus,不允许将 IO 声明为多维数组。它只是没有。SystemVerilog 可以。人们为解决这个问题做了不同的事情,比如声明多维线,然后将它们连接到平面定义的输入。