Guest
Hi,
I have a set of two dimensional arrays that is created using "generate"
statement as below
genvar j;
generate
for(j=0;j<8;j=j+1)
begin : mat_array
reg [15:0] matrix [0:MATSIZE-1];
always@(*)
begin
integer i;
for(i=0;i<MATSIZE;i=i+1)
matrix = xyz;
end
end
endgenerate
Now I need to "OR" all the different instantiations of the matrix i.e.
something like -
mat_array[0].matrix[0:MATSIZE-1][15:0] |
mat_array[1].matrix[0:MATSIZE-1][15:0] |
mat_array[2].matrix[0:MATSIZE-1][15:0] |
mat_array[3].matrix[0:MATSIZE-1][15:0] |
mat_array[4].matrix[0:MATSIZE-1][15:0] |
mat_array[5].matrix[0:MATSIZE-1][15:0] |
mat_array[6].matrix[0:MATSIZE-1][15:0] |
mat_array[7].matrix[0:MATSIZE-1][15:0]
Maybe I need more sleep but I just cannot seem to figure out how I can
do this that would not cause a problem with the synthesizer.
TIA,
Sanjay
I have a set of two dimensional arrays that is created using "generate"
statement as below
genvar j;
generate
for(j=0;j<8;j=j+1)
begin : mat_array
reg [15:0] matrix [0:MATSIZE-1];
always@(*)
begin
integer i;
for(i=0;i<MATSIZE;i=i+1)
matrix = xyz;
end
end
endgenerate
Now I need to "OR" all the different instantiations of the matrix i.e.
something like -
mat_array[0].matrix[0:MATSIZE-1][15:0] |
mat_array[1].matrix[0:MATSIZE-1][15:0] |
mat_array[2].matrix[0:MATSIZE-1][15:0] |
mat_array[3].matrix[0:MATSIZE-1][15:0] |
mat_array[4].matrix[0:MATSIZE-1][15:0] |
mat_array[5].matrix[0:MATSIZE-1][15:0] |
mat_array[6].matrix[0:MATSIZE-1][15:0] |
mat_array[7].matrix[0:MATSIZE-1][15:0]
Maybe I need more sleep but I just cannot seem to figure out how I can
do this that would not cause a problem with the synthesizer.
TIA,
Sanjay