Forum Discussion
Altera_Forum
Honored Contributor
15 years agofloating point CI
Hello there, i´ve included the "floating point ci" in the Design, and tried to use it in the software. Current Code :
volatile float f, f1, f2, f3;
f1 = 1.9f;
f2 = 0.5f;
...
Altera_Forum
Honored Contributor
14 years agoI have the same problem here - consistant and WRONG values from each of the basic FP operations ONLY when the custom instruction is used. The results (as expected) are correct when the FP library is called instead. I followed the "Using NIOS II F-P Custom Instructions" Tutorial to update the SOPC and then applied the " -mcustom-fpu-cfg=60-2" flag for all of my compilation.
Sure would like to see what is wrong here; must be a common issue, eh? Thanks all!