Addition and multiplication

Discussion in 'VHDL' started by rockerboy, Dec 5, 2007.

  1. rockerboy

    rockerboy

    Joined:
    Dec 2, 2007
    Messages:
    1
    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?
     
    rockerboy, Dec 5, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Bader
    Replies:
    11
    Views:
    12,066
    Michael Bader
    Mar 3, 2004
  2. akickdoe22@hotmail.com
    Replies:
    1
    Views:
    820
    Thomas Matthews
    Jan 21, 2005
  3. Mark Dickinson

    Addition and multiplication puzzle

    Mark Dickinson, Oct 25, 2003, in forum: Python
    Replies:
    5
    Views:
    443
    Alex Martelli
    Oct 25, 2003
  4. jeffbernstein@yahoo.com
    Replies:
    7
    Views:
    1,111
    Steven Bethard
    May 26, 2005
  5. William Hughes
    Replies:
    13
    Views:
    1,254
    Ben Bacarisse
    Mar 15, 2010
Loading...

Share This Page