Forum Discussion
Altera_Forum
Honored Contributor
15 years agobit shifting arithmetic
Hi there! I am trying to get my around some binary arithmetic. Basically, I don't want to deal with floating points, so I have a problem that was originally 400 * 0.0615 = 24.6 ...
Altera_Forum
Honored Contributor
15 years agoDivision is best avoided on FPGAs. If you can, it is usually much cheaper and faster to multiply by 1/n rather than divide by n. (assuming you can calculate 1/n via some other means (on a CPU, inside a lookup table etc)