UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer phifred
Observer
414 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
Moderator
Moderator
370 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
364 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