I knew that in verilog, multidimensional array cannot be passed through the module port. I heard this is allowed in systemverilog, and it is the very reason I started to use systemverilog. However, for the following code, I still encounter the error shown below for both x and y.
A reference to an entire array is not permitted in this context [Systemverilog]
Here is the code.
module Chien(p, clk, reset, load);
wire [`m - 1 : 0] x [0 : `t - 1];
wire [`m - 1 : 0] y [0 : `t - 1][0 : `col];
mul_array mularray0(x, y);
endmodule
I am using ncverilog for simulation, and I take the -sv option. Is there any problem with my code, or it is the simulator's problem?
Thanks