Rules | Recent posts | topic RSS | Search | Register  | Log in

how to decide the percision of the fixed point ?

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Elementary Electronic Questions
Author Message
boeysue



Joined: 23 Dec 2004
Posts: 190
Helped: 3


Post02 Jan 2005 16:20   how to decide the percision of the fixed point ?

When we use filter in fixed point,how to decide the multiplicand and adder and output format in matlab to reach our performance?Thanks for help?
Back to top
mandrei



Joined: 10 Jan 2004
Posts: 67
Helped: 2


Post04 Jan 2005 11:42   Re: how to decide the percision of the fixed point ?

Hi boeysue,


Supose you have to implement a digital filter with coefficents:

5 2.5 0.625

Since you have a fixed point processor you must use only integer numbers.

First step is to divide coeficients by the biggest number (step called normalization of the coeficients)

Normalized coeficients are (dividing each coeficiient by 5):

1 0.5 0.125

for an 8 bit procesor you can represent those numbers in binary like:

1=1111 1111 b

0.5=1000 0000 b

0.125=0010 000 b

Now you can put an imaginary decimal point everywhere you like, for instance:

1=1111 . 0000 b

0.5=1000 . 0000 b

0.125=0010 . 0000 b


Observe that precision of 1 coeficient had reduced, but you gained 4 decimal places to represent fractional numbers in the result.
Back to top
boeysue



Joined: 23 Dec 2004
Posts: 190
Helped: 3


Post04 Jan 2005 11:55   Re: how to decide the percision of the fixed point ?

>>Now you can put an imaginary decimal point everywhere you like, for instance:
>>1=1111 . 0000 b
>>0.5=1000 . 0000 b
>>0.125=0010 . 0000 b
>>Observe that precision of 1 coeficient had reduced, but you gained 4 decimal >>places to represent fractional numbers in the result.
Do you mean that the lost 4 bit can use the multiplicant and adder to compresent it?

Added after 21 seconds:

>>Now you can put an imaginary decimal point everywhere you like, for instance:
>>1=1111 . 0000 b
>>0.5=1000 . 0000 b
>>0.125=0010 . 0000 b
>>Observe that precision of 1 coeficient had reduced, but you gained 4 decimal >>places to represent fractional numbers in the result.
Do you mean that the lost 4 bit can use the multiplicant and adder to compresent it?
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Elementary Electronic Questions
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap