I was wondering if there is any way to pass a single row of a 2d array of values as the input to a module in Verilog.
Say my array is defined like this:
reg[15:0] arr[0:9][0:63];
...
...
mod1 m(..., arr[5], ....);
mod1
has the definition of:
module mod1 (..., input[15:0] arr[0:63],...);
...
...
endmodule
I use icarus verilog as my compiler. When I compile using the -g2012
flag, it throws the following error:
assert: elaborate.cc:1456: failed assertion rval_net->pin_count() == prts[0]->pin_count()
Can someone help me with this?