Forum Discussion
Altera_Forum
Honored Contributor
10 years agoresizing sfixed number
i want to resize a sfixed number of size(9 downto -6) to sfixed/signed of size (9 downto 0): here's the code: library IEEE; use IEEE.STD_LOGIC_1164.ALL; library ieee_proposed; use...
Altera_Forum
Honored Contributor
10 years agoWhats wrong with just using the resize function?
signal kk : sfixed(9 downto 0); kk <= resize(k, kk ); or to convert to signed kk <= to_signed(k, kk'length);