The VHDL Language Reference Manual (LRM) has a section listed reserved words. The use of these words are restricted in identifiers and names.
There are rules which can check for use of reserved words where they should not be used. These rules provide the following options:
Option | Values | Default Value | Description |
---|---|---|---|
standard |
1987 , 1993 , 2000 , 2002 , 2008 |
all |
|
This is an example of how to configure these options.
rule :
reserved_001:
standard: 'all'
Note
The following examples are using rule reserved_001.
The null
keyword is a reserved word in the 1987 standard.
Violation
entity null is end entity;
The rol
keyword is a reserved word in the 1993 standard.
Violation
entity rol is end entity;
The context
keyword is a reserved word in the 2008 standard.
Violation
entity context is end entity;