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 agofirst of all, your code has a compile error. Count needs to be initialised to "00" not "0". So you cant have simulated this exact code.
Secondly, because you have left my code pretty much intact, you're extracting the row from the internal signal matrix that is not connected to anything. You need to put "input", rather than "matrix" into the extract_row function. Once I'd fixed these two problems, the row extraction works fine for me. Where do you expect the exctracted rows to go?