Can someone give me some advice on designing a 2's complement multiplier
I started by creating a state graph and this is what i have:
**broken link removed**
One problem i am stuck is what exactly should be in S7 when M = '1'? I had in mind four cases that should be cover by using case statements:
Multiplicand is positive, multiplier is positive
Multiplicand is negative, multiplier is positive
Multiplicand is positive, multiplier is negative
Multiplier is negative, multiplicand is negative
I would appreciate if someone gave me some other suggestions?
With twos compliment, there is no need to worry about whether values are positive or negative. All you need to do is sign extend both inputs. You either need to instantiate an onboard multiplier or N adders, where N is the number of bits at input.