Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

Moving average with FIR megacore.

Altera_Forum
Honored Contributor II
1,149 Views

Hi can any one give me any direction how to use the FIR megacore to calculate a moving average. 

 

I been playing around with it and don't relly understand it. Also can someone exoplain the ports into the block diagram. 

 

Thank you in advance.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
413 Views

Since a 3-point moving average filter is simply (t1 + t2 + t3)/3. 

 

Your coefficient set would be: 

 

Time . . Coeff. 

1. . . . 0.33333 

2. . . . 0.33333 

3. . . . 0.33333 

 

 

You can create a text file with the coefficients and import it into the megawizard (edit coefficient set, bottom of the window there is a radio button for import from file) 

 

 

 

 

(edit - sorry, I'm having a heck of a time making the table look like a table)
0 Kudos
Reply