Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Moving average with FIR megacore.

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.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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)