Matrix Shifting

A

a_Conan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top