Configuring Port Mode Alignment
The number of spaces before and after each port mode (‘in’, ‘out’, ‘inout’, ‘buffer’, ‘linkage’) can be individually set. This is accomplished using the spaces_before and spaces_after options for those rules.
Option |
Values |
Default Value |
Description |
---|---|---|---|
|
integer > 0 |
1 |
Sets the number of spaces required before the mode |
|
integer > 0 |
Rule dependent |
Sets the number of spaces required after the mode |
This is an example of how to configure these options.
rule :
port_007:
spaces_before: 1
spaces_after : 4
Example: Align modes to the left (default)
rule :
port_007:
spaces_before: 1
spaces_after : 4
port_008:
spaces_before: 1
spaces_after : 3
port_009:
spaces_before: 1
spaces_after : 1
which results in the following format being enforced:
I_INPUT : in std_logic;
O_OUTPUT : out std_logic;
IO_INOUT : inout std_logic;
Example: Align modes based on type
rule :
port_007:
spaces_before: 1
spaces_after : 4
port_008:
spaces_before: 3
spaces_after : 1
port_009:
spaces_before: 1
spaces_after : 1
would result in the following format being enforced:
I_INPUT : in std_logic;
O_OUTPUT : out std_logic;
IO_INOUT : inout std_logic;