Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Addition and multiplication

Reply
Thread Tools

Addition and multiplication

 
 
rockerboy rockerboy is offline
Junior Member
Join Date: Dec 2007
Posts: 1
 
      12-05-2007
Hi,

I want to implement the below C code in VHDL. What would be the way to do it?

int a1, a2, a3, b1, b2, mOut, aBuf1, aBuf2, aBuf3, mOut1, mOut2;

mOut = a1*aBuf1 + a2*aBuf2 + a3 *aBuf3 - b1 *mOut1 -b2*mOut2;
Should I use a multiplier and adder or should I just do the addition and multiplication in one line?
 
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
Are MalwareBytes And AdAware Useful In Addition To Spyware Blaster And SuperAntiSpyware Internet Highway Traveler Computer Support 0 03-22-2010 11:55 PM
Source of term "multiplication" in matrix multiplication William Hughes C Programming 13 03-15-2010 02:04 PM
Q: "...Learning with Python" ...a property that addition and multiplication have... jeffbernstein@yahoo.com Python 7 05-26-2005 08:22 PM
Performance issue: matrix multiplication in C and C++ Michael Bader C++ 11 03-03-2004 09:30 AM
Addition and multiplication puzzle Mark Dickinson Python 5 10-25-2003 10:04 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