Forum Discussion
Altera_Forum
Honored Contributor
13 years agoFPGA Multiplication Resource Utilization
Hi,
I need to do 18x7 multiplication and my FPGA doesnt have the built in DSP blocks, so I am using behavioral code in the source code to do the multiplication. It is taking around 190 LUT to do this multiplication Example: q_srrc_sum <= $signed(7'd63) * q_srrc; where q_srrc is an 18 bit vector I need to do 16 of these and it takes lot of the area. Is there a better way to optimize this , so that the resource utilization is less. Thank You11 Replies
- Altera_Forum
Honored Contributor
Agreed. For multiplying by a fixed number, shifts, adds and subtracts are the way to go. I once wrote a program that would give you the optimal combination in pseudo code. I'll see if I can dig it up somewhere. It basically found two shift values that were above and below the multiplier and then recursively deduced the least expensive path.
-Mux