0
\$\begingroup\$

I am trying to use the VHDL 2008 floating point libraries. When using the type conversion "to_float" is this converting to single precision or double precision?

Also, if there are any useful links or resources that talk about the floating point libraries in VHDL 2008 that would be a great help.

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

The second and third arguments of the three-argument form of to_float() are the exponent and fraction sizes. By passing appropriate values it is possible to generate either. The defaults are 8 and 23 respectively, which results in a float32.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.