Forum Discussion
Altera_Forum
Honored Contributor
11 years agoCode Optimization for FPGA
I was told the multiplier "*" in the code blow will dramatically slow down the operating speed(Fmax) of FPGA. But i don't konw why. Could somebody give me some hints on it? Any idea to optimize it? ...
Altera_Forum
Honored Contributor
11 years agoThat is just an open coded multiply, to multiply x by y (y 0..7):
(y & 1 ? x : 0) + (y & 2 ? 2 * x : 0) + (y & 4 ? 4 * x : 0)