Entry in VHDL for 4x4 matrix

Status
Not open for further replies.

Nivii1406

Junior Member level 2
Joined
Jun 8, 2013
Messages
20
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Activity points
126
Please help me write a code in VHDL for a 4x4 matrix which can then be used to build a 16x16 matrix.
 
Last edited:

why not just write a 16x16 matrix?

type matrix_16x16_t is array (0 to 15, 0 to 15) of integer;
 

I will have to use the 16x16 to build a 64x64 matrix. That is where the problem lies.
 

So you can just write a function with 4 16x16 matrix input and single 64x64 output.

HTML:
  type matrix_16x16_t is array (0 to 15, 0 to 15) of integer;
  type matrix_64x64_t is array (0 to 63, 0 to 63) of integer;

  function big_matrix(A :matrix_16x16_t; B : matrix_16x16_t; C :matrix_16x16_t; D : matrix_16x16_t)
    return matrix_64x64_t is
    variable result : matrix_64x64_t;
    begin
        //TODO depands on how you wanna combine them A|B or other way
                                                              C|D
    return result;
  end function big_matrix;
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…