Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHow to calculate fractional part of quotient when using the lpm_div
The lpm_div outputs quotient and remainder. Can it be used to implement fixed point division?? The remainder is not equal to the fractional part. I am not sure how to calculate fractional part...
Altera_Forum
Honored Contributor
9 years agoOK, I understand how to use the shifting trick. Thanks.
It is just that I know that adder/subtractor needs only limited logic elements, and multiplier can use a DSP block. So when I saw the logic usage by the divider I was shocked! Basically like multiplication is just shift and add, in contrast division is shift and subtract. Therefore, it does not make sense to me why it needs 100s of logic elements.