110 lines
1.8 KiB
ReStructuredText
110 lines
1.8 KiB
ReStructuredText
.. include:: includes.rst
|
|
|
|
Package Instantiation Rules
|
|
---------------------------
|
|
|
|
package_instantiation_500
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_keyword|
|
|
|
|
This rule checks the package keyword has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
PACKAGE my_pkg is new my_generic_pkg
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new my_generic_pkg
|
|
|
|
package_instantiation_501
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_name|
|
|
|
|
This rule checks the instantiated package name has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package MY_PKG is new my_generic_pkg
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new my_generic_pkg
|
|
|
|
package_instantiation_502
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_keyword|
|
|
|
|
This rule checks the **is** keyword has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg IS new my_generic_pkg
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new my_generic_pkg
|
|
|
|
package_instantiation_503
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_keyword|
|
|
|
|
This rule checks the **new** keyword has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is NEW my_generic_pkg
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new my_generic_pkg
|
|
|
|
package_instantiation_504
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_name|
|
|
|
|
This rule checks the uninstantiated package name has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new MY_GENERIC_PKG
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
package my_pkg is new my_generic_pkg
|