Addition and multiplication

Joined
Dec 2, 2007
Messages
1
Reaction score
0
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?
 

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

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top