I have the following code:
constant HALF_RANGE: unsigned(RANGE_WIDTH-1 downto 0) := (RANGE_WIDTH-1 => '1', others=>'0');
where RANGE_WIDTH is a generic of type integer. It does exactly what is should: Generate a constant where the first bit is 1 and the others 0. The only problem is: It generates a waring using Questa Sim:
(vcom-1073) Non-locally static choice (association #1, choice #1) is allowed only if it is the only choice of the only association.
What does this warning mean? What would be the right way to define such a constant?