39 lines
741 B
Python
39 lines
741 B
Python
|
|
from vsg.rules import token_indent
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.process_statement.process_label)
|
|
lTokens.append(token.process_statement.postponed_keyword)
|
|
lTokens.append(token.process_statement.process_keyword)
|
|
|
|
|
|
class rule_001(token_indent):
|
|
'''
|
|
This rule checks the indent of the process declaration.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
begin
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
architecture rtl of fifo is
|
|
|
|
begin
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
'''
|
|
|
|
def __init__(self):
|
|
token_indent.__init__(self, 'process', '001', lTokens)
|