Guest
Hi all
Modelsim does not accept such a line :
CONSTANT version_number : std_logic_vector (7 downto 0) := X"0F";
Is this legal VHDL? Leonardo does accept it.
Modelsim says "Type error in bit string literal. Type std_logic_vector is not
an array of bit."
The only way I know so far to prevent this error is to write:
CONSTANT version_number : std_logic_vector (7 downto 0) :="00001111";
Which is possible here for only an 8-bit constant, but it gets truly
unreadable for a 32- bit constant.
How should I write this ?
Thanks
Roman
Modelsim does not accept such a line :
CONSTANT version_number : std_logic_vector (7 downto 0) := X"0F";
Is this legal VHDL? Leonardo does accept it.
Modelsim says "Type error in bit string literal. Type std_logic_vector is not
an array of bit."
The only way I know so far to prevent this error is to write:
CONSTANT version_number : std_logic_vector (7 downto 0) :="00001111";
Which is possible here for only an 8-bit constant, but it gets truly
unreadable for a 32- bit constant.
How should I write this ?
Thanks
Roman