Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNumber Scaling
Hi, What is the most efficient way to scale numbers into the range of -1, 1 in Verilog using Cyclone II? That is the fastest code with least resources? are there any free IP cores from Altera o...
Altera_Forum
Honored Contributor
15 years agotry writing a 'mapping' function maybe.. the idea is to take a string of numbers and map them to a range.
ex: map(0, 1023, 0.0 , 8.0) // takes any positive integer in 0-1023 range // and maps it to a float in range 0.0 - 8.0..