35 lines
877 B
Python
35 lines
877 B
Python
|
|
from vsg import token
|
|
|
|
from vsg.rules import single_space_between_token_pairs
|
|
|
|
lTokens = []
|
|
lTokens.append([token.process_statement.process_label, token.process_statement.label_colon])
|
|
|
|
|
|
class rule_024(single_space_between_token_pairs):
|
|
'''
|
|
This rule checks for a single space after the process label.
|
|
|
|
**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):
|
|
single_space_between_token_pairs.__init__(self, 'process', '024', lTokens)
|
|
self.solution = 'Ensure a single space exists between process label and :.'
|