Forum Discussion
Altera_Forum
Honored Contributor
18 years agoYou can go into the megawizard and select the altfp_add_sub, altfp_div, or altfp_mult megafunction to do your floating point. I believe they let you select the floating point format. For example, if your c/c++ was using float, choose single precision. If your c/c++ was using double, choose double precision.
Be careful with floating point. It produces MUCH larger and MUCH slower circuits than a fixed point. Most people go out of their way to avoid it. Good luck with your project.