Skip to main content
Roland Dorn
Associate
August 22, 2019
Question

Floating point emulation on DSP-L without floating point arithmetic

  • August 22, 2019
  • 5 replies
  • 2248 views

Hi,

i am currently analyzing the FIR filter example project.

Our DSP processor supports only integer numbers. Floating point arithmetic will not be supported.

"The SoftFloat library from John Hausser is used to emulate floating point operations

on a fixed point processor (www.jhauser.us/arithmetic/SoftFloat.htm). This library is only used in combination with the CHESS front end."

As I checked the example FIR implementation the cycle add function will be realized with fmadds. The assembly command fmadds dealing with two floating point number.

 (cyclic_add function is provided by DSP-L /
 
 ST. void* cyclic_add(T* p, int offs, T* start, int len)).

The example code is dealing with floating numbers and the floating point calculation will be emulated.

Why convert the compiler the cyclic add function to a floating point assembly command?

(See attached file.)

This topic has been closed for replies.

5 replies

Olivier GALLIEN
ST Technical Moderator
August 22, 2019

Hi @Roland Dorn​ 

In order your post reach the right people could you please clarify which STM32 chip you are using ?

Thx

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Roland Dorn
Associate
August 22, 2019

Hi Olivier,

it is about the STxP6016 integrated into (ST28) SR6P7x.

Ozone
Principal
August 22, 2019

At first glance, the assembly doesn't look like Thumb-II (Cortex M).

Kersten HEINS
Associate
August 22, 2019

We have notified our dedicated staff in Stuttgart/Munich who will respond to you asap.

cc: @Marian GORTOL​ , @Carsten SBICK​ , @Robert BOCK​ 

Roland Dorn
Associate
September 17, 2019

I am still waiting for an answer.