Altera_Forum
Honored Contributor
13 years agolarge divider VHDL
hi, i have to perform a division 112 bit dividend and 112 bit divisor.
To enhance precision (fractional), i shift the numerator by 6 to the left. To perform this huge division, i perform multiple subtraction until numerator is positive. if (numerator positive) Numerator <= Numerator - Denominator Quotient <= quotient +1; when i check for timing, the subtractor path is the most critical, i think because of the bus size. How can i speed this task? Numerator and denominator don't change every clock cycle, so i could use a multicycle. How i use this? I would use lpm_add_sub to pipeline the subtractor, i have quartus 12 and this is not present in the megawizard. How i can instantiate in my vhdl?