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?
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;