Forum Discussion
Altera_Forum
Honored Contributor
10 years agoSigned addition in Nios II
Hi all, I need to add two numbers in Nios II. For that i simply add two numbers in Nios II C program. I have assigned the maximum possible 32 bit positive value .i.e. 0x7FFFFFFF in both. Wha...
Altera_Forum
Honored Contributor
10 years agoThe result doesn't saturate but Nios overflows and set the overflow status.
AFAIK this is the normal behaviour on other microprocessors, too. I have worked with a few uP which could saturate the result instead of generating an overflow, but this was always an option you had to explicitly enable.