I want to use fphdl packages in order to convert floating point to integer in my vhdl code. However i cannot even compile the assignment that uses the related function to_integer . I always get error 'no feasible entries for subprogram to integer'
the function is declared as
function to_integer (
arg : UNRESOLVED_float; -- floating point input
constant round_style : round_type := float_round_style; -- rounding option
constant check_error : BOOLEAN := float_check_error) -- check for errors
return INTEGER;
i have tried to use it like :
library ieee;
use ieee.fixed_float_types.all;
use ieee.fixed_pkg.all;
use ieee.float_pkg.all;
......
test_sig<=to_integer(sig_name); or
test_sig<=to_integer(sig_name,round_zero,false);
but neither works
an help from someone who has used this package successfully?