Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 2.14 KB

File metadata and controls

70 lines (45 loc) · 2.14 KB

Configuring Library and Package Name Restriction Rules

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
  • Search for libraries and packages with the user defined names

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.

Example: names set to list ["std_logic_arith"]

The following code would fail with this option:

library ieee;
  use ieee.std_logic_arith.all;

Example: names set to ["std_logic_arith", "my_package"]

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;

Rules Enforcing Valid Names