On 06/19/2018 10:28 AM, Nives Novković via USRP-users wrote:
Hi everyone,

me again with the questions. :) Next thing I am trying to learn is RFNoC FIR filter. I see that the only thing I can modify for the filter is filter taps. Is there any official documentation on those blocks? I am trying to figure out what values should I enter there if, i.e. I want to eliminate all the frequencies above 100 kHz. Those are actually coefficients in the FIR filter equation? Here is my current flow graph.


fir_filter_flow_grc.png

Kind regards,
Nives


The RFNoC FIR filter takes a list of ints that can be scaled from a floating-point representation of the filter.

Gnu Radio includes the firdes routines for producing coefficients for simple low-pass/high-pass/band-pass filters. One you have the results, you can just use a simple Python expression to scale by 32767.0 and convert to int. Something like:

 [int(i*32767) for i in filter_coeffs]

Keep in mind that the RFNoC FIR filter is, last I checked, limited to 41 filter coefficients



_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to