![]() |
|
|
This LabVIEW FPGA IP produces a moving average of the last 2^N points.
This LabVIEW FPGA IP produces a moving average of the last 2N points. It is a point-by-point streaming calculation that uses local FIFOs to store the past 2N points. The FIFO size should be set to accomodate the window size.There is also a data valid output that goes high after 2^N iterations. This subVI will work inside a single-cycle timed loop.A version of this with a reset input is coming soon.
bug
the test case that I ran on this code shows that the results are not correct. it appears thst the initial condition of the feedback node for count should be 0 and not 1. Also the summed value can overflow. The intermediate value should be I32 assuming the n is less las 15   ;