Forum Discussion
Altera_Forum
Honored Contributor
18 years agosfixed to standard logic vector
is it possible to have sfixed converted to standard logic vector? if yes..how?? i need to use sfixed because the input data are all fractional real number. and the input need to be map to the r...
Altera_Forum
Honored Contributor
18 years agoyeah im using IEEE.fixed_pkg so is the following correct??
signal out: sfixed(3 downto -12); signal outS : std_logic_vector (15 downto 0); out <= obtain_Yn_real(1); outS <= to_StdLogicVector(out, 16);