TrickyDicky
Advanced Member level 7
- Joined
- Jun 7, 2010
- Messages
- 7,110
- Helped
- 2,081
- Reputation
- 4,181
- Reaction score
- 2,048
- Trophy points
- 1,393
- Activity points
- 39,769
It will depend what the max and min values are. If you need range -4 to almost +4, you already need 3 bits of integer. So to make up the other 5 you multiply your number by 2^5 = 32.
on paper, multiply by 32 and get rid of any remaining fractional bits.
so here, -3.9688 = -127 = 10000001. So in reality the number is 100.000001.
Inside in FPGA there is no need for any multiplying. 10000001 in 3.5 fixed point represents -3.9688
on paper, multiply by 32 and get rid of any remaining fractional bits.
so here, -3.9688 = -127 = 10000001. So in reality the number is 100.000001.
Inside in FPGA there is no need for any multiplying. 10000001 in 3.5 fixed point represents -3.9688