On 21 Oct, 14:00, swati gupta <(EMail 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 N1) of some_type;
type matrix_t is array(0 to N1) of matrix_row_t;
signal matrix : matrix_t;
and the 2D version:
type my_matrix_t is array(0 to N1, 0 to N1) of some_type;
signal my_matrix : my_matrix_t;
