41 lines
907 B
Python
41 lines
907 B
Python
|
|
from vsg.rules import token_indent
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.concurrent_signal_assignment_statement.label_name)
|
|
lTokens.append(token.concurrent_signal_assignment_statement.postponed_keyword)
|
|
lTokens.append(token.concurrent_simple_signal_assignment.target)
|
|
lTokens.append(token.concurrent_conditional_signal_assignment.target)
|
|
lTokens.append(token.concurrent_selected_signal_assignment.with_keyword)
|
|
|
|
|
|
class rule_001(token_indent):
|
|
'''
|
|
This rule checks the indent of concurrent assignments.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture RTL of FIFO is
|
|
begin
|
|
|
|
wr_en <= '0';
|
|
rd_en <= '1';
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture RTL of FIFO is
|
|
begin
|
|
|
|
wr_en <= '0';
|
|
rd_en <= '1';
|
|
'''
|
|
|
|
def __init__(self):
|
|
token_indent.__init__(self, 'concurrent', '001', lTokens)
|