rahulrs
Newbie level 3
Thank you for looking at the post:
My design requires me to have an m*n array of records, which is stored in the td_array()().
10 11 12 13
00 01 02 03
I need to compare records column by column. So I am building a column array (col_array) of records like this:
col_array(0) <= ( td_array(0)(0), td_array(1)(0), td_array(2)(0), td_array(3)(0) );
col_array(1) <= ( td_array(0)(1), td_array(1)(1), td_array(2)(1), td_array(3)(1) );
.
.
col_array(8) <= ( td_array(0)(8), td_array(1)(8), td_array(2)(8), td_array(3)(8) );
Is there a way to turn this into for-generate loop in VHDL to achieve this ?
I can have arbitrary 'm' and 'n' combinations.
Also do I have any better ways to do this ?
RRS
My design requires me to have an m*n array of records, which is stored in the td_array()().
10 11 12 13
00 01 02 03
I need to compare records column by column. So I am building a column array (col_array) of records like this:
col_array(0) <= ( td_array(0)(0), td_array(1)(0), td_array(2)(0), td_array(3)(0) );
col_array(1) <= ( td_array(0)(1), td_array(1)(1), td_array(2)(1), td_array(3)(1) );
.
.
col_array(8) <= ( td_array(0)(8), td_array(1)(8), td_array(2)(8), td_array(3)(8) );
Is there a way to turn this into for-generate loop in VHDL to achieve this ?
I can have arbitrary 'm' and 'n' combinations.
Also do I have any better ways to do this ?
RRS
Last edited: