Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou need to use double quotes, " for a string.
constant preamble : STD_LOGIC_VECTOR (55 DOWNTO 0) := x"55555555555555"; Also, this is just a hex string, not a decimal integer. a std_logic_vector is not an integer, it is a collection of bits. To assign it from an integer, you need to convert it via the numeric_std package constant preamble : STD_LOGIC_VECTOR (55 DOWNTO 0) := std_logic_vector( to_unsigned( 555555, 56 ) );