TrickyDicky
Advanced Member level 7
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