UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Newbie royi
Newbie
5,631 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
Xilinx Employee
Xilinx Employee
5,609 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
Xilinx Employee
Xilinx Employee
5,606 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