omara007
Advanced Member level 4
- Joined
- Jan 6, 2003
- Messages
- 1,237
- Helped
- 50
- Reputation
- 102
- Reaction score
- 16
- Trophy points
- 1,318
- Location
- Cairo/Egypt
- Activity points
- 9,716
Hi guys
I have two 16-bit bit vectors .. each one represents a signed binary number. The format of each vector is as follows:
XXXX . XXXXXXXXXXXX
Where the (dot) represents the binary point that separates the integer part from the fraction part.
The Most Significant Bit order is (15), while the Least Significant Bit order is (0).
As the vector is signed, bits (12, 13, 14) represent the integer value while bit (15) is the sign bit. The numbers are represented in 2's complement format.
Now, I want to multiply these 2 vectors. I know that the result will be placed in a 32-bit vector. Yet, where will be the position of the binary point ? .. Please notice that it's a signed multiplication process.
I have two 16-bit bit vectors .. each one represents a signed binary number. The format of each vector is as follows:
XXXX . XXXXXXXXXXXX
Where the (dot) represents the binary point that separates the integer part from the fraction part.
The Most Significant Bit order is (15), while the Least Significant Bit order is (0).
As the vector is signed, bits (12, 13, 14) represent the integer value while bit (15) is the sign bit. The numbers are represented in 2's complement format.
Now, I want to multiply these 2 vectors. I know that the result will be placed in a 32-bit vector. Yet, where will be the position of the binary point ? .. Please notice that it's a signed multiplication process.