LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of 8th order filter on FPGA

Hi all,

 

I am trying to implement 8th order Butterworth filter on FPGA (cRIO-9048; LV2021). There is Butterworth filter vi available on FPGA, but it can only go up to 4th order. 

 

Implementation on FPGA:

Butterworth Coefficient express vi generates coefficient array to send to FPGA. FPGA then use these coefficients to feed to Butterworth filer.vi

AshwiniWini_2-1718676364758.pngAshwiniWini_0-1718676320330.png

 

Implementation on RT:

Butterworth Filter.vi on RT uses Butterworth Coefficient.vi to get IIR filter Forward and Reverse fileted coefficients along with IIR order. Then feed these coefficients to IIT Filleter.

 

AshwiniWini_3-1718676514486.png AshwiniWini_4-1718676552454.png

 

Implementing 8th order on FPGA:

I tested both RT and FPGA filtering for 4th order and results are exactly same. Now I am trying to implement 8th order on FPGA by cascading 2 4th order filters, but results are not the same.

FPGA implementation:

AshwiniWini_5-1718676790255.png

Observations:

1. RT 8th order Filtering results:

AshwiniWini_6-1718676989456.png

2. FPGA 8th order Filtering results:

AshwiniWini_8-1718677126215.png

 

Does anyone know relationship of IIR Filter coefficients calculated on RT with Coefficients used by FPGA filter vi? is there any way to calculate FPGA scaled coefficients from RT's IIR filter coefficient?

 

AshwiniWini_0-1718680523714.png      AshwiniWini_1-1718680647218.png

 

 

I would really appreciate help, if anyone worked on this before or have any suggestion how can i implement 8th order filter on FGPA.

 

 

 

 

 

Thanks and Regards,
Ashwini A Pandit
Wired-in Software Pty Ltd
0 Kudos
Message 1 of 3
(353 Views)

To summarize what i am trying achieve:

  1. I am trying to implement 8th order Low Pass Butterworth Filter on FPGA
  2. Find out relation between FPGA filter VI's scaled coefficient with RT filter's forward and reverse coefficients
  3. How to implement filter from scratch on FPGA using 'Digital Filter Design Toolkit'. How much FPA resources will it use.
  4. Is there any 3rd party toolkit to implement higher order filter on FPGA.

Really appreciate any suggestion.

 

 

Thanks and Regards,
Ashwini A Pandit
Wired-in Software Pty Ltd
0 Kudos
Message 2 of 3
(284 Views)

Hi all,

 

Found some interesting NI posts by JLewis regarding FPGA Butterworth filter.

 

https://forums.ni.com/t5/LabVIEW/FPGA-Butterworth-filter-why-the-conversions-to-fixed-point/m-p/3331...

https://forums.ni.com/t5/LabVIEW/Butterworth-Filter-on-Labview-FPGA/m-p/3028813/highlight/false#M864...

Thanks and Regards,
Ashwini A Pandit
Wired-in Software Pty Ltd
0 Kudos
Message 3 of 3
(265 Views)