Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- In case of 2's complement, addition and subtraction are the same. I am not sure about multiplication though. Therefore, what difference does it make if we select the input type as being signed or unsigned for the lpm_add_sub and lpm_mult? Does the way to carry out addition or subtraction actually change if we select the input type as being signed or unsigned? --- Quote End --- For +/- Yes it does with respect to carry bit for example [001] +[111] (+1-1) should be zero if signed but would be 8 [1000] if unsigned. Apart from that they are same. The main advantage of 2's complement system is just that +/- become same as unsigned apart from above. mult is different