cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
5,773 Views
Registered: ‎07-02-2014

Xilinx MicroBlaze Floating Point Compatibility

I have a 'c' code targeted to a MicroBlaze CPU.
When I debug the code as c program in Eclipse + GCC or Visual Studio I get the results I want.
Yet when I run on the target the result are different.

It happens only on floating point operations (Multiplication and Division).

How can I make it work with full floating point precision?

Are there special GCC flags?
0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
5,751 Views
Registered: ‎08-02-2007

Re: Xilinx MicroBlaze Floating Point Compatibility

Hi,

 

SDK should be able to set the compiler settings automatically.

 

However i remember there is a stack requirement as mentioned here. http://www.xilinx.com/support/answers/29787.html

 

Refer to the snapshot as attached here

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
Capture.PNG
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
5,748 Views
Registered: ‎08-06-2007

Re: Xilinx MicroBlaze Floating Point Compatibility

Hi,

 

MicroBlaze is doing a subset of IEEE754 (denormalized numbers are consider to be zero).

 

What is the difference that you see?

 

Göran

0 Kudos