Forum Discussion
Altera_Forum
Honored Contributor
14 years agoDepending on your accuracy requirements, you could shift the input until it's between 0 and 1. Count the number of shifts to get the integer portion of the result. Then use a table lookup to find the fractional portion of the result.
Your accuracy will depend on the size of the table.