39 lines
754 B
Python
39 lines
754 B
Python
|
|
from vsg.rules import token_indent
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.process_statement.end_keyword)
|
|
|
|
|
|
class rule_006(token_indent):
|
|
'''
|
|
This rule checks the indent of the **end process** keywords.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
rd_full, wr_full
|
|
) is
|
|
begin
|
|
|
|
end process proc_a;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
rd_full, wr_full
|
|
) is
|
|
begin
|
|
|
|
end process proc_a;
|
|
'''
|
|
|
|
def __init__(self):
|
|
token_indent.__init__(self, 'process', '006', lTokens)
|