Forum Discussion
Altera_Forum
Honored Contributor
14 years agoyou need to scale according to your target range. If a signal is swinging say +/-1 then to scale it for 10 bit signed you need the max value of 1 = 511 and so on:
value = round(511*signal/max(abs(signal))); You may go lower for any other reason.