Skip to main content
koster
Associate II
Apr 27, 2018 10:07 AM UTC
Question

STM32F4 - fastest IIR biquad impelementation in Assembler

Posted on April 27, 2018 at 12:07

Hi,

I need the fastest implementation of a biquad IIR filter for STM32F4 in assembler. I have to run more than 60 filters at 48kHz. My current best time are 24 cycles per filter with TDF2 (17 at STM32F7).

The order of the instructions is important, I noticed. Wrong instruction orders are penalized with a lot more computation time.

Hope there is an assembler freak with the same passion!

best regards

    This topic has been closed for replies.

    2 replies

    stm322399
    Senior
    Apr 27, 2018 12:43 PM UTC
    Posted on April 27, 2018 at 14:43

    Is the current code available from some public place ? github ?

    Tesla DeLorean
    Guru
    Apr 27, 2018 2:57 PM UTC
    Posted on April 27, 2018 at 16:57

    >>Wrong instruction orders are penalized with a lot more computation time.

    Best to avoid dependency chains as they put bubbles in the pipeline.. And have sequences that keep all execution units busy.

    >>Hope there is an assembler freak with the same passion!

    The STM32 forum is perhaps an overly narrow venue, perhaps you should discuss the assembler stuff at an ARM centric venue. DSP and Filters not really my passion.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..