Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- unsigned and signed 2's complement addition/subtraction are identical and that is why 2's complement has gained popularity over say sign and magnitude. However, there is one anomaly here as FvM pointed at; you must ignore carry bit for signed to be correct.Moreover you must do sign extension first --- Quote End --- Thanks. What is sign extension? More importantly, why do we need to designate the SIGNED attribute when building an adder in the Mega function library if the UNSIGNED adder is identical?