In VHDL is it possible to sequentially assign values to a variable of type INTEGER? For example, I have a behavior file that has a matrix that loads value from a variable called DIN of type INTEGER. In the testbench I would think I need to assign values that DIN can have in which case I would need 8x8 values. How can I do so when my only inputs are DIN, CLK, and START?
I am assuming that the question can be interpreted as: "given a 2D array of integers, how can I initialize it one value at a time?"
If this is the case, here's a possible solution:
current_row
and current_column
)current_row
, current_column
, and your matrix elements should be set to 0 when reset is asserted)matrix(current_row, current_column) <= d_in
current_row
and current_column
so that they cycle through the entire matrix in the correct orderThe implementation details are left to the reader, but this should be enough to get you started.