May 17, 2016 #1 2 214 Junior Member level 2 Joined Feb 22, 2016 Messages 21 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 247 i want to convert sfixed number (12 down to -8) to std_logic_vector.... what could be the possible command for use ?
i want to convert sfixed number (12 down to -8) to std_logic_vector.... what could be the possible command for use ?
May 17, 2016 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 there is a to_slv function: Code: signal my_sfixed : sfixed(12 downto -8); signal my_slv : std_logic_vector(20 downto 0); my_slv <= to_slv(my_sfixed);
there is a to_slv function: Code: signal my_sfixed : sfixed(12 downto -8); signal my_slv : std_logic_vector(20 downto 0); my_slv <= to_slv(my_sfixed);