Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > C lines To VHDL

Reply
Thread Tools

C lines To VHDL

 
 
hailconan@gmail.com
Guest
Posts: n/a
 
      08-13-2005
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

 
Reply With Quote
 
 
 
 
Hubble
Guest
Posts: n/a
 
      08-13-2005
> How can I program them in VHDL ?

Just learn VHDL. The translation is rather straight forward.

Hubble.

 
Reply With Quote
 
 
 
 
hailconan@gmail.com
Guest
Posts: n/a
 
      08-14-2005
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.

 
Reply With Quote
 
ALuPin@web.de
Guest
Posts: n/a
 
      08-15-2005

schrieb:

> 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é

 
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
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
How to know two lines are a pare parallel lines lovecreatesbeauty C Programming 11 04-28-2006 03:32 AM
Asp.Net Calender, how to display 5 lines if there are only 5 lines in one month? Jack ASP .Net 9 10-12-2005 03:44 AM
Modems, Analog Lines and ... Electrical Lines? Sens Fan Happy In Ohio Computer Support 5 09-02-2004 04:15 AM
Re: how to read 10 lines from a 200 lines file and write to a new file?? Joe Wright C Programming 0 07-27-2003 08:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57