Forum Discussion
Altera_Forum
Honored Contributor
9 years agoif you use the floating point library in the IEEE library (which is part of the VHDL 2008 spec) then coverting to real is as simple as:
library ieee;
use ieee.std_logic_1164.all;
use ieee.float_lib.all;
....
signal a : std_logic_vector(31 downto 0);
signal r : real;
....
r <= bitstoreal(a);