Hi
I have a simple 4x4 array defined as follows:
type rib is array (0 to 3) of std_logic_vector(3 downto 0); signal RanIB : rib;
In my combinational logic stage I evaluate a new column that I wanna store in my 4x4 array at the next clock cycle. However, the problem is that at the next clock cycle I also wanna update one row of the same array and set to ZERO all the values in a specific row. The problem is that also the row index of the newly added column should be set to ZERO at the same clock... Cleary I will get an undefined value for one element in my array when I try to write from two sources at the same time. Is there an elegant way to implement this stuff?
For clarification a little example ;)
My array looks as follows:
1 1 1 0 1 1 0 1 1 1 1 0 1 1 1 1At the next clock cycle I wanna update column 2 for instance
1 1 1 0 1 1 0 1 1 0 0 0