kommu4946
Member level 4
Hi,
I need help regarding fixed point arithmetic operations,
There are two numbers one is of 24 bits in this 1 bit for sign and 13 bits for integer and 10 bits for fractional part.The second number is 16 bits in which 1 bit for sign and 15 bits for fractional part.
when i multiply both numbers i will get 39 bits (N1 + N2-1) then i have to add four multiplied values .
In which msb bit for sign and 13 bits are integer and 25 bits are fraction.(1,13,25)
i want to add four such numbers (1,13,25) numbers and convert back the result to (1,13,10) format.
Then the result bit width is of (1,15,27) to avoid overflow . On paper to get the result back to (1,13,10) iam taking MSB 10 bits of 27 for fraction and MSB 13 bits of 15 for integer .
But when it comes to implementation it is just addition of four 39 bits which need 41 bits .
In this 41 bits how i have to separate sign integer, and fraction.? r should i use bit width as 43 bits?
Regards
I need help regarding fixed point arithmetic operations,
There are two numbers one is of 24 bits in this 1 bit for sign and 13 bits for integer and 10 bits for fractional part.The second number is 16 bits in which 1 bit for sign and 15 bits for fractional part.
when i multiply both numbers i will get 39 bits (N1 + N2-1) then i have to add four multiplied values .
In which msb bit for sign and 13 bits are integer and 25 bits are fraction.(1,13,25)
i want to add four such numbers (1,13,25) numbers and convert back the result to (1,13,10) format.
Then the result bit width is of (1,15,27) to avoid overflow . On paper to get the result back to (1,13,10) iam taking MSB 10 bits of 27 for fraction and MSB 13 bits of 15 for integer .
But when it comes to implementation it is just addition of four 39 bits which need 41 bits .
In this 41 bits how i have to separate sign integer, and fraction.? r should i use bit width as 43 bits?
Regards