C lines To VHDL

H

hailconan

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
 
H

Hubble

How can I program them in VHDL ?

Just learn VHDL. The translation is rather straight forward.

Hubble.
 
H

hailconan

Hi, Hubble I have started with VHDL for a month, but I have problem
with the sequence above? so how can I do it? thanks.
 
A

ALuPin

Hi, Hubble I have started with VHDL for a month, but I have problem
with the sequence above? so how can I do it? thanks.

You could post the part of your VHDL code you have already written.

Rgds
André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top