Forum Discussion
Altera_Forum
Honored Contributor
11 years agoDecimal point arithmetic
Hi, I am trying to do some math involving degrees for my program. I have two values A and B, both 8 bit Std_logic_vector. I need to calculate the angle given by arctan(B/A). Since this is a very expe...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Hi, this seems like the best way to go ahead for this! The page says it bridges the gap between VHDL-93 and VHDL-2008. If i directly use VHDL-2008 is there native support for fixed point already in the language? Would you be able to tell me how i can include this package in my quartus project when i compile? If i try to download the file and include it in my project i get an error saying library IEEE does not contain primary unit "fixed_pkg" --- Quote End --- The compatability package makes the package that was created for the 2008 revision of the language work (mostly) in tools that only support '93. Quartus 2008 support is rather limited, so you still need the compatability package even if you turned the compile option to 2008. The easiest thing to do is just include the files and either hand edit everything to the work library, or modify your scripts to put the package in the IEEE library. IIRC, the code on that link works around an IEEE-proposed library?