Forum Discussion
Altera_Forum
Honored Contributor
15 years agolpm_divide remainder result
My thread is mainly on the remainder output from the lpm_divide. I am using the lpm_divide megafunction for diving two 16 bit fixed point numbers and the denominator is always greater than or ...
Altera_Forum
Honored Contributor
15 years agoThat's correct you should get that value as the remainder. As a result I would prescale the numerator more than the denominator so that you get a quotient that is beyond 0 or 1 (otherwise you don't really need a divider to figure out the answer....)