cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 - fastest IIR biquad impelementation in Assembler

koster
Associate III
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

2 REPLIES 2
stm322399
Senior
Posted on April 27, 2018 at 14:43

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

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
Up vote any posts that you find helpful, it shows what's working..