Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Entry in VHDL for 4x4 matrix

Status
Not open for further replies.

Nivii1406

Junior Member level 2
Junior Member level 2
Joined
Jun 8, 2013
Messages
20
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Visit site
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top