Issue#1008: Removing duplicate configuration documentation. (#1019)
This commit is contained in:
parent
6057e10792
commit
4eac4c53c3
|
|
@ -12,7 +12,6 @@ Configuring
|
|||
configuring_comment_keywords.rst
|
||||
configuring_concurrent_procedure_call_statement_rules.rst
|
||||
configuring_conditional_multiline_indent_rules.rst
|
||||
configuring_conditional_expressions_structure_rules.rst
|
||||
configuring_consecutive_blank_line_rules.rst
|
||||
configuring_disabled_rules.rst
|
||||
configuring_identifier_alignment_rules.rst
|
||||
|
|
|
|||
|
|
@ -1,77 +0,0 @@
|
|||
|
||||
.. _configuring-concurrent-structure-rules:
|
||||
|
||||
Configuring Concurrent Structure Rules
|
||||
--------------------------------------
|
||||
|
||||
There are rules which will check the structure of conditional expressions and waveforms.
|
||||
|
||||
The alignment of multiline rules is handled by a corresponding rule.
|
||||
Both rules are required to ensure proper formatting of multiline conditional expressions and waveforms.
|
||||
The corresponding rule will be noted in the rule documentation.
|
||||
|
||||
There are several options to these rules:
|
||||
|
||||
+-----------------------+---------+---------+---------------------------------------------------------+
|
||||
| Method | Type | Default | Description |
|
||||
+=======================+=========+=========+=========================================================+
|
||||
| new_line_after_assign | string | no | First opening parenthesis on its own line. |
|
||||
+-----------------------+---------+---------+---------------------------------------------------------+
|
||||
| ignore_single_line | string | yes | Do not apply rules if expression/condition is contained |
|
||||
| | | | on a single line. |
|
||||
+-----------------------+---------+---------+---------------------------------------------------------+
|
||||
|
||||
The options can be combined to format the output.
|
||||
|
||||
Each option except :code:`ignore_single_line` allows one of three values: yes, no and ignore.
|
||||
|
||||
+----------------------+---------------------------------------------------------+
|
||||
| Option Value | Action |
|
||||
+======================+=========================================================+
|
||||
| yes | Option will be enforced. |
|
||||
+----------------------+---------------------------------------------------------+
|
||||
| no | The inverse of the Option will be enforced. |
|
||||
+----------------------+---------------------------------------------------------+
|
||||
| ignore | The option will be ignored. |
|
||||
+----------------------+---------------------------------------------------------+
|
||||
|
||||
The :code:`ignore_single_line` option allows one of two values: yes and ignore.
|
||||
|
||||
+----------------------+--------------------------------------------------------------+
|
||||
| Option Value | Action |
|
||||
+======================+==============================================================+
|
||||
| yes | Force assignments to a single line. |
|
||||
+----------------------+--------------------------------------------------------------+
|
||||
| ignore | Allow assignments to span multiple lines. |
|
||||
+----------------------+--------------------------------------------------------------+
|
||||
|
||||
This is an example of how to configure these options.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
rule :
|
||||
concurrent_011:
|
||||
ignore_single_line : 'no'
|
||||
|
||||
.. NOTE:: All examples below are using the rule **concurrent_011** and the option ignore_single_line is 'no'.
|
||||
|
||||
Example: new_line_after_assign
|
||||
##############################
|
||||
|
||||
The following code would fail with this option:
|
||||
|
||||
.. code-Block:: vhdl
|
||||
|
||||
write_en <= '1' when sig1 = "00" else '0';
|
||||
|
||||
The following code would pass with this option:
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
write_en <=
|
||||
'1' when sig1 = "00" else '0';
|
||||
|
||||
Rules Enforcing Conditional Expression Structure
|
||||
################################################
|
||||
|
||||
* `concurrent_011 <concurrent_rules.html#concurrent-011>`_
|
||||
Loading…
Reference in New Issue