How to speed up float computing

Hi all, I am doing some programmes with EDK 6.3i on the Virtex-II Pro50. There are many math computing in the program, and I do them using the software libs provided by the board, as a result, it is very very slow that we could not endure. So I would like to know the effective and simple method to speed up the float computing. Please help me. Thank you very much.

Reply to
lina
Loading thread data ...

Get EDK 7.1, which has support for h/w floating point.

Reply to
Jon Beniston

Thank you very much for your answer! We will try it.

Reply to
lina

Hi Lina,

Just to clarify - this is almost but not quite true. If your code is running on MicroBlaze, then the new EDK does indeed include support for a floating-point unit in the FPGA fabric. If you are using the PowerPC (and since you're using V2-Pro, I suspect you probably are), then it doesn't.

I can suggest a few options:

1) Use a Microblaze core with FPU, either for your whole application or to accelerate those algorithms which use floating point arithmetic; 2) Get a PowerPC floating-point unit, for example:

formatting link
ca_fpu_ppc.html

3) Consider moving to Virtex-4 FX, which will soon have a PowerPC floating-point unit available.

Hope this helps,

-Ben-

Reply to
Ben Jones

Hi Lina

I was also experiencing the same problems. Infact the computation was taking such a long time. At the end what we did was rewrite the whole program with very less computations. For example use "register" variables/keywords , compute commonly used variables before hand and so on and at the end we got a satisfactory computational speed. One more hint: Put the instructions in the ISOCM memory and dont use any Instruction side cache memory !! The results which I got were more than 10 times better :) Joe

"lina" schrieb im Newsbeitrag news: snipped-for-privacy@webx.sUNCHnE...

There are many math computing in the program, and I do them using the software libs provided by the board, as a result, it is very very slow that we could not endure. So I would like to know the effective and simple method to speed up the float computing. Please help me. Thank you very much.

Reply to
Joey

With GCC there should be no need for this. Was you compiling with optimisation switched on (-O2)?

Cheers, Jon

Reply to
Jon Beniston

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.