"YesMann" <> wrote in message
news:...
[...]
> 3. case cycle is
[...]
> 7. WHEN "000011" to "011101" => REG <= "000000";
[...]
> The line 7 and 11 are considered as error : " Range must be a scalar
type".
> What can I specified the range "000011" to "011101" in VHDL language ?
You can't. However, you are using these values rather like numbers,
so it may be easier to convert them to integers for use in the case
statement:
case to_integer(cycle) is
...
when 3 to 29 => REG <= "000000";
...
Of course, the precise form of "to_integer" depends on what
numeric packages you are using, and the data type of "cycle".
If "cycle" is the output of a counter, and you have been
sensible and used ieee.numeric_std, and cycle is of type
UNSIGNED, then to_integer() is correct.
|