Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

float_pkg help required

$
0
0
Hi folks,

I want to use the float_pkg in my vhdl code to convert an integer to float (1 sign, 8 exp, 23 mantissa) to pass a value onto one of the float megafunctions provided by altera! However i cant seem to work out which libraries I need to include.

I did some reading on the web and have got some stuff for VHDL '93 (float_pkg, fixed_pkg and fixed_float_types vhdl code) and have them compiled into the suggested ieee_proposed library and that seem to be ok for now. BUT...

I thought these packages were now part of the numeric.std library and therefore I shouldnt need to use the VHDL 93 method for float calculations/conversions. If I use the VHDL '93 stuff will modelsim complain at me when I come to simulate, or would I be better off using a VHDL 2008 version, and if so how?

Somewhat confused I am!

Many thanks
D

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>