35 lines
785 B
Python
35 lines
785 B
Python
|
|
from vsg.rules import split_line_at_token
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.process_statement.begin_keyword)
|
|
|
|
|
|
class rule_010(split_line_at_token):
|
|
'''
|
|
This rule checks the **begin** keyword is on its own line.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
rd_full, wr_full
|
|
) is begin
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
proc_a : process (rd_en, wr_en, data_in, data_out,
|
|
rd_full, wr_full
|
|
) is
|
|
begin
|
|
'''
|
|
|
|
def __init__(self):
|
|
split_line_at_token.__init__(self, 'process', '010', lTokens)
|
|
self.solution = 'Closing parenthesis must be on a line by itself.'
|