正确行为的不同大小的输出,线在verilog?

时间:2012-03-30 22:23:28

标签: verilog

所以我有这样的事情:

module top (..., out,...);
...
output [0:1] out;
wire [0:3] out;
...
endmodule

这是正确的verilog吗?如果是这样,这是一个2位输出端口的正确行为吗?

1 个答案:

答案 0 :(得分:0)

verilog 2001快速参考指南(第5.2节)说明了这一点:

• Port/data type connection rules:
The port range and data type range must be the same (if different, some
software tools will use the data type size instead of reporting an error).

所以我会说这不对。

相关问题