vhdl-style-guide/vsg/rules/sequential/rule_009.py

38 lines
837 B
Python

from vsg.rules import multiline_structure as Rule
from vsg import token
lTokenPairs = []
lTokenPairs.append([token.simple_waveform_assignment.target, token.simple_waveform_assignment.semicolon])
class rule_009(Rule):
'''
This rule checks the structure of multiline simple sequential signal assignments that contain arrays.
|configuring_array_multiline_structure_rules_link|
**Violation**
.. code-block:: vhdl
wr_data <= (0, 65535, 32768);
**Fix**
.. code-block:: vhdl
wr_data <=
(
0,
65535,
32768
);
'''
def __init__(self):
Rule.__init__(self, 'sequential', '009', lTokenPairs)
self.assignment_operator = token.simple_waveform_assignment.assignment
self.semicolon = token.simple_waveform_assignment.semicolon