Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > How to Input a matrix in VHDL

Reply
Thread Tools

How to Input a matrix in VHDL

 
 
swati gupta
Guest
Posts: n/a
 
      10-21-2009
Hello
I am doing a college project which requires VHDL coding. My part
requires me to do linear equation solver of the kind Ax = B. where A
= [ N x N ] matrix and x and B are N x 1 and M x 1 column matrices
respectively.

I am unable to find a good tutorial online which could tell me how to
input a matrix in VHDL.

COuld someone please help me.

Please i need to know this soon.

Thanks,


Swati
 
Reply With Quote
 
 
 
 
Tricky
Guest
Posts: n/a
 
      10-21-2009
On 21 Oct, 14:00, swati gupta <(E-Mail Removed)> wrote:
> Hello
> I am doing a college project which requires VHDL coding. My part
> requires me to do linear equation solver of the kind *Ax = B. where A
> = [ N x N ] matrix and x and B are N x 1 and M x 1 column matrices
> respectively.
>
> I am unable to find a good tutorial online which could tell me how to
> input a *matrix in VHDL.
>
> COuld someone please help me.
>
> Please i need to know this soon.
>
> Thanks,
>
> Swati


You can just use arrays of arrays or 2D (you can actually have N
dimensions) arrays:

so for array of arrays:
type matrix_row_t is array(0 to N-1) of some_type;
type matrix_t is array(0 to N-1) of matrix_row_t;
signal matrix : matrix_t;


and the 2D version:
type my_matrix_t is array(0 to N-1, 0 to N-1) of some_type;
signal my_matrix : my_matrix_t;
 
Reply With Quote
 
 
 
 
olliH
Guest
Posts: n/a
 
      10-21-2009
Hi,

maybe this can help you:


subtype double is std_logic_vector(63 downto 0);
type double_6 is array (0 to 5) of double;
type Matrix_d6x6 is array (0 to 5) of double_6;

signal Matrix1: Matrix_d6x6;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Matrix*Vector and Vector*Matrix Holgerson C++ 3 10-26-2007 07:38 AM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Matrix composed by two matrix lvcargnini VHDL 3 07-05-2006 07:21 AM
Re: Matrix DTS and Matrix 2 DTS? PeterTHX DVD Video 0 08-03-2003 05:46 AM



Advertisments