cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant
Participant
670 Views
Registered: ‎11-20-2017

FIR COE File with floats

In FIR compiler (7.2) I can set the FIR filter using float values.

How do I write a COE file with float values?

I can only find examples using integer with base 10.

 

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
626 Views
Registered: ‎08-01-2007

Re: FIR COE File with floats

The coe file can only accept three format, which does not include floating point value, so make sure to quantatize the coefs before the put them into the coe file.

0 Kudos
Highlighted
620 Views
Registered: ‎06-21-2017

Re: FIR COE File with floats

The RADIX=10 format will accept fractional coefficients.  SOmething like this:

 

RADIX = 10;
COEFDATA =  

-0.000059659082087166009,
-0.000066866907286874759,
 0.0001937416967986231,
 0.00062986632850025107,
 0.00061518833272256783,
-0.00019546251023739046,
-0.00089589769459859966,
-0.00021517614146749535,

 

but I agree that quantizing (and normalizing) the coefficient set before using filter generator is a good idea.

0 Kudos