Adding support for case generate statements:
1) Updated case classifications to differentiate between generate and case statements
2) Updated documentation
3) Added tests for generate case statements
4) Added rule generate_016 to enforce indention on when statements
VSG was mistaking case-generates for an instantiation.
1) Updated tests to include case generate example
2) Updated code to recognize a case generate statement
The rule process_031 was attempting to align variables defined in function and procedures with variables outside functions and procedures in the process declarative region.
1) Updated tests to expose issue
2) Fixed to make tests pass
Additional issue found with handling indents on processes with just 'process is' when updating tests.
1) Fixed code to make tests pass
VSG could not handle nested for loops if it was inside a procedure.
The second 'end loop' would also be classified as the 'end procedure'.
1) Updated tests to expose issue
2) Updated code to make tests pass
VSG was classifying the when keyword in a sequential assignment as a case when keyword.
1) Updated tests to detect the issue
2) Updated code to make test pass
The 'end loop' was being misclassified as the end of a procedure.
This would result in a cascade of issues in the fixed code.
1) Updated tests to include a for loop within a procedure within an architecture declarative region to replicate the issue
2) Updated code to not classify the 'end loop' as the end of a procedure.
Issue #314:
Updated all label rules to use utils.extract_label or utils.extract_end_label:
1) Added utils.extract_end_label
2) Added more end label attributes to line.py
3) Updated classifiers to set the new end label attributes
4) Updated tests
5) Updated rules to use utils.extract_label or utils.extract_end_label
Issue #333:
Fixed bug where nested generate labels were not updated correctly:
1) Added test case
2) Updated code
Added ability to configure either 'event or _edge for clock definitions:
1) Updated documentation
2) Added isClockDefinition to line object
3) Updated process classification to set isClockDefinition
4) Updated tests
5) Updated rule process_029
1) Removed unused elif code because it could never be executed.
2) Updated documentation for component classifier.
3) Updated tests for rule component_012 to cover the _get_solution method.
The rule process_012 would add the *is* keyword to the end of the process sensitivity list without removing an *is* keyword if it existed on a different line.
1) Updated documentation
2) Updated tests
3) Updated process classifier
4) Added isProcessIs line attribute
5) Updated rule process_012 to remove the *is* keyword if is exists on a seperate line.
Adding rule signal_015 to handle a signal declared over multiple lines:
1) Added documentation
2) Added test
3) Added rule signal_015
NOTE: Only the detection portion has been added. The fix will be added next.
The indent level of the begin keyword was incorrect in cases of processes without sensitivity lists.
1) Changed indent level to match that of the process keyword in all cases.
2) Updated tests
The constant classifier was classifying signals in concurrent assignments as constants if a signal started with "constant".
1) Updated tests
2) Updated constant classifier
Fixed issue where ports in an instantiation which started with "end" were classified as the end of the architecture.
Fixed issue where concurrent assignments which started with "end" were classified as the end of the architecture.
1) Added tests
2) Updated architecture classifier
Added fix logic for rule after_001.
1) Added configurable attributes magnitude and units
2) Updated documentation
3) Updated tests
4) Updated clock process classification to detect clock processes without resets
Adding test for after statement in clock process:
1) Enhanced testing
2) Added after_001 rule
3) Updated documentation
4) Fixed bug in detecting the end of a sequential statement
5) Updated classification logic
Added rule constant_014 to handle multiline non array constants:
1) Added documentation
2) Fixed rule constant_012 so it does not fire on non array constants
3) Added rule constant_014
4) Added tests
5) Added classification of array constants
Added rules to handle the component keyword in component instantiations:
1) Enforce component keyword to lowercase
a) Added documentation
b) Added test
c) Added rule instantiation_031
d) This rule is disabled by default
2) Enforce a single space after the component keyword
a) Added documentation
b) Added test
c) Added rule instantiation_032
d) This rule is disabled by default
3) Remove component keyword
a) Added documentation
b) Added test
c) Added rule instantiation_033
Completed bug fix:
1) Added rule procedure_006
a) Added documentation
b) Added test
c) Added rule
2) Fixed misclassification of procedure parameters as variable assignments
a) Enhanced tests for procedures
b) Enhanced tests for variable_assignments
c) Fixed variable_assignment classifier to ignore component parameters
Invalid classification of procedure "begin" keyword as a process "begin" keyword.
1) Updated tests to include testcase
2) Updated code to handle testcase
Added rule to handle generate label and generate keyword not on the same line:
1) Added generate_015 to flag label and keyword not on the same line
2) Added tests
3) Added documentation
4) Improved classification of generates to detect label and keyword not on the same line
NOTE: This is currently not fixable.
Added feature to ensure a blank line before the first "if" statement unless there is a comment.
1) Added tests
2) Added documentation
3) Updated tests to match new rule