Skip to content

Commit 911d45f

Browse files
committed
Issue#1503: Added docs for rule to check that signal assignment operator is not a different line than preceding tokens.
1 parent 883b31e commit 911d45f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/rule_groups/structure_rule_group.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Rules Enforcing Structure Rule Group
173173
* `signal_007 <../signal_rules.html#signal-007>`_
174174
* `signal_015 <../signal_rules.html#signal-015>`_
175175
* `signal_017 <../signal_rules.html#signal-017>`_
176+
* `signal_018 <../signal_rules.html#signal-018>`_
176177
* `source_file_001 <../source_file_rules.html#source-file-001>`_
177178
* `subprogram_instantiation_001 <../subprogram_instantiation_rules.html#subprogram-instantiation-001>`_
178179
* `subprogram_instantiation_002 <../subprogram_instantiation_rules.html#subprogram-instantiation-002>`_

docs/signal_rules.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,31 @@ This rule checks the structure of signal constraints.
334334
element2(3 downto 0)
335335
);
336336
337+
signal_018
338+
##########
339+
340+
|phase_1| |error| |structure|
341+
342+
This rule checks the **:=** is on the same line at the **signal** keyword.
343+
344+
**Violation**
345+
346+
.. code-block:: vhdl
347+
348+
signal size : integer
349+
:= 1;
350+
signal width : integer
351+
:= 32;
352+
353+
**Fix**
354+
355+
.. code-block:: vhdl
356+
357+
signal size : integer :=
358+
1;
359+
signal width : integer :=
360+
32
361+
337362
signal_100
338363
##########
339364

0 commit comments

Comments
 (0)