176 lines
3.1 KiB
ReStructuredText
176 lines
3.1 KiB
ReStructuredText
.. include:: includes.rst
|
|
|
|
File Open Information Rules
|
|
---------------------------
|
|
|
|
file_open_information_100
|
|
#########################
|
|
|
|
|phase_2| |error| |whitespace|
|
|
|
|
This rule checks for a single space before the **open** keyword.
|
|
|
|
|configuring_whitespace_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
file_open_information_101
|
|
#########################
|
|
|
|
|phase_2| |error| |whitespace|
|
|
|
|
This rule checks for a single space after the **open** keyword.
|
|
|
|
|configuring_whitespace_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
file_open_information_102
|
|
#########################
|
|
|
|
|phase_2| |error| |whitespace|
|
|
|
|
This rule checks for a single space before the **is** keyword.
|
|
|
|
|configuring_whitespace_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
file_open_information_103
|
|
#########################
|
|
|
|
|phase_2| |error| |whitespace|
|
|
|
|
This rule checks for a single space after the **is** keyword.
|
|
|
|
|configuring_whitespace_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
file_open_information_500
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_keyword|
|
|
|
|
This rule checks the **open** keyword has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
file defaultImage : load_file_type OPEN read_mode is load_file_name;
|
|
|
|
begin
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
begin
|
|
|
|
file_open_information_501
|
|
#########################
|
|
|
|
|phase_6| |error| |case| |case_keyword|
|
|
|
|
This rule checks the file open kind expression has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
FILE defaultImage : load_file_type open READ_MODE is load_file_name;
|
|
|
|
begin
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
begin
|
|
|
|
file_open_information_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
|
|
|
|
architecture rtl of fifo is
|
|
|
|
file defaultimage : load_file_type open read_mode IS load_file_name;
|
|
|
|
begin
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
file defaultImage : load_file_type open read_mode is load_file_name;
|
|
|
|
begin
|