Matrix Shifting

A

a_Conan

Guest
Hello,
I have this code:
---------------------
package ACONSTANTS is
constant N : integer := 3;
constant M : integer := 3;
type NM is array(0 to N, 0 to M) of integer; --Matrix N by N end
ACONSTANTS;
..
..
..
signal Matrix_in : NM := ((0 , 1 , 2 , 3 ),
(4 , 5 , 6 , 7 ),
(8 , 9 , 10, 11),
(12, 13, 14, 15));

---------------
The question can I Rotate the matrix in VHDL to represent it as below:

Matrix_in := ((0 , 1 , 2 , 3 ),
(5 , 6 , 7 , 4 ),
(10, 11, 8 , 9 ),
(15, 12, 13, 14));


Thank you
 

Welcome to EDABoard.com

Sponsor

Back
Top