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 agoDear Tricky,
Now I try to write for 2D matrix with integer data type. I change the std_logic_vector to integer as below: --before: entity TM is port(input: in std_logic_vector (0 to 3); clk: in std_logic); end TM; --after: entity TM is port(input: in integer range 0 to 3; clk: in std_logic); end TM; It is right I declare my 2D input as code above? But, I think its 1D..Then I change to range (0 to 3, 0 to 3) but error occurs. What the right way should I write..Thanks for reply