module inst(a,b,c);
output c;
input[1:0] a,b;
assign c=(a==b)?1:0;
endmodule
这样的一段代码,编译一直不过,错误如下,请问为什么呢?
Error: Incorrect connector style at port "a[1..0]" for symbol "inst" of type inst
Error: Incorrect connector style at port "b[1..0]" for symbol "inst" of type inst
Error: Can't elaborate top-level user hierarchy |