06-18-2018 07:15 AM
I am trying to load coefficients of aFIR that I generated in matlab filterdesigner during runtime.
can somebody give me an example or a template to start with?
06-18-2018 09:47 AM
Do you have a reloadable filter? If so, there should be ports for the coefficients and a reload control port. On the FIR IP, these are the s_axis_reload interfaces and s_axis_config interfaaces.
06-18-2018 11:20 PM
so you treat S_AXIS_RELOAD as a RAM memory for the coefficient data?
and S_AXIS_COFNIG is for?
another question is I can not change the output width?
if I slice it and skip 8bits of the LSB side, what would be the effect on precision of the filter?
the format of output is [MSB:0] right?
thank you in advance for your reply
here is the fir I generated
06-19-2018 04:23 AM
Correct, the coefficients are loaded into the RELOAD channel and the CONFIG channel is used to tell the filter to use the new set of coefficients. There is a nice timing diagram in the data sheet on page 20. Look in PG149, FIR Compiler v7.2 LogiCORE IP Product Guide
06-20-2018 09:35 AM - edited 06-20-2018 09:35 AM
Also, the demo testbench that comes with the core shows how to reload it when enabled.