Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Does Altera FPGA already have a library for modules such as ln(x), cos(x), atan(x), sqrt(x), and 1/x etc? --- Quote End --- See http://www.altera.com/literature/ug/ug_altfp_mfug.pdf for a list of floating point operations you get "for free". Probably most of what you're looking for (a subset from <math.h>) is available. But as Dave, Tricky mentioned: floating vs. fixed, LUT vs. logic - there's different ways you can do it, but the above is what you can get "for free". Good luck.