# VHDL1064: Choices outside of range should be removed ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Intentionality | Logical30minsynthesis, bug-finder, do254-ss2, do254, linty-ultra
``` ## Description ```{raw} html

Noncompliant code example

X : in integer range 7 downto 0;
...
case X is
  when 0 =>
    Z <= A;
  when 1 to 8 => -- Noncompliant: '8' is outside of range 7 downto 0
    Z <= B;
end case;

Compliant solution

X : in integer range 7 downto 0;
...
case X is
  when 0 =>
    Z <= A;
  when 1 to 7 =>
    Z <= B;
end case;

Choices outside of range are useless and should be removed.

``` ## Parameters No parameters. ```{raw} html ```