Forum Discussion
Altera_Forum
Honored Contributor
13 years agojudgement on whether or not there is an overflow
I have 3 numbers x, y, z to be added together, each with the format of s1.14. Then the sum will be in the format of s3.14. How to make judgement on whether or not there is an overflow? If it is judg...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- If the final result doesn't have an overflow, does an overflow in the middle of the calculation matters? --- Quote End --- Yes it does. Normally you should not allow that by applying enough width for internal bit growth. If your application permits you may clip internally instead in the same way as my example but adjusted for relevant widths