05-03-2018 12:45 AM
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.
05-15-2018 10:49 AM
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.
05-16-2018 04:25 AM
The RADIX=10 format will accept fractional coefficients. SOmething like this:
RADIX = 10;
but I agree that quantizing (and normalizing) the coefficient set before using filter generator is a good idea.
03-08-2021 01:21 AM
@diverger , it's not recommended to have floating point numbers in the COE file, because the FIR Compiler GUI will do quantization based on your bit width and fractional width settings, the frequency response may be a little different because quantization is done by the GUI and coef values might change after quantization, that said, it's recommended for the user to quantize the coefs firstly, then user can use set this quantization in the GUI, so the frequency response does not change.