41 lines
898 B
Python
41 lines
898 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules import token_indent
|
|
|
|
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):
|
|
super().__init__(lTokens)
|