Forum Discussion
Altera_Forum
Honored Contributor
15 years agomatrix array in vhdl
Dear all, I have 4x4 matrix and I want to read this matrix row by row on each clock cycle. For example, row1 is read in cycle1, row2 is read in cycle2 and so on. Can anyone give idea how to w...
Altera_Forum
Honored Contributor
15 years agotemp_row contains the row currently. If you run the simulation for 50ns you can see the row selected changing every clock cycle, as per the attached image (shows its working for me).
For your outputs, you will need to add them to the code. It sounds like you're trying to do a matrix transpose - but there is no need to do a transpose synchronously - because all you are doing is re-wiring the array, it doesnt cost any resources, and doesnt need to be synchronous.