Guest
Hi, suppose I have these lines in C:
//=====================
int N = 5;
int sr0 [N] = {0};
int start = 0;
int end = 0;
int num_ones_each_col[5] ={0};
int Matrix[5] = {100, 300, 500, 10, 30};
for (j = 0 ; j < N ; j++)
{
end += num_ones_each_col[j];
start = end - Matrix[j];
Store_the_Start_Mul_End(sr0,start,end,j); //this function store teh
result of start*end in sr0;
}
//=====================
How can I program them in VHDL ?
Thnaks
//=====================
int N = 5;
int sr0 [N] = {0};
int start = 0;
int end = 0;
int num_ones_each_col[5] ={0};
int Matrix[5] = {100, 300, 500, 10, 30};
for (j = 0 ; j < N ; j++)
{
end += num_ones_each_col[j];
start = end - Matrix[j];
Store_the_Start_Mul_End(sr0,start,end,j); //this function store teh
result of start*end in sr0;
}
//=====================
How can I program them in VHDL ?
Thnaks