Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi Tricky,
Thanks for the reply. As speed is not much of an issue, I implemented a divider using subtractions. Something like this:
if ( numerator >= denominator) then
numerator <= numerator - denominator;
counter <= counter + 1;
else
output <= counter;
end if;
This brought down the resources usage from 25% to 5%. Perhaps this is not the best solution, I am open for better ideas. Vincent