Forum Discussion
Altera_Forum
Honored Contributor
16 years agoif you want to do division of any significant bitwidth (>3~4 bits num and den), you need to instantiate the divider megafunction and then configure it to have several pipe stages. This will allow it to meet timing when you actually try to compile it.
If you want some fractional bits in your answer, then you need to tack on some zeros in the numerator (similar to left shifting the number in c eg. shifted_num = num << frac_bits).