diff --git a/.codespell-ignore b/.codespell-ignore new file mode 100644 index 00000000..83b6b8bc --- /dev/null +++ b/.codespell-ignore @@ -0,0 +1,8 @@ +dentity +din +dout +elemente +inout +leary +synopsys +toi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63159adb..939a4423 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,8 +56,10 @@ repos: - repo: https://github.com/codespell-project/codespell rev: v2.2.6 - hooks: [] - #- id: codespell + hooks: + - id: codespell + args: + - -I.codespell-ignore - repo: https://github.com/PyCQA/flake8 rev: 7.0.0 diff --git a/MANIFEST.in b/MANIFEST.in index b6d9c842..b6b79f48 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ exclude setup.cfg include *.properties +include .codespell-ignore include .flake8 include .gitattributes include .gitignore diff --git a/docs/attribute_rules.rst b/docs/attribute_rules.rst index 7e3ce755..9350df3d 100644 --- a/docs/attribute_rules.rst +++ b/docs/attribute_rules.rst @@ -6,7 +6,7 @@ Attribute Rules attribute_001 ############# -This rule has been superceeded by: +This rule has been superseded by: * `attribute_declaration_300 `_ * `attribute_specification_300 `_ @@ -14,7 +14,7 @@ This rule has been superceeded by: attribute_002 ############# -This rule has been superceeded by: +This rule has been superseded by: * `attribute_declaration_500 `_ * `attribute_specification_500 `_ diff --git a/docs/comment_rules.rst b/docs/comment_rules.rst index a74fe69c..3f571f23 100644 --- a/docs/comment_rules.rst +++ b/docs/comment_rules.rst @@ -38,7 +38,7 @@ This rule checks the indent lines starting with comments. .. code-block:: vhdl -- Libraries - libary ieee; + library ieee; -- Define architecture architecture rtl of fifo is @@ -54,7 +54,7 @@ This rule checks the indent lines starting with comments. .. code-block:: vhdl -- Libraries - libary ieee; + library ieee; -- Define architecture architecture rtl of fifo is diff --git a/docs/component_rules.rst b/docs/component_rules.rst index a7efc7d1..f2451c91 100644 --- a/docs/component_rules.rst +++ b/docs/component_rules.rst @@ -433,7 +433,7 @@ component_019 |phase_1| |error| |structure| This rule checks for comments at the end of the port and generic clauses in component declarations. -These comments represent additional maintainence. +These comments represent additional maintenance. They will be out of sync with the entity at some point. Refer to the entity for port types, port directions and purpose. diff --git a/docs/concurrent_rules.rst b/docs/concurrent_rules.rst index f8032c7a..ff952fbd 100644 --- a/docs/concurrent_rules.rst +++ b/docs/concurrent_rules.rst @@ -59,7 +59,7 @@ concurrent_003 |phase_5| |error| |alignment| This rule checks alignment of multiline concurrent simple signal assignments. -Succesive lines should align to the space after the assignment operator. +Successive lines should align to the space after the assignment operator. However, there is a special case if there are parenthesis in the assignment. If the parenthesis are not closed on the same line, then the next line will be aligned to the parenthesis. Aligning to the parenthesis improves readability. diff --git a/docs/configuring_indentation.rst b/docs/configuring_indentation.rst index 0fe9fc05..68b6fab9 100644 --- a/docs/configuring_indentation.rst +++ b/docs/configuring_indentation.rst @@ -5,7 +5,7 @@ Configuring Indentation ----------------------- VSG follows a predefined set of rules when indenting VHDL code. -The indenting alogrithm is driven by a YAML file. +The indenting algorithm is driven by a YAML file. The indent values feeding the algorithm can be obtained by using the **-oc** command line argument. There will be a section starting with **indent**. diff --git a/docs/configuring_length_rules.rst b/docs/configuring_length_rules.rst index c47ddcf0..c66f3996 100644 --- a/docs/configuring_length_rules.rst +++ b/docs/configuring_length_rules.rst @@ -22,7 +22,7 @@ Use the following configuration to change the line length to 180. length_001 : length : 180 -Overridding File Line Length +Overriding File Line Length ############################ Limiting the length of a VHDL file can improve readability. @@ -37,7 +37,7 @@ Use the following configuration to change the file length to 5000. length_002 : length : 5000 -Overridding Process Line Length +Overriding Process Line Length ############################### Limiting the length of a VHDL processes can improve readability. diff --git a/docs/configuring_port_mode_alignment.rst b/docs/configuring_port_mode_alignment.rst index ee2ecad3..42988dbf 100644 --- a/docs/configuring_port_mode_alignment.rst +++ b/docs/configuring_port_mode_alignment.rst @@ -93,7 +93,7 @@ would result in the following format being enforced: O_OUTPUT : out std_logic; IO_INOUT : inout std_logic; -Rules Enforcing Aligment +Rules Enforcing Alignment ######################## * `port_007 `_ diff --git a/docs/configuring_pragmas.rst b/docs/configuring_pragmas.rst index e573bf5a..2b3ff8b8 100644 --- a/docs/configuring_pragmas.rst +++ b/docs/configuring_pragmas.rst @@ -5,7 +5,7 @@ Configuring Pragmas ------------------- Pragmas are comments with meta data used by various vendors. -These pragmas communicate information which can change how vendor tools interprate code. +These pragmas communicate information which can change how vendor tools interpret code. There does not appear to be a standard for defining pragmas. This presents a challenge to detecting them across all vendor tools. diff --git a/docs/configuring_simple_multiline_structure_rules.rst b/docs/configuring_simple_multiline_structure_rules.rst index 6a9128b7..2be5850b 100644 --- a/docs/configuring_simple_multiline_structure_rules.rst +++ b/docs/configuring_simple_multiline_structure_rules.rst @@ -7,10 +7,10 @@ Configuring Simple Multiline Structure Rules :code:`new_line_after_assign` .. |new_line_after_assign__yes| replace:: - :code:`yes` = Adds a carriage return (alias "new line") after the assigment operator. + :code:`yes` = Adds a carriage return (alias "new line") after the assignment operator. .. |new_line_after_assign__no| replace:: - :code:`no` = Removes a carriage return (alias "new line") after the assigment operator. + :code:`no` = Removes a carriage return (alias "new line") after the assignment operator. .. |new_line_after_assign__ignore| replace:: :code:`ignore` = Ignores any formatting after the assignment operator. diff --git a/docs/constant_rules.rst b/docs/constant_rules.rst index 6c024da5..91b0fdce 100644 --- a/docs/constant_rules.rst +++ b/docs/constant_rules.rst @@ -173,7 +173,7 @@ Having a space makes it clearer where the assignment occurs on the line. constant_011 ############ -The function of this rule has been superceeded by the following rules: +The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 diff --git a/docs/continuous_integration_servers.rst b/docs/continuous_integration_servers.rst index 36dcb8d4..a29d58ba 100644 --- a/docs/continuous_integration_servers.rst +++ b/docs/continuous_integration_servers.rst @@ -17,7 +17,7 @@ JUnit Report VSG can generate a report of an analysis in JUnit XML format. This report will include the filename along with any errors detected. -The rule which was violated, the line number where the violation occured, and the proposed solution are provided. +The rule which was violated, the line number where the violation occurred, and the proposed solution are provided. This report can be used in most CI server applications to create a test report. Refer to the documentation of your CI server application for how to integrate the JUnit report. @@ -62,7 +62,7 @@ The following items in the spec are populated. A relative path to the file with code quality issues. .. |location_lines_begin| replace:: - The line number where the code quality issue occured. + The line number where the code quality issue occurred. +----------------------+------------------------+ | Code Climate Spec | Description | diff --git a/docs/editor_integration/vim.rst b/docs/editor_integration/vim.rst index e1008ff8..26101191 100644 --- a/docs/editor_integration/vim.rst +++ b/docs/editor_integration/vim.rst @@ -104,7 +104,7 @@ This works by taking the current buffer's contents and passing it into the stand groups = { 'severity', 'row', 'code', 'message' }, overrides = { severities = { - -- 2 is for warnings, nvim showing as an erorr can be obnoxious. Change if desired + -- 2 is for warnings, nvim showing as an error can be obnoxious. Change if desired ["ERROR"] = 2, ["WARNING"] = 3, ["INFORMATION"] = 3, diff --git a/docs/formatting_terminal_output.rst b/docs/formatting_terminal_output.rst index 0b538558..0947a914 100644 --- a/docs/formatting_terminal_output.rst +++ b/docs/formatting_terminal_output.rst @@ -78,7 +78,7 @@ Where: +--------------+---------------------------------------------------------------+ | filename | The file being analyzed. | +--------------+---------------------------------------------------------------+ -| line_number | The line number the violation occured. | +| line_number | The line number the violation occurred. | +--------------+---------------------------------------------------------------+ | rule | The rule id that detected the violation | +--------------+---------------------------------------------------------------+ diff --git a/docs/instantiation_rules.rst b/docs/instantiation_rules.rst index 7717dcf0..d3d82ee5 100644 --- a/docs/instantiation_rules.rst +++ b/docs/instantiation_rules.rst @@ -404,7 +404,7 @@ Following extra configurations are supported: .. code-block:: vhdl - wr_en => write_enable, -- Wrte enable + wr_en => write_enable, -- Write enable rd_en => read_enable, -- Read enable overflow => overflow, -- FIFO has overflowed @@ -412,7 +412,7 @@ Following extra configurations are supported: .. code-block:: vhdl - wr_en => write_enable, -- Wrte enable + wr_en => write_enable, -- Write enable rd_en => read_enable, -- Read enable overflow => overflow, -- FIFO has overflowed diff --git a/docs/localizing.rst b/docs/localizing.rst index 8301657d..70d222d1 100644 --- a/docs/localizing.rst +++ b/docs/localizing.rst @@ -144,7 +144,7 @@ We also need to provide a solution to the user so they will know how to fix the self.fixable = False # User must split the file - self.solution = 'Split entity and architecture into seperate files.' + self.solution = 'Split entity and architecture into separate files.' def analyze(self, oFile): if oFile.hasEntity and oFile.hasArchitecture: @@ -164,7 +164,7 @@ Finally, we need to add a code tag check so the rule can be disabled via comment self.name = 'localized' self.phase = 1 self.fixable = False # User must split the file - self.solution = 'Split entity and architecture into seperate files.' + self.solution = 'Split entity and architecture into separate files.' def analyze(self, oFile): if not self.is_vsg_off(oLine): @@ -190,7 +190,7 @@ When we want to run with localized rules, use the **--local_rules** option. File: RAM.vhd ============== Phase 1... Reporting - localized_001 | 1 | Split entity and architecture into seperate files. + localized_001 | 1 | Split entity and architecture into separate files. Phase 2... Not executed Phase 3... Not executed Phase 4... Not executed @@ -513,7 +513,7 @@ Use this to create the initial violation and add to it as necessary. The **get_violation_line_number** will return the lines['number'] attribute of the violation. Use this function to abstract away the line number from the underlying data structure. -The **get_violating_line** will return a line object at the line the violation occured. +The **get_violating_line** will return a line object at the line the violation occurred. This is easier than manually indexing into the oFile list to pull out a line. Rule creation guidelines diff --git a/docs/port_map_rules.rst b/docs/port_map_rules.rst index 7a8d7e47..7d3cd34f 100644 --- a/docs/port_map_rules.rst +++ b/docs/port_map_rules.rst @@ -229,7 +229,7 @@ port_map_010 |phase_1| |error| |structure| This rule checks for comments at the end of the port and generic assignments in instantiations. -These comments represent additional maintainence. +These comments represent additional maintenance. They will be out of sync with the entity at some point. Refer to the entity for port types, port directions and purpose. diff --git a/docs/procedure_call_rules.rst b/docs/procedure_call_rules.rst index d86a189b..fe6e71a5 100644 --- a/docs/procedure_call_rules.rst +++ b/docs/procedure_call_rules.rst @@ -265,13 +265,13 @@ This rule checks the label has proper case. .. code-block:: vhdl - PROCEDURE_CALL_LABEL : WR_EN(paremeter); + PROCEDURE_CALL_LABEL : WR_EN(parameter); **Fix** .. code-block:: vhdl - procedure_call_label : WR_EN(paremeter); + procedure_call_label : WR_EN(parameter); procedure_call_501 ################## diff --git a/docs/procedure_rules.rst b/docs/procedure_rules.rst index 5cdf33ae..bff798aa 100644 --- a/docs/procedure_rules.rst +++ b/docs/procedure_rules.rst @@ -543,7 +543,7 @@ This rule checks the alignment of **:=** operator for each parameter in the proc procedure_412 ############# -This rule has been superceeded by rule `architecture_027 `_. +This rule has been superseded by rule `architecture_027 `_. procedure_500 ############# diff --git a/docs/rules.rst b/docs/rules.rst index 059b777b..b864ef52 100644 --- a/docs/rules.rst +++ b/docs/rules.rst @@ -1,7 +1,7 @@ Rules ===== -The rules are divided into catagories depending on the part of the VHDL code being operated on. +The rules are divided into categories depending on the part of the VHDL code being operated on. .. toctree:: :maxdepth: 2 diff --git a/docs/signal_rules.rst b/docs/signal_rules.rst index bd8f77c7..ceb66fb6 100644 --- a/docs/signal_rules.rst +++ b/docs/signal_rules.rst @@ -183,7 +183,7 @@ The function of this rule has been moved to rule ieee_500. signal_011 ########## -The function of this rule has been superceeded by the following rules: +The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 diff --git a/docs/source_file_rules.rst b/docs/source_file_rules.rst index 622935ef..0bb28303 100644 --- a/docs/source_file_rules.rst +++ b/docs/source_file_rules.rst @@ -8,7 +8,7 @@ source_file_001 |phase_1| |error| |structure| -This rule checks for the existance of the source file passed to VSG. +This rule checks for the existence of the source file passed to VSG. **Violation** diff --git a/docs/theory_of_operation/classifying.rst b/docs/theory_of_operation/classifying.rst index ad228721..691935c4 100644 --- a/docs/theory_of_operation/classifying.rst +++ b/docs/theory_of_operation/classifying.rst @@ -112,7 +112,7 @@ The classification of the opening portion of the production, from **architecture After the **is** keyword, the detect function of the architecture_declarative_part is called to check if there is anything in that production. If there are no more items in the architecture_declarative_part, then the begin keyword is classified. After the **begin** keyword, the detect function of the architecture_statement_part is called to check if there is anything in that production. -If there are no more itmes in the architecture_statement_part, then the closing portion of the production, from **end** to the semicolon, is handled by the classify_closing_declaration function. +If there are no more items in the architecture_statement_part, then the closing portion of the production, from **end** to the semicolon, is handled by the classify_closing_declaration function. The recursive nature is implemented by calling other productions and then those productions returning to the caller. diff --git a/docs/theory_of_operation/rule_selection.rst b/docs/theory_of_operation/rule_selection.rst index 1bafc826..c615b034 100644 --- a/docs/theory_of_operation/rule_selection.rst +++ b/docs/theory_of_operation/rule_selection.rst @@ -64,7 +64,7 @@ Everything else is another production: -Rules targetting the :code:`architecture_body` will only include those elements at that level of the production. +Rules targeting the :code:`architecture_body` will only include those elements at that level of the production. For example: @@ -194,7 +194,7 @@ The following rules would be generated: * signal_declaration_400 = indent of signal keyword * signal_declaration_600 = case of signal keyword -* signal_declaration_601 = case of idenfiers in identifier_list +* signal_declaration_601 = case of identifiers in identifier_list * signal_declaration_700 = naming restrictions on signal identifiers diff --git a/docs/tool_integration/generic.rst b/docs/tool_integration/generic.rst index eada19c1..b182f43c 100644 --- a/docs/tool_integration/generic.rst +++ b/docs/tool_integration/generic.rst @@ -17,7 +17,7 @@ VSG supports integration with other tools via several command line options. VSG has a concept of phases, where violations in one phase should be addressed before moving to the next phase. The **--all_phases** option will run an analysis over all the phases. -It will not stop if a violation has occured. +It will not stop if a violation has occurred. This option can be useful when integrating VSG into an editor that supports linters. It is important to note there are dependencies between some rules. diff --git a/docs/usage.rst b/docs/usage.rst index f87c5b1c..b1c3f728 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -141,7 +141,7 @@ The command line tool can be invoked with: | | default is the number of cores available. | +-------------------------------+-------------------------------------------------+ | --debug | Print verbose debug information to assist with | -| | debuging errors with VSG. | +| | debugging errors with VSG. | +-------------------------------+-------------------------------------------------+ @@ -167,7 +167,7 @@ Here is an example output running against a test file: ----------------------------+------------+-------------------------------------- NOTE: Refer to online documentation at https://vhdl-style-guide.readthedocs.io/en/latest/index.html for more information. -VSG will report the rule which is violated and the line number or group of lines where the violation occured. +VSG will report the rule which is violated and the line number or group of lines where the violation occurred. It also gives a suggestion on how to fix the violation. The rules VSG uses are grouped together into :doc:`phases`. These phases follow the order in which the user would take to address the violations. diff --git a/docs/variable_rules.rst b/docs/variable_rules.rst index 9cd0f3d5..3c581d4d 100644 --- a/docs/variable_rules.rst +++ b/docs/variable_rules.rst @@ -152,7 +152,7 @@ This rule checks for default assignments in variable declarations. variable_010 ############ -The function of this rule has been superceeded by the following rules: +The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 diff --git a/docs/when_rules.rst b/docs/when_rules.rst index a87359fc..c6c33b05 100644 --- a/docs/when_rules.rst +++ b/docs/when_rules.rst @@ -11,7 +11,7 @@ when_001 |phase_1| |error| |structure| This rule checks the **else** keyword is not at the beginning of a line. -The else should be at the end of the preceeding line. +The else should be at the end of the preceding line. **Violation** diff --git a/tests/block/rule_201_test_input.fixed_no_blank_line.vhd b/tests/block/rule_201_test_input.fixed_no_blank_line.vhd index 1e547ca8..dfe0b361 100644 --- a/tests/block/rule_201_test_input.fixed_no_blank_line.vhd +++ b/tests/block/rule_201_test_input.fixed_no_blank_line.vhd @@ -3,7 +3,7 @@ architecture RTL of FIFO is begin - -- With no optional paramenters + -- With no optional parameters BLOCK_LABEL : block begin end block; diff --git a/tests/block/rule_201_test_input.fixed_require_blank_line.vhd b/tests/block/rule_201_test_input.fixed_require_blank_line.vhd index c81699a3..108651f9 100644 --- a/tests/block/rule_201_test_input.fixed_require_blank_line.vhd +++ b/tests/block/rule_201_test_input.fixed_require_blank_line.vhd @@ -3,7 +3,7 @@ architecture RTL of FIFO is begin - -- With no optional paramenters + -- With no optional parameters BLOCK_LABEL : block begin end block; diff --git a/tests/block/rule_201_test_input.vhd b/tests/block/rule_201_test_input.vhd index f39904c2..ea7763cd 100644 --- a/tests/block/rule_201_test_input.vhd +++ b/tests/block/rule_201_test_input.vhd @@ -3,7 +3,7 @@ architecture RTL of FIFO is begin - -- With no optional paramenters + -- With no optional parameters BLOCK_LABEL : block begin end block; diff --git a/tests/concurrent/rule_008_test_input.fixed_yes_yes_yes_no.vhd b/tests/concurrent/rule_008_test_input.fixed_yes_yes_yes_no.vhd index dacf3a58..2a3faf00 100644 --- a/tests/concurrent/rule_008_test_input.fixed_yes_yes_yes_no.vhd +++ b/tests/concurrent/rule_008_test_input.fixed_yes_yes_yes_no.vhd @@ -58,7 +58,7 @@ begin for_generate_label : for i in 0 to 200 generate -- for generate comment ab <= bc; -- comment zz - ac <= ad; -- coment za + ac <= ad; -- comment za ae <= af; -- comment ab end generate; -- end for generate label diff --git a/tests/concurrent/rule_008_test_input.vhd b/tests/concurrent/rule_008_test_input.vhd index f925c11f..04668ebd 100644 --- a/tests/concurrent/rule_008_test_input.vhd +++ b/tests/concurrent/rule_008_test_input.vhd @@ -58,7 +58,7 @@ begin for_generate_label : for i in 0 to 200 generate -- for generate comment ab <= bc; -- comment zz - ac <= ad; -- coment za + ac <= ad; -- comment za ae <= af; -- comment ab end generate; -- end for generate label diff --git a/tests/constant/rule_400_test_input.fixed_no_no_no_no_no.vhd b/tests/constant/rule_400_test_input.fixed_no_no_no_no_no.vhd index 4bec7049..22911f30 100644 --- a/tests/constant/rule_400_test_input.fixed_no_no_no_no_no.vhd +++ b/tests/constant/rule_400_test_input.fixed_no_no_no_no_no.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.fixed_yes_no_no_no_no.vhd b/tests/constant/rule_400_test_input.fixed_yes_no_no_no_no.vhd index cf5c1522..2d667144 100644 --- a/tests/constant/rule_400_test_input.fixed_yes_no_no_no_no.vhd +++ b/tests/constant/rule_400_test_input.fixed_yes_no_no_no_no.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.fixed_yes_no_yes_no_no.vhd b/tests/constant/rule_400_test_input.fixed_yes_no_yes_no_no.vhd index 4c482c8f..514579ae 100644 --- a/tests/constant/rule_400_test_input.fixed_yes_no_yes_no_no.vhd +++ b/tests/constant/rule_400_test_input.fixed_yes_no_yes_no_no.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.fixed_yes_yes_no_no_no.vhd b/tests/constant/rule_400_test_input.fixed_yes_yes_no_no_no.vhd index 11c7e2f0..1d713d01 100644 --- a/tests/constant/rule_400_test_input.fixed_yes_yes_no_no_no.vhd +++ b/tests/constant/rule_400_test_input.fixed_yes_yes_no_no_no.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_no.vhd b/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_no.vhd index a59241ce..b95b6b92 100644 --- a/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_no.vhd +++ b/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_no.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_yes.vhd b/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_yes.vhd index 63e1f3e6..83a50a19 100644 --- a/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_yes.vhd +++ b/tests/constant/rule_400_test_input.fixed_yes_yes_yes_yes_yes.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others => false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/constant/rule_400_test_input.vhd b/tests/constant/rule_400_test_input.vhd index ffac24f7..66ed03ae 100644 --- a/tests/constant/rule_400_test_input.vhd +++ b/tests/constant/rule_400_test_input.vhd @@ -52,7 +52,7 @@ architecture rtl of fifo is others=> false ); - -- Test hierarcical assignments + -- Test hierarchical assignments -- Desired alignment constant my_constant : my_type := ( ENUM_1 => ( diff --git a/tests/context/rule_005_test_input.fixed.vhd b/tests/context/rule_005_test_input.fixed.vhd index e7a5e39c..19aa0294 100644 --- a/tests/context/rule_005_test_input.fixed.vhd +++ b/tests/context/rule_005_test_input.fixed.vhd @@ -21,7 +21,7 @@ is end context c1; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_005_test_input.vhd b/tests/context/rule_005_test_input.vhd index 5bae3fc1..1a502d0e 100644 --- a/tests/context/rule_005_test_input.vhd +++ b/tests/context/rule_005_test_input.vhd @@ -21,7 +21,7 @@ is end context c1; -context -- Yet another commet +context -- Yet another comment, comment c1 -- Some comment is diff --git a/tests/context/rule_006_test_input.fixed.vhd b/tests/context/rule_006_test_input.fixed.vhd index e1d97244..ed110d6f 100644 --- a/tests/context/rule_006_test_input.fixed.vhd +++ b/tests/context/rule_006_test_input.fixed.vhd @@ -21,7 +21,7 @@ context end context c1; -context c1 is -- Yet another commet +context c1 is -- Yet another comment, comment -- Some comment diff --git a/tests/context/rule_006_test_input.vhd b/tests/context/rule_006_test_input.vhd index f37586ff..7f028416 100644 --- a/tests/context/rule_006_test_input.vhd +++ b/tests/context/rule_006_test_input.vhd @@ -21,7 +21,7 @@ is end context c1; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_009_test_input.fixed.vhd b/tests/context/rule_009_test_input.fixed.vhd index b7ce0036..fc713e6c 100644 --- a/tests/context/rule_009_test_input.fixed.vhd +++ b/tests/context/rule_009_test_input.fixed.vhd @@ -24,7 +24,7 @@ end context -- Some comment -- Some other comment c1; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_009_test_input.vhd b/tests/context/rule_009_test_input.vhd index 6ed87249..1ddb70c8 100644 --- a/tests/context/rule_009_test_input.vhd +++ b/tests/context/rule_009_test_input.vhd @@ -24,7 +24,7 @@ end -- Some comment context -- Some other comment c1; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_010_test_input.fixed.vhd b/tests/context/rule_010_test_input.fixed.vhd index a4aeade6..afaf77fc 100644 --- a/tests/context/rule_010_test_input.fixed.vhd +++ b/tests/context/rule_010_test_input.fixed.vhd @@ -25,7 +25,7 @@ context c1 -- Some other comment -- other comments ; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_010_test_input.vhd b/tests/context/rule_010_test_input.vhd index 6e5dc073..8a29d064 100644 --- a/tests/context/rule_010_test_input.vhd +++ b/tests/context/rule_010_test_input.vhd @@ -25,7 +25,7 @@ context -- Some other comment -- other comments c1; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_011_test_input.fixed.vhd b/tests/context/rule_011_test_input.fixed.vhd index 84e5e4bf..89aa0a15 100644 --- a/tests/context/rule_011_test_input.fixed.vhd +++ b/tests/context/rule_011_test_input.fixed.vhd @@ -27,7 +27,7 @@ context c1; -- Some other comment -- other comments -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/context/rule_011_test_input.vhd b/tests/context/rule_011_test_input.vhd index 6d68ab69..5ab1caf2 100644 --- a/tests/context/rule_011_test_input.vhd +++ b/tests/context/rule_011_test_input.vhd @@ -27,7 +27,7 @@ context c1 -- Some other comment -- other comments ; -context c1 -- Yet another commet +context c1 -- Yet another comment, comment -- Some comment is diff --git a/tests/procedure/rule_001_test_input.fixed.vhd b/tests/procedure/rule_001_test_input.fixed.vhd index e30f9015..62e6bcbc 100644 --- a/tests/procedure/rule_001_test_input.fixed.vhd +++ b/tests/procedure/rule_001_test_input.fixed.vhd @@ -25,7 +25,7 @@ architecture RTL of FIFO is begin end procedure proc_name; - -- There must be an indent after the proctected type + -- There must be an indent after the protected type type t_protected_fifo is protected procedure reset_fifo ( diff --git a/tests/procedure/rule_001_test_input.vhd b/tests/procedure/rule_001_test_input.vhd index b13d78bf..c9797613 100644 --- a/tests/procedure/rule_001_test_input.vhd +++ b/tests/procedure/rule_001_test_input.vhd @@ -25,7 +25,7 @@ procedure proc_name ( begin end procedure proc_name; - -- There must be an indent after the proctected type + -- There must be an indent after the protected type type t_protected_fifo is protected procedure reset_fifo ( diff --git a/tests/rule_list/local_rules/rule_localized_001.py b/tests/rule_list/local_rules/rule_localized_001.py index f49312f2..3bb35f3b 100644 --- a/tests/rule_list/local_rules/rule_localized_001.py +++ b/tests/rule_list/local_rules/rule_localized_001.py @@ -9,7 +9,7 @@ class rule_localized_001(rule.rule): self.name = 'localized' # Force the rule's name, because it can't be extracted from the module self.phase = 1 self.fixable = False # User must split the file - self.solution = 'Split entity and architecture into seperate files.' + self.solution = 'Split entity and architecture into separate files.' def analyze(self, oFile): if oFile.hasEntity and oFile.hasArchitecture: diff --git a/tests/smart_tab/spi_master.fixed.vhd b/tests/smart_tab/spi_master.fixed.vhd index 6785413d..b6fa40b2 100644 --- a/tests/smart_tab/spi_master.fixed.vhd +++ b/tests/smart_tab/spi_master.fixed.vhd @@ -37,7 +37,7 @@ -- Parallel load is controlled using 3 signals: 'di_i', 'di_req_o' and 'wren_i'. 'di_req_o' is a look ahead data request line, -- that is set 'PREFETCH' clock cycles in advance to synchronize a pipelined memory or fifo to present the -- next input data at 'di_i' in time to have continuous clock at the spi bus, to allow back-to-back continuous load. --- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the shifter. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last SPI clock cycle, @@ -139,7 +139,7 @@ -- BUG: CPOL='0', CPHA='1' causes SCK to have one extra pulse with one sclk_i width at the end. -- 2011/07/18 v1.12.0105 [JD] CHG: spi sck output register changed to remove glitch at last clock when CPHA='1'. -- for CPHA='1', max spi clock is 25MHz. for CPHA= '0', max spi clock is >50MHz. --- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', elliminating CPHA='1' glitches. +-- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', eliminating CPHA='1' glitches. -- Core verified for all CPOL, CPHA at up to 50MHz, simulates to over 100MHz. -- 2011/07/29 v1.14.0130 [JD] Removed global signal setting at the FSM, implementing exhaustive explicit signal attributions -- for each state, to avoid reported inference problems in some synthesis engines. diff --git a/tests/smart_tab/spi_master.vhd b/tests/smart_tab/spi_master.vhd index b8695139..5068c022 100644 --- a/tests/smart_tab/spi_master.vhd +++ b/tests/smart_tab/spi_master.vhd @@ -37,7 +37,7 @@ -- Parallel load is controlled using 3 signals: 'di_i', 'di_req_o' and 'wren_i'. 'di_req_o' is a look ahead data request line, -- that is set 'PREFETCH' clock cycles in advance to synchronize a pipelined memory or fifo to present the -- next input data at 'di_i' in time to have continuous clock at the spi bus, to allow back-to-back continuous load. --- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the shifter. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last SPI clock cycle, @@ -139,7 +139,7 @@ -- BUG: CPOL='0', CPHA='1' causes SCK to have one extra pulse with one sclk_i width at the end. -- 2011/07/18 v1.12.0105 [JD] CHG: spi sck output register changed to remove glitch at last clock when CPHA='1'. -- for CPHA='1', max spi clock is 25MHz. for CPHA= '0', max spi clock is >50MHz. --- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', elliminating CPHA='1' glitches. +-- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', eliminating CPHA='1' glitches. -- Core verified for all CPOL, CPHA at up to 50MHz, simulates to over 100MHz. -- 2011/07/29 v1.14.0130 [JD] Removed global signal setting at the FSM, implementing exhaustive explicit signal attributions -- for each state, to avoid reported inference problems in some synthesis engines. diff --git a/tests/smart_tab/spi_slave.fixed.vhd b/tests/smart_tab/spi_slave.fixed.vhd index 5adb9e6c..41e4ee6e 100644 --- a/tests/smart_tab/spi_slave.fixed.vhd +++ b/tests/smart_tab/spi_slave.fixed.vhd @@ -29,7 +29,7 @@ -- The write to 'di_i' must occur at most one 'spi_sck_i' cycle before actual load to the core shift register, to avoid -- race conditions at the register transfer. -- The user circuit places data at the 'di_i' port and strobes the 'wren_i' line for one rising edge of 'clk_i'. --- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the interface one clock before transfer. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last clock cycle, diff --git a/tests/styles/code_examples/PIC.vhd b/tests/styles/code_examples/PIC.vhd index 3fdf33ef..e2f0fc11 100644 --- a/tests/styles/code_examples/PIC.vhd +++ b/tests/styles/code_examples/PIC.vhd @@ -77,7 +77,7 @@ elsif( rising_edge(CLK_I) ) then flag <= INTA_I; case next_s is when reset_s => - --initialze signals to zero. + --initialize signals to zero. flag <= '0'; flag1 <= '0'; int_type <= "00"; diff --git a/tests/styles/code_examples/spi_master.vhd b/tests/styles/code_examples/spi_master.vhd index b8695139..5068c022 100644 --- a/tests/styles/code_examples/spi_master.vhd +++ b/tests/styles/code_examples/spi_master.vhd @@ -37,7 +37,7 @@ -- Parallel load is controlled using 3 signals: 'di_i', 'di_req_o' and 'wren_i'. 'di_req_o' is a look ahead data request line, -- that is set 'PREFETCH' clock cycles in advance to synchronize a pipelined memory or fifo to present the -- next input data at 'di_i' in time to have continuous clock at the spi bus, to allow back-to-back continuous load. --- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the shifter. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last SPI clock cycle, @@ -139,7 +139,7 @@ -- BUG: CPOL='0', CPHA='1' causes SCK to have one extra pulse with one sclk_i width at the end. -- 2011/07/18 v1.12.0105 [JD] CHG: spi sck output register changed to remove glitch at last clock when CPHA='1'. -- for CPHA='1', max spi clock is 25MHz. for CPHA= '0', max spi clock is >50MHz. --- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', elliminating CPHA='1' glitches. +-- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', eliminating CPHA='1' glitches. -- Core verified for all CPOL, CPHA at up to 50MHz, simulates to over 100MHz. -- 2011/07/29 v1.14.0130 [JD] Removed global signal setting at the FSM, implementing exhaustive explicit signal attributions -- for each state, to avoid reported inference problems in some synthesis engines. diff --git a/tests/styles/code_examples/spi_slave.vhd b/tests/styles/code_examples/spi_slave.vhd index 33c15953..f885c7f5 100644 --- a/tests/styles/code_examples/spi_slave.vhd +++ b/tests/styles/code_examples/spi_slave.vhd @@ -29,7 +29,7 @@ -- The write to 'di_i' must occur at most one 'spi_sck_i' cycle before actual load to the core shift register, to avoid -- race conditions at the register transfer. -- The user circuit places data at the 'di_i' port and strobes the 'wren_i' line for one rising edge of 'clk_i'. --- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the interface one clock before transfer. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last clock cycle, diff --git a/tests/styles/indent_only/PIC.vhd b/tests/styles/indent_only/PIC.vhd index 479e5d1d..1c34fc38 100644 --- a/tests/styles/indent_only/PIC.vhd +++ b/tests/styles/indent_only/PIC.vhd @@ -77,7 +77,7 @@ begin flag <= INTA_I; case next_s is when reset_s => - --initialze signals to zero. + --initialize signals to zero. flag <= '0'; flag1 <= '0'; int_type <= "00"; diff --git a/tests/styles/indent_only/spi_master.vhd b/tests/styles/indent_only/spi_master.vhd index c15e55bc..0eccdc2b 100644 --- a/tests/styles/indent_only/spi_master.vhd +++ b/tests/styles/indent_only/spi_master.vhd @@ -37,7 +37,7 @@ -- Parallel load is controlled using 3 signals: 'di_i', 'di_req_o' and 'wren_i'. 'di_req_o' is a look ahead data request line, -- that is set 'PREFETCH' clock cycles in advance to synchronize a pipelined memory or fifo to present the -- next input data at 'di_i' in time to have continuous clock at the spi bus, to allow back-to-back continuous load. --- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the shifter. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last SPI clock cycle, @@ -139,7 +139,7 @@ -- BUG: CPOL='0', CPHA='1' causes SCK to have one extra pulse with one sclk_i width at the end. -- 2011/07/18 v1.12.0105 [JD] CHG: spi sck output register changed to remove glitch at last clock when CPHA='1'. -- for CPHA='1', max spi clock is 25MHz. for CPHA= '0', max spi clock is >50MHz. --- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', elliminating CPHA='1' glitches. +-- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', eliminating CPHA='1' glitches. -- Core verified for all CPOL, CPHA at up to 50MHz, simulates to over 100MHz. -- 2011/07/29 v1.14.0130 [JD] Removed global signal setting at the FSM, implementing exhaustive explicit signal attributions -- for each state, to avoid reported inference problems in some synthesis engines. diff --git a/tests/styles/indent_only/spi_slave.vhd b/tests/styles/indent_only/spi_slave.vhd index 4c3b76a4..02da5b4f 100644 --- a/tests/styles/indent_only/spi_slave.vhd +++ b/tests/styles/indent_only/spi_slave.vhd @@ -29,7 +29,7 @@ -- The write to 'di_i' must occur at most one 'spi_sck_i' cycle before actual load to the core shift register, to avoid -- race conditions at the register transfer. -- The user circuit places data at the 'di_i' port and strobes the 'wren_i' line for one rising edge of 'clk_i'. --- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the interface one clock before transfer. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last clock cycle, diff --git a/tests/styles/jcl/PIC.fixed.vhd b/tests/styles/jcl/PIC.fixed.vhd index c9286e19..6c34605c 100644 --- a/tests/styles/jcl/PIC.fixed.vhd +++ b/tests/styles/jcl/PIC.fixed.vhd @@ -86,7 +86,7 @@ begin case next_s is when RESET_S => - -- initialze signals to zero. + -- initialize signals to zero. flag <= '0'; flag1 <= '0'; int_type <= "00"; diff --git a/tests/styles/jcl/spi_master.fixed.vhd b/tests/styles/jcl/spi_master.fixed.vhd index b8744940..e8a1f68e 100644 --- a/tests/styles/jcl/spi_master.fixed.vhd +++ b/tests/styles/jcl/spi_master.fixed.vhd @@ -37,7 +37,7 @@ -- Parallel load is controlled using 3 signals: 'di_i', 'di_req_o' and 'wren_i'. 'di_req_o' is a look ahead data request line, -- that is set 'PREFETCH' clock cycles in advance to synchronize a pipelined memory or fifo to present the -- next input data at 'di_i' in time to have continuous clock at the spi bus, to allow back-to-back continuous load. --- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 2 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the shifter. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last SPI clock cycle, @@ -139,7 +139,7 @@ -- BUG: CPOL='0', CPHA='1' causes SCK to have one extra pulse with one sclk_i width at the end. -- 2011/07/18 v1.12.0105 [JD] CHG: spi sck output register changed to remove glitch at last clock when CPHA='1'. -- for CPHA='1', max spi clock is 25MHz. for CPHA= '0', max spi clock is >50MHz. --- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', elliminating CPHA='1' glitches. +-- 2011/07/24 v1.13.0125 [JD] FIX: 'sck_ena_ce' is on half-cycle advanced to 'fsm_ce', eliminating CPHA='1' glitches. -- Core verified for all CPOL, CPHA at up to 50MHz, simulates to over 100MHz. -- 2011/07/29 v1.14.0130 [JD] Removed global signal setting at the FSM, implementing exhaustive explicit signal attributions -- for each state, to avoid reported inference problems in some synthesis engines. diff --git a/tests/styles/jcl/spi_slave.fixed.vhd b/tests/styles/jcl/spi_slave.fixed.vhd index 6c156275..7a28fa52 100644 --- a/tests/styles/jcl/spi_slave.fixed.vhd +++ b/tests/styles/jcl/spi_slave.fixed.vhd @@ -29,7 +29,7 @@ -- The write to 'di_i' must occur at most one 'spi_sck_i' cycle before actual load to the core shift register, to avoid -- race conditions at the register transfer. -- The user circuit places data at the 'di_i' port and strobes the 'wren_i' line for one rising edge of 'clk_i'. --- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new adress to the RAM in one +-- For a pipelined sync RAM, a PREFETCH of 3 cycles allows an address generator to present the new address to the RAM in one -- cycle, and the RAM to respond in one more cycle, in time for 'di_i' to be latched by the interface one clock before transfer. -- If the user sequencer needs a different value for PREFETCH, the generic can be altered at instantiation time. -- The 'wren_i' write enable strobe must be valid at least one setup time before the rising edge of the last clock cycle, diff --git a/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_results.txt b/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_results.txt index 1f71ba39..cf4cf05b 100644 --- a/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_results.txt +++ b/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_results.txt @@ -94,7 +94,7 @@ 20 | -------------------------------------------------------------------------------- -21 | -- with inertial delay machanism +21 | -- with inertial delay mechanism -------------------------------------------------------------------------------- 22 | a <= inertial b when 'a' else @@ -173,7 +173,7 @@ 35 | -------------------------------------------------------------------------------- -36 | -- with guarded and inertial delay machanism +36 | -- with guarded and inertial delay mechanism -------------------------------------------------------------------------------- 37 | a <= guarded inertial b when 'a' else diff --git a/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_test_input.vhd b/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_test_input.vhd index 4eecfe3f..0e34ff2c 100644 --- a/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_test_input.vhd +++ b/tests/vhdlFile/concurrent_conditional_signal_assignment/classification_test_input.vhd @@ -18,7 +18,7 @@ begin c when 'b' else d; - -- with inertial delay machanism + -- with inertial delay mechanism a <= inertial b when 'a' else c when 'b' else d; @@ -33,7 +33,7 @@ begin c when 'b' else d; - -- with guarded and inertial delay machanism + -- with guarded and inertial delay mechanism a <= guarded inertial b when 'a' else c when 'b' else d; diff --git a/tests/vhdlFile/concurrent_simple_signal_assignment/classification_results.txt b/tests/vhdlFile/concurrent_simple_signal_assignment/classification_results.txt index eea78567..c3168fa2 100644 --- a/tests/vhdlFile/concurrent_simple_signal_assignment/classification_results.txt +++ b/tests/vhdlFile/concurrent_simple_signal_assignment/classification_results.txt @@ -58,7 +58,7 @@ 14 | -------------------------------------------------------------------------------- -15 | -- with inertial delay machanism +15 | -- with inertial delay mechanism -------------------------------------------------------------------------------- 16 | a <= inertial b; @@ -101,7 +101,7 @@ 23 | -------------------------------------------------------------------------------- -24 | -- with guarded and inertial delay machanism +24 | -- with guarded and inertial delay mechanism -------------------------------------------------------------------------------- 25 | a <= guarded inertial b; diff --git a/tests/vhdlFile/concurrent_simple_signal_assignment/classification_test_input.vhd b/tests/vhdlFile/concurrent_simple_signal_assignment/classification_test_input.vhd index ee843ce5..eb955dc6 100644 --- a/tests/vhdlFile/concurrent_simple_signal_assignment/classification_test_input.vhd +++ b/tests/vhdlFile/concurrent_simple_signal_assignment/classification_test_input.vhd @@ -12,7 +12,7 @@ begin -- with transport delay mechanism a <= transport b; - -- with inertial delay machanism + -- with inertial delay mechanism a <= inertial b; -- with reject delay mechanism @@ -21,7 +21,7 @@ begin -- with guarded and transport delay mechanism a <= guarded transport b; - -- with guarded and inertial delay machanism + -- with guarded and inertial delay mechanism a <= guarded inertial b; -- with guarded and reject delay mechanism diff --git a/tests/vhdlFile/pragmas/classification_test_input.vhd b/tests/vhdlFile/pragmas/classification_test_input.vhd index ef5687db..a5f5787d 100644 --- a/tests/vhdlFile/pragmas/classification_test_input.vhd +++ b/tests/vhdlFile/pragmas/classification_test_input.vhd @@ -31,7 +31,7 @@ entity FIFO is -- RTL_SYNTHESIS OFF -- RTL_SYNTHESIS something --- synopsys +-- synopsys -- synopsys something -- synopsys something else -- synopsys something else entirely diff --git a/tests/vhdlFile/protected_type_body/classification_results.txt b/tests/vhdlFile/protected_type_body/classification_results.txt index e2d3c8f1..31f9542c 100644 --- a/tests/vhdlFile/protected_type_body/classification_results.txt +++ b/tests/vhdlFile/protected_type_body/classification_results.txt @@ -124,7 +124,7 @@ 23 | -------------------------------------------------------------------------------- -24 | type indentifier; +24 | type identifier; diff --git a/tests/vhdlFile/protected_type_body/classification_test_input.vhd b/tests/vhdlFile/protected_type_body/classification_test_input.vhd index 65a2ef75..e54190b3 100644 --- a/tests/vhdlFile/protected_type_body/classification_test_input.vhd +++ b/tests/vhdlFile/protected_type_body/classification_test_input.vhd @@ -21,7 +21,7 @@ architecture RTL of ENTITY_NAME is package pack2 is new pack2_name; - type indentifier; + type identifier; subtype identifier is integer; diff --git a/tests/vsg/local_rules/rule_localized_001.py b/tests/vsg/local_rules/rule_localized_001.py index b4f945a0..dee2cdc0 100644 --- a/tests/vsg/local_rules/rule_localized_001.py +++ b/tests/vsg/local_rules/rule_localized_001.py @@ -11,7 +11,7 @@ class rule_001(rule.Rule): self.name = 'localized' # Force the rule's name, because it can't be extracted from the module self.phase = 1 self.fixable = False # User must split the file - self.solution = 'Split entity and architecture into seperate files.' + self.solution = 'Split entity and architecture into separate files.' def analyze(self, oFile): lToiEntity = oFile.get_tokens_matching([token.entity_declaration.entity_keyword]) diff --git a/tests/vsg/test_main.py b/tests/vsg/test_main.py index 0aa5715f..3385e4ac 100644 --- a/tests/vsg/test_main.py +++ b/tests/vsg/test_main.py @@ -232,7 +232,7 @@ class testMain(unittest.TestCase): @mock.patch('sys.stdout') def test_local_rules(self,mock_stdout): lExpected = [] - lExpected.append(mock.call('ERROR: tests/vsg/entity_architecture.vhd(1)localized_001 -- Split entity and architecture into seperate files.')) + lExpected.append(mock.call('ERROR: tests/vsg/entity_architecture.vhd(1)localized_001 -- Split entity and architecture into separate files.')) lExpected.append(mock.call('\n')) sys.argv = ['vsg'] diff --git a/tests/vsg/test_vsg.py b/tests/vsg/test_vsg.py index adf0b87d..c7550811 100644 --- a/tests/vsg/test_vsg.py +++ b/tests/vsg/test_vsg.py @@ -131,7 +131,7 @@ class testVsg(unittest.TestCase): self.assertEqual(sLine, lActual[iLineNumber]) def test_local_rules(self): - lExpected = ['ERROR: tests/vsg/entity_architecture.vhd(1)localized_001 -- Split entity and architecture into seperate files.'] + lExpected = ['ERROR: tests/vsg/entity_architecture.vhd(1)localized_001 -- Split entity and architecture into separate files.'] lExpected.append('') try: diff --git a/vsg/config.py b/vsg/config.py index 7cb417ab..5b9a6f50 100644 --- a/vsg/config.py +++ b/vsg/config.py @@ -262,10 +262,10 @@ dPragmas['single'].append('^\\s*--\\s+altera\\s+\\w+\\s*$' ) dPragmas['open'].append('^\\s*--\\s+RTL_SYNTHESIS\\s+OFF\\s*$' ) dPragmas['close'].append('^\\s*--\\s+RTL_SYNTHESIS\\s+ON\\s*$' ) -dPragmas['single'].append('^\\s*--\\s+synopsys\\s+\\w+\\s*$') -dPragmas['single'].append('^\\s*--\\s+synopsys\\s+\\w+\\s+\\w+\\s*$') -dPragmas['single'].append('^\\s*--\\s+xilinx\\s+\\w+\\s*$') -dPragmas['single'].append('^\\s*--\\s+xilinx\\s+\\w+\\s+\\w+\\s*$') +dPragmas["single"].append("^\\s*--\\s+synopsys\\s+\\w+\\s*$") +dPragmas["single"].append("^\\s*--\\s+synopsys\\s+\\w+\\s+\\w+\\s*$") +dPragmas["single"].append("^\\s*--\\s+xilinx\\s+\\w+\\s*$") +dPragmas["single"].append("^\\s*--\\s+xilinx\\s+\\w+\\s+\\w+\\s*$") def add_pragma_regular_expressions(dStyle): diff --git a/vsg/rules/architecture/rule_026.py b/vsg/rules/architecture/rule_026.py index 40620fd4..ef02f387 100644 --- a/vsg/rules/architecture/rule_026.py +++ b/vsg/rules/architecture/rule_026.py @@ -48,7 +48,7 @@ class rule_026(Rule): def __init__(self): super().__init__(lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.subphase = 3 self.configuration.append('include_type_is_keyword') self.is_keyword = token.full_type_declaration.is_keyword diff --git a/vsg/rules/architecture/rule_029.py b/vsg/rules/architecture/rule_029.py index a5faf60f..bab28b5a 100644 --- a/vsg/rules/architecture/rule_029.py +++ b/vsg/rules/architecture/rule_029.py @@ -44,6 +44,6 @@ class rule_029(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/attribute/rule_001.py b/vsg/rules/attribute/rule_001.py index 925d90e2..5a073099 100644 --- a/vsg/rules/attribute/rule_001.py +++ b/vsg/rules/attribute/rule_001.py @@ -4,7 +4,7 @@ from vsg import deprecated_rule class rule_001(deprecated_rule.Rule): ''' - This rule has been superceeded by: + This rule has been superseded by: * `attribute_declaration_300 `_ * `attribute_specification_300 `_ @@ -12,4 +12,4 @@ class rule_001(deprecated_rule.Rule): def __init__(self): super().__init__() - self.message.append('Rule ' + self.unique_id + ' has been superceeded by attribute_declaration_300 and attribute_specification_300.') + self.message.append('Rule ' + self.unique_id + ' has been superseded by attribute_declaration_300 and attribute_specification_300.') diff --git a/vsg/rules/attribute/rule_002.py b/vsg/rules/attribute/rule_002.py index 6938220b..129ac361 100644 --- a/vsg/rules/attribute/rule_002.py +++ b/vsg/rules/attribute/rule_002.py @@ -4,7 +4,7 @@ from vsg import deprecated_rule class rule_002(deprecated_rule.Rule): ''' - This rule has been superceeded by: + This rule has been superseded by: * `attribute_declaration_500 `_ * `attribute_specification_500 `_ @@ -12,4 +12,4 @@ class rule_002(deprecated_rule.Rule): def __init__(self): super().__init__() - self.message.append('Rule ' + self.unique_id + ' has been superceeded by attribute_declaration_500 and attribute_specification_500.') + self.message.append('Rule ' + self.unique_id + ' has been superseded by attribute_declaration_500 and attribute_specification_500.') diff --git a/vsg/rules/block/rule_400.py b/vsg/rules/block/rule_400.py index 2118a4d7..77737bce 100644 --- a/vsg/rules/block/rule_400.py +++ b/vsg/rules/block/rule_400.py @@ -40,6 +40,6 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/case_utils.py b/vsg/rules/case_utils.py index 9432b16d..4359cfab 100644 --- a/vsg/rules/case_utils.py +++ b/vsg/rules/case_utils.py @@ -197,7 +197,7 @@ def does_not_contain_any_alpha_characters(sObjectValue): return False -# Define mapping of case to checkers and comparitors +# Define mapping of case to checkers and comparators dCase = {} dCase['camelCase'] = {} dCase['camelCase']['check'] = check_for_camelcase diff --git a/vsg/rules/comment/rule_010.py b/vsg/rules/comment/rule_010.py index 91f83335..293b7b1a 100644 --- a/vsg/rules/comment/rule_010.py +++ b/vsg/rules/comment/rule_010.py @@ -21,7 +21,7 @@ class rule_010(token_indent_unless_between_tokens): .. code-block:: vhdl -- Libraries - libary ieee; + library ieee; -- Define architecture architecture rtl of fifo is @@ -37,7 +37,7 @@ class rule_010(token_indent_unless_between_tokens): .. code-block:: vhdl -- Libraries - libary ieee; + library ieee; -- Define architecture architecture rtl of fifo is diff --git a/vsg/rules/component/rule_019.py b/vsg/rules/component/rule_019.py index 56e6b648..fb56b2d7 100644 --- a/vsg/rules/component/rule_019.py +++ b/vsg/rules/component/rule_019.py @@ -11,7 +11,7 @@ oEnd = token.component_declaration.semicolon class rule_019(remove_comments_from_end_of_lines_bounded_by_tokens): ''' This rule checks for comments at the end of the port and generic clauses in component declarations. - These comments represent additional maintainence. + These comments represent additional maintenance. They will be out of sync with the entity at some point. Refer to the entity for port types, port directions and purpose. diff --git a/vsg/rules/component/rule_020.py b/vsg/rules/component/rule_020.py index 5310edc7..c0104077 100644 --- a/vsg/rules/component/rule_020.py +++ b/vsg/rules/component/rule_020.py @@ -56,5 +56,5 @@ class rule_020(align_tokens_in_region_between_tokens_skipping_lines_starting_wit def __init__(self): super().__init__(lAlign, token.component_declaration.component_keyword, token.component_declaration.end_keyword, lSkip) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.subphase = 2 diff --git a/vsg/rules/concurrent/rule_003.py b/vsg/rules/concurrent/rule_003.py index c4131c9a..4fae125f 100644 --- a/vsg/rules/concurrent/rule_003.py +++ b/vsg/rules/concurrent/rule_003.py @@ -10,7 +10,7 @@ lTokenPairs.append([token.concurrent_simple_signal_assignment.assignment, token. class rule_003(multiline_alignment_between_tokens): ''' This rule checks alignment of multiline concurrent simple signal assignments. - Succesive lines should align to the space after the assignment operator. + Successive lines should align to the space after the assignment operator. However, there is a special case if there are parenthesis in the assignment. If the parenthesis are not closed on the same line, then the next line will be aligned to the parenthesis. Aligning to the parenthesis improves readability. diff --git a/vsg/rules/constant/rule_011.py b/vsg/rules/constant/rule_011.py index f12eee6f..f4393290 100644 --- a/vsg/rules/constant/rule_011.py +++ b/vsg/rules/constant/rule_011.py @@ -4,7 +4,7 @@ from vsg import deprecated_rule class rule_011(deprecated_rule.Rule): ''' - The function of this rule has been superceeded by the following rules: + The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 @@ -12,7 +12,7 @@ class rule_011(deprecated_rule.Rule): ''' def __init__(self): super().__init__() - self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') + self.message.append('Rule ' + self.unique_id + ' has been superseded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') self.message.append(' type_014') diff --git a/vsg/rules/function/rule_015.py b/vsg/rules/function/rule_015.py index 4eb5c64b..7e999921 100644 --- a/vsg/rules/function/rule_015.py +++ b/vsg/rules/function/rule_015.py @@ -42,6 +42,6 @@ class rule_015(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/generate/rule_400.py b/vsg/rules/generate/rule_400.py index 7af1d618..e036a878 100644 --- a/vsg/rules/generate/rule_400.py +++ b/vsg/rules/generate/rule_400.py @@ -46,7 +46,7 @@ class rule_400(align_tokens_in_region_between_tokens_when_between_tokens_unless_ def __init__(self): super().__init__(lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/generate/rule_402.py b/vsg/rules/generate/rule_402.py index a0791e3e..27924473 100644 --- a/vsg/rules/generate/rule_402.py +++ b/vsg/rules/generate/rule_402.py @@ -46,7 +46,7 @@ class rule_402(align_tokens_in_region_between_tokens_when_between_tokens_unless_ def __init__(self): super().__init__(lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/generate/rule_404.py b/vsg/rules/generate/rule_404.py index 1802ed4c..886fff3c 100644 --- a/vsg/rules/generate/rule_404.py +++ b/vsg/rules/generate/rule_404.py @@ -46,7 +46,7 @@ class rule_404(align_tokens_in_region_between_tokens_when_between_tokens_unless_ def __init__(self): super().__init__(lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/instantiation/rule_029.py b/vsg/rules/instantiation/rule_029.py index 701b6c73..5e1e06f2 100644 --- a/vsg/rules/instantiation/rule_029.py +++ b/vsg/rules/instantiation/rule_029.py @@ -26,7 +26,7 @@ class rule_029(align_tokens_in_region_between_tokens_skipping_lines_starting_wit .. code-block:: vhdl - wr_en => write_enable, -- Wrte enable + wr_en => write_enable, -- Write enable rd_en => read_enable, -- Read enable overflow => overflow, -- FIFO has overflowed @@ -34,7 +34,7 @@ class rule_029(align_tokens_in_region_between_tokens_skipping_lines_starting_wit .. code-block:: vhdl - wr_en => write_enable, -- Wrte enable + wr_en => write_enable, -- Write enable rd_en => read_enable, -- Read enable overflow => overflow, -- FIFO has overflowed ''' diff --git a/vsg/rules/package/rule_019.py b/vsg/rules/package/rule_019.py index f1bba754..9e5cd90d 100644 --- a/vsg/rules/package/rule_019.py +++ b/vsg/rules/package/rule_019.py @@ -42,6 +42,6 @@ class rule_019(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.package_declaration.is_keyword, token.package_declaration.end_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package_body/rule_400.py b/vsg/rules/package_body/rule_400.py index 184bb0a5..b1405045 100644 --- a/vsg/rules/package_body/rule_400.py +++ b/vsg/rules/package_body/rule_400.py @@ -39,6 +39,6 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.package_body.is_keyword, token.package_body.end_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/port_map/rule_010.py b/vsg/rules/port_map/rule_010.py index 7b6c452e..12757f90 100644 --- a/vsg/rules/port_map/rule_010.py +++ b/vsg/rules/port_map/rule_010.py @@ -11,7 +11,7 @@ oEnd = token.component_instantiation_statement.semicolon class rule_010(remove_comments_from_end_of_lines_bounded_by_tokens): ''' This rule checks for comments at the end of the port and generic assignments in instantiations. - These comments represent additional maintainence. + These comments represent additional maintenance. They will be out of sync with the entity at some point. Refer to the entity for port types, port directions and purpose. diff --git a/vsg/rules/procedure/rule_010.py b/vsg/rules/procedure/rule_010.py index 278f11ab..40459232 100644 --- a/vsg/rules/procedure/rule_010.py +++ b/vsg/rules/procedure/rule_010.py @@ -42,6 +42,6 @@ class rule_010(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/procedure/rule_412.py b/vsg/rules/procedure/rule_412.py index aa9a9e94..7cd8af1d 100644 --- a/vsg/rules/procedure/rule_412.py +++ b/vsg/rules/procedure/rule_412.py @@ -4,9 +4,9 @@ from vsg.deprecated_rule import Rule class rule_412(Rule): ''' - This rule has been superceeded by rule `architecture_027 `_. + This rule has been superseded by rule `architecture_027 `_. ''' def __init__(self): Rule.__init__(self) - self.message.append('Rule ' + self.unique_id + ' has been superceeded by rule architecture_027.') + self.message.append('Rule ' + self.unique_id + ' has been superseded by rule architecture_027.') diff --git a/vsg/rules/procedure_call/rule_500.py b/vsg/rules/procedure_call/rule_500.py index 5108eace..ff832c5f 100644 --- a/vsg/rules/procedure_call/rule_500.py +++ b/vsg/rules/procedure_call/rule_500.py @@ -18,13 +18,13 @@ class rule_500(token_case): .. code-block:: vhdl - PROCEDURE_CALL_LABEL : WR_EN(paremeter); + PROCEDURE_CALL_LABEL : WR_EN(parameter); **Fix** .. code-block:: vhdl - procedure_call_label : WR_EN(paremeter); + procedure_call_label : WR_EN(parameter); ''' def __init__(self): diff --git a/vsg/rules/process/rule_400.py b/vsg/rules/process/rule_400.py index 8351a806..893a97b3 100644 --- a/vsg/rules/process/rule_400.py +++ b/vsg/rules/process/rule_400.py @@ -49,7 +49,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, oStart, oEnd, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.if_control_statements_ends_group = 'yes' self.case_control_statements_ends_group = 'yes' self.case_keyword_statements_ends_group = 'yes' diff --git a/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py b/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py index b16a8fe4..e7e560db 100644 --- a/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py +++ b/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py @@ -71,7 +71,7 @@ class remove_excessive_blank_lines_above_line_starting_with_token(blank_line.Rul def check_if_override_exists(oFile, iLine, lOverrides): - oMyToi = oFile.get_line_preceeding_line(iLine) + oMyToi = oFile.get_line_preceding_line(iLine) try: lTokens = oMyToi.get_tokens() diff --git a/vsg/rules/signal/rule_011.py b/vsg/rules/signal/rule_011.py index f12eee6f..f4393290 100644 --- a/vsg/rules/signal/rule_011.py +++ b/vsg/rules/signal/rule_011.py @@ -4,7 +4,7 @@ from vsg import deprecated_rule class rule_011(deprecated_rule.Rule): ''' - The function of this rule has been superceeded by the following rules: + The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 @@ -12,7 +12,7 @@ class rule_011(deprecated_rule.Rule): ''' def __init__(self): super().__init__() - self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') + self.message.append('Rule ' + self.unique_id + ' has been superseded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') self.message.append(' type_014') diff --git a/vsg/rules/source_file/rule_001.py b/vsg/rules/source_file/rule_001.py index 7a8971d4..46d8d9dd 100644 --- a/vsg/rules/source_file/rule_001.py +++ b/vsg/rules/source_file/rule_001.py @@ -5,7 +5,7 @@ from vsg.rule_group import structure class rule_001(structure.Rule): ''' - This rule checks for the existance of the source file passed to VSG. + This rule checks for the existence of the source file passed to VSG. **Violation** diff --git a/vsg/rules/subprogram_body/rule_400.py b/vsg/rules/subprogram_body/rule_400.py index 6d1d7861..6c5e5173 100644 --- a/vsg/rules/subprogram_body/rule_400.py +++ b/vsg/rules/subprogram_body/rule_400.py @@ -47,7 +47,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): def __init__(self): super().__init__(lAlign, oStart, oEnd, lUnless) - self.solution = 'Align identifer.' + self.solution = 'Align identifier.' self.if_control_statements_ends_group = 'yes' self.case_control_statements_ends_group = 'yes' self.case_keyword_statements_ends_group = 'yes' diff --git a/vsg/rules/variable/rule_010.py b/vsg/rules/variable/rule_010.py index fa810498..90bc2dbe 100644 --- a/vsg/rules/variable/rule_010.py +++ b/vsg/rules/variable/rule_010.py @@ -4,7 +4,7 @@ from vsg import deprecated_rule class rule_010(deprecated_rule.Rule): ''' - The function of this rule has been superceeded by the following rules: + The function of this rule has been superseded by the following rules: * ieee_500 * subtype_002 @@ -12,7 +12,7 @@ class rule_010(deprecated_rule.Rule): ''' def __init__(self): super().__init__() - self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') + self.message.append('Rule ' + self.unique_id + ' has been superseded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') self.message.append(' type_014') diff --git a/vsg/rules/when/rule_001.py b/vsg/rules/when/rule_001.py index 8372469b..5428b804 100644 --- a/vsg/rules/when/rule_001.py +++ b/vsg/rules/when/rule_001.py @@ -21,7 +21,7 @@ lTokenPairs.append([token.conditional_waveform_assignment.assignment, token.cond class rule_001(structure.Rule): ''' This rule checks the **else** keyword is not at the beginning of a line. - The else should be at the end of the preceeding line. + The else should be at the end of the preceding line. **Violation** diff --git a/vsg/token/interface_list.py b/vsg/token/interface_list.py index a6433678..926fdaaf 100644 --- a/vsg/token/interface_list.py +++ b/vsg/token/interface_list.py @@ -2,7 +2,7 @@ from vsg import parser ############################################################################### -# Inteface List objects +# Interface List objects ############################################################################### diff --git a/vsg/vhdlFile/classify/association_element.py b/vsg/vhdlFile/classify/association_element.py index 6b84eb5a..4250afd3 100644 --- a/vsg/vhdlFile/classify/association_element.py +++ b/vsg/vhdlFile/classify/association_element.py @@ -11,7 +11,7 @@ def detect(iCurrent, lObjects): association_element ::= [ formal_part => ] actual_part - An association element will either end in a close parenthesis or a comma that is not within paranthesis. + An association element will either end in a close parenthesis or a comma that is not within parenthesis. accociation_element [)|,] diff --git a/vsg/vhdlFile/extract/__init__.py b/vsg/vhdlFile/extract/__init__.py index b14227bd..baff0bfe 100644 --- a/vsg/vhdlFile/extract/__init__.py +++ b/vsg/vhdlFile/extract/__init__.py @@ -20,7 +20,7 @@ from .get_token_and_n_tokens_before_it import get_token_and_n_tokens_before_it from .get_blank_lines_above_line_starting_with_token import get_blank_lines_above_line_starting_with_token from .get_blank_lines_above_line_starting_with_use_clause import get_blank_lines_above_line_starting_with_use_clause from .get_blank_lines_above_line_starting_with_token_when_between_tokens import get_blank_lines_above_line_starting_with_token_when_between_tokens -from .get_line_preceeding_line import get_line_preceeding_line +from .get_line_preceding_line import get_line_preceding_line from .get_line_succeeding_line import get_line_succeeding_line from .get_tokens_bounded_by import get_tokens_bounded_by from .get_tokens_bounded_by_tokens_if_token_is_between_them import get_tokens_bounded_by_tokens_if_token_is_between_them diff --git a/vsg/vhdlFile/extract/get_line_above_line_starting_with_token.py b/vsg/vhdlFile/extract/get_line_above_line_starting_with_token.py index 9c942060..1b618c11 100644 --- a/vsg/vhdlFile/extract/get_line_above_line_starting_with_token.py +++ b/vsg/vhdlFile/extract/get_line_above_line_starting_with_token.py @@ -1,7 +1,7 @@ from vsg.vhdlFile.extract import utils -from vsg.vhdlFile.extract.get_line_preceeding_line import get_line_preceeding_line +from vsg.vhdlFile.extract.get_line_preceding_line import get_line_preceding_line def get_line_above_line_starting_with_token(lTokens, lAllTokens, oTokenMap, bIncludeComments=False): @@ -17,6 +17,6 @@ def get_line_above_line_starting_with_token(lTokens, lAllTokens, oTokenMap, bInc lLine = utils.get_line_numbers_of_indexes_in_list(lIndexes, oTokenMap) for iLine in lLine: - lReturn.append(get_line_preceeding_line(iLine, lAllTokens, 1, oTokenMap, bIncludeComments)) + lReturn.append(get_line_preceding_line(iLine, lAllTokens, 1, oTokenMap, bIncludeComments)) return lReturn diff --git a/vsg/vhdlFile/extract/get_line_above_line_starting_with_token_with_hierarchy.py b/vsg/vhdlFile/extract/get_line_above_line_starting_with_token_with_hierarchy.py index d2528a07..f2d460e3 100644 --- a/vsg/vhdlFile/extract/get_line_above_line_starting_with_token_with_hierarchy.py +++ b/vsg/vhdlFile/extract/get_line_above_line_starting_with_token_with_hierarchy.py @@ -1,7 +1,7 @@ from vsg.vhdlFile.extract import utils -from vsg.vhdlFile.extract.get_line_preceeding_line import get_line_preceeding_line +from vsg.vhdlFile.extract.get_line_preceding_line import get_line_preceding_line def get_line_above_line_starting_with_token_with_hierarchy(lTokens, lAllTokens, lHierarchy, oTokenMap, bIncludeComments=False): @@ -19,6 +19,6 @@ def get_line_above_line_starting_with_token_with_hierarchy(lTokens, lAllTokens, lLine = utils.get_line_numbers_of_indexes_in_list(lIndexes, oTokenMap) for iLine in lLine: - lReturn.append(get_line_preceeding_line(iLine, lAllTokens, 1, oTokenMap, bIncludeComments)) + lReturn.append(get_line_preceding_line(iLine, lAllTokens, 1, oTokenMap, bIncludeComments)) return lReturn diff --git a/vsg/vhdlFile/extract/get_line_preceeding_line.py b/vsg/vhdlFile/extract/get_line_preceding_line.py similarity index 95% rename from vsg/vhdlFile/extract/get_line_preceeding_line.py rename to vsg/vhdlFile/extract/get_line_preceding_line.py index 4179972b..36abc1fe 100644 --- a/vsg/vhdlFile/extract/get_line_preceeding_line.py +++ b/vsg/vhdlFile/extract/get_line_preceding_line.py @@ -6,7 +6,7 @@ from vsg.vhdlFile.extract import tokens import bisect -def get_line_preceeding_line(iLine, lAllTokens, iNumLines, oTokenMap, bSkipComments=False): +def get_line_preceding_line(iLine, lAllTokens, iNumLines, oTokenMap, bSkipComments=False): lCarriageReturns = oTokenMap.get_token_indexes(parser.carriage_return) diff --git a/vsg/vhdlFile/vhdlFile.py b/vsg/vhdlFile/vhdlFile.py index 906acf02..66f4ee94 100644 --- a/vsg/vhdlFile/vhdlFile.py +++ b/vsg/vhdlFile/vhdlFile.py @@ -192,8 +192,8 @@ class vhdlFile(): def set_token_indent(self): set_token_indent(self.dIndentMap, self.lAllObjects) - def get_line_preceeding_line(self, iLine, iNumLines=1): - return extract.get_line_preceeding_line(iLine, self.lAllObjects, iNumLines, self.oTokenMap) + def get_line_preceding_line(self, iLine, iNumLines=1): + return extract.get_line_preceding_line(iLine, self.lAllObjects, iNumLines, self.oTokenMap) def get_line_succeeding_line(self, iLine, iNumLines=1): return extract.get_line_succeeding_line(iLine, self.lAllObjects, iNumLines, self.oTokenMap)