Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- std_logic_vector type does not match integer literal --- Quote End --- That's true according to VHDL specification. Unless you apply a type conversion, std_logic_vector can be only assigned to a bit string literal of correct bit length, e.g.constant preamble : STD_LOGIC_VECTOR (31 DOWNTO 0) := x"00000055"; - Altera_Forum
Honored Contributor
success
For hex number 16## <- this wrong x"" <- this correct - Altera_Forum
Honored Contributor
x"012345" is a hex string. It is not an integer.
- Altera_Forum
Honored Contributor
i got it, so that i write for hex number, in the another post, i thought it as an integer