所以我有这样的事情:
module top (..., out,...);
...
output [0:1] out;
wire [0:3] out;
...
endmodule
这是正确的verilog吗?如果是这样,这是一个2位输出端口的正确行为吗?
答案 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).
所以我会说这不对。