Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHi,
If your filter is LPF then it is easy to precalculate the maximum output value and this equals input maximum dc x (sum of coefficients). You will then know which MSBs are never used and discard safely. You may choose to discard a further MSB if it is only occasionally used by peaks. This is undesirable but may be inevitable. The best way is to rescale the coefficients so that the output swings in the relevant MSBs. Once you know how many MSBs to discard then you will know how many LSBs to truncate off. In this case rounding may be done but it is trivial.