forked from jeremiah-c-leary/vhdl-style-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrule_001.py
More file actions
34 lines (21 loc) · 640 Bytes
/
Copy pathrule_001.py
File metadata and controls
34 lines (21 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_indent
lTokens = []
lTokens.append(token.constant_declaration.constant_keyword)
class rule_001(token_indent):
"""
This rule checks the indent of a constant declaration.
**Violation**
.. code-block:: vhdl
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32;
**Fix**
.. code-block:: vhdl
architecture RTL of FIFO is
constant size : integer := 1;
constant width : integer := 32;
"""
def __init__(self):
super().__init__(lTokens)