how to use FPU with EDK7.1i

Hi All,

I used EDK7.1i to do some projects(Microblaze core), in the projects there are many floating point computing, so I want to use FPU in EDK7.1 to speed up. However, there are some mistakes of the results, so I would like to know

(1)how to use the FPU step by step?

(2)should I have to set some parameters in order to use FPU?

(3)should I add #include "stdlib.h" #include "math.h" .... or other .h files in my programmes to do the floating point?

Thank you!

Lina

Reply to
Lina
Loading thread data ...

many floating point computing, so I want to use FPU in EDK7.1 to speed up. However, there are some mistakes of the results, so I would like to know

Set the C_USE_FPU to 1 for MicroBlaze, either directly in the .mhs file or using the GUI under "add/edit cores" button in XPS. The compiler will start to use the new FPU instructions due to this parameter setting.

See above

in my programmes to do the floating point? yes. That is how the C language is doing it.

Göran

Reply to
Göran Bilski

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.