Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou can just use the to_stdlogicvector/to_stdlogic/to_bitvector/to_bit functions in the std_logic_1164 library.
The numeric_std library has sra and sla functions for unsigned and signed types, that you can convert to and from integer. signal s : signed(7 downto 0); .... s <= s sra 5; i <= to_integer(s);