"Randy Yates" <
[email protected]> wrote in message
news:
[email protected] om...
> [email protected] (Ashwin) wrote in message
news:<
[email protected] com>...
<snipped>
Do you not understand when you would saturate and when you would not?
<snipped>
================================================== =======
Randy,
I suspect that a lot of people do not understand this seemingly "simple"
topic because there is not a clean generalized answer that is
processor/situation independent.
Some situations to consider (not exhaustive) assuming 2's complement math
for multiply-accumulates (MACs):
Do I want to saturate every time I overflow? If I know I overflowed at some
point in a calculation do I always want to saturate the final result? What
if intermediate calculations overflow but the final results are valid? Can I
tell if the final result is valid? What is the impact if the final result
overflows and is not saturated? If I avoid overflows by scaling my numbers
down, what does that do to my numerical resolution including underflows?
Does the range of my accumulator support the detection of the situation
where intermediate values in a MAC overflow but the final result does not?
How many MACs can I perform and not destroy this detection capability? ...
Not so simple.
Dirk
Dirk A. Bell
DSP Consultant