Hi, any idea how can i convert from real to std_logic_vector and vise versa..??
V vivo_m Joined Feb 23, 2012 Messages 3 Reaction score 0 Feb 23, 2012 #1 Hi, any idea how can i convert from real to std_logic_vector and vise versa..??
J jeppe Joined Mar 10, 2008 Messages 348 Reaction score 0 Feb 23, 2012 #2 Hi Try typecast like integer1 := conv_integer( std_logic_vec1); real1 := real( integer1); integer2 := integer( real2); std_vec2 := conv_std_logic_vector( integer2, 16);
Hi Try typecast like integer1 := conv_integer( std_logic_vec1); real1 := real( integer1); integer2 := integer( real2); std_vec2 := conv_std_logic_vector( integer2, 16);