I have the following sub-module:
module test
(
input [LENGTH : 1] array;
);
...
endmodule
and I'm calling it from a top module as follows:
...
wire [LENGTH-1 : 0] array_top;
test test_i
(
.array (array_top);
);
...
Assume LENGTH is the same in both modules.
- How will
array_topmap toarray, givenarray_topgoes down to zero butarraygoes to down 1? - Why would anyone define an array down to 1 and not down to 0?
- What will happen to
array[0]?