There are rules which will check for invalid package names in library and use clauses. These rules are disabled by default and must be enabled before they will perform any checks.
There is one option for these rules:
| Option | Values | Default | Description |
|---|---|---|---|
names |
List of strings | std_logic_arith for use_clause_001. None for library_012 |
|
This is an example of how to configure the option.
rule :
library_012:
names:
- "work"
- "std_logic_arith"Note
All examples below are using the rule use_clause_001.
The following code would fail with this option:
library ieee;
use ieee.std_logic_arith.all;The following code would fail three times with this option:
library ieee;
use ieee.std_logic_arith.all;
library work;
use work.my_package.all;