Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIf you added your code to this post that would be useful.
Also if you are just calculating square root you might find it handy to integrate it as a custom instruction instead. You can instruct the compiler that the hardware is present by compiling with the -mcustom-fsins=N flag where "N" is the custom instruction number you assigned when adding it to the system. When you call "sqrt()" from math.h it'll target your hardware instead of a software library. Here are more details: http://www.alterawiki.com/wiki/single-precision_-mcustom-*_options