# VHDL127: Only allowed attributes should be used ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
LOW--Intentionality | Logical20minsynthesis, vscode, linter
``` ## Description ```{raw} html

Related rules

Attributes usage is limited to a given set of authorized attributes. This rule raises an issue for any attribute other than:

This list can be changed through the allowedAttributes parameter.

Noncompliant code example

architecture rtl of top is
  type state_type is (Init, Hold, Strobe, Read, Idle);
  variable V: state_type := state_type’val(2); -- Noncompliant: "val" is not allowed
begin
end;

Compliant solution

architecture rtl of top is
  type bit_array is array (15 downto 0) of bit;
  variable my_var : integer := bit_array’left(bit_array’range); -- Compliant: "left" is allowed
begin
end;
``` ## Parameters ```{raw} html

Count: 1

ParameterValueDescription
allowedAttributesevent,high,left,length,low,range,rightComma-separated list of allowed attributes
``` ```{raw} html ```