Skip to content

Latest commit

 

History

History
107 lines (77 loc) · 3.22 KB

configuring_optional_items.rst

File metadata and controls

107 lines (77 loc) · 3.22 KB

Configuring Optional Items

There are optional language items in VHDL. In the Language Reference Manual (LRM) they are denoted with square brackets []. Using many of these optional items improves the readability of VHDL code.

However, it may not fit the current style of existing code bases. The rules checking the optional items can be configured to add or remove them.

Option Values Default Value Description
action add, remove add
  • add = Add the optional item.
  • remove = Remove the optional item.

This is an example of how to configure these options.

rule :
  architecture_010:
     action: 'add'

Note

The following examples are using rule architecture_010.

Example: action set to add

Violation

architecture rtl of fifo is
begin
end fifo;

Violation

architecture rtl of fifo is
begin
end architecture fifo;

Example: action set to remove

Violation

architecture rtl of fifo is
begin
end architecture fifo;

Violation

architecture rtl of fifo is
begin
end fifo;

Rules Enforcing Optional Items