Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOutput of "x^2 + y^2" from 2's complement to binary (with sign)
Hi, I am using a altmult_add megafunction to generate output of x^2 + y^2 for inputs x and y, where both x and y are 2's complements. I understand that the output would always be a positiv...
Altera_Forum
Honored Contributor
15 years agoSo, if x^2 and y^2 = 16-bits
Is it always the case that x^2 + y^2 = 33-bits? And that bit 33 is THE sign bit (zero in this case)? Sorry to be picky about this; I have been trying to understand this since last week.