Forum Discussion
Altera_Forum
Honored Contributor
17 years agosigned/unsigned multipliers
I can't seem to find a way to instantiate a multiplier that will dynamically select between signed and unsigned multiplication. This is on a Cyclone II, but applies to other parts as well. Read...
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- Am I missing something? --- Quote End --- Yes. You need to sign extend 111 to 111111 so -1 x 3 =
11
+ 11
+ 11
+ 11
+ 11
+11
--------
111101 = -3
Sign extension just means take the MSB and keep adding it to the front to the input up to the length of the result. Unsigned numbers are really signed numbers with an implied '0' sign bit