I have a 2 D matrix where each element should be 64 bit std_logic_vector.
Now I want to store certain values into the matrix as shown in the below manner. How do I do that?
For example:
type a is array (0 to 10,0 to 10) of std_logic_vector(63 downto 0);
signal a1: a;
a1(0,0) <= std_logic_vector( to_float64(12.23) );
Basically I dont know how to convert float64 to std_logic_vector.
I am using float_pkg library from ieee_proposed.
Why not do:
Then there’s no conversion.
In terms of conversions, the
to_floatfunction requires a type to know how to format therealinput:If you must have a std_logic_vector, you can use
to_std_logic_vectorfrom the package (aliased toto_slv):