I have a signal dataIn : std_logic_vector ( 15 downto 0);
I want to give an input less than 16-bits for example dataIn <= x"000a" and those bits occupy the most significant bits and the rest to be zero.
In verilog you can do that very easy but in VHDL you get the error:
"string length does not match that of the anonymous integer subtype defined t... ".
I know that if you use 16x"bit_string" solves the problem but this is only for VHDL-2008 and ghdl doesn't support yet VHDL-2008.
Are there any method for IEEE Std 1076-2002?
--std=08command line switch. - mfrodataIn <= x"000a"supplies a simple signal assignment waveform expression that has a length of 16. E.g. IEEE Std 1076-2002 13.7 Bit string literals "If the base specifier is 'O' (respectively 'X'), the value of the bit string literal is the sequence obtained by replacing each extended digit in the bit_value by a sequence consisting of the three (respectively four) values representing that extended digit taken from the character literals '0' and '1';..." (which is easier to read for your purposes than -2008 15.8 Bit string literals, expanded bit value). Try a different example. - user1155120