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 --- let us assume the numbers are signed: 111 * 011 (as signed I expect the result to be -1 * 3 = -3 now sign extend according to tricky's trick: 111 111 * 000 011 the verdict: = 10111101 and means -128 + 61 and /= the expected -3 So what is going on Now? --- Quote End --- you're forgetting that the result is only 6 bits because you had 2 x3 bit inputs. you ignore bits 6 and 7 (only bits 0-5 are valid)