how to use FPU with EDK7.1i

Jun 06, 2005 1 Replies

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


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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required