Skip to content

Latest commit

 

History

History
139 lines (79 loc) · 2.09 KB

if_generate_statement_rules.rst

File metadata and controls

139 lines (79 loc) · 2.09 KB

If Generate Statement Rules

if_generate_statement_300

|phase_4| |error| |indent|

This rule checks the indent of the elsif keyword.

Violation

ram_array : if condition generate
   elsif condition generate
end generate;

Fix

ram_array : if condition generate
elsif condition generate
end generate;

if_generate_statement_301

|phase_4| |error| |indent|

This rule checks the indent of the else keyword.

Violation

ram_array : if condition generate
   else
end generate;

Fix

ram_array : if condition generate
else
end generate;

if_generate_statement_500

|phase_6| |error| |case| |case_keyword|

This rule checks the if keyword has proper case.

|configuring_uppercase_and_lowercase_rules_link|

Violation

IF condition generate

Fix

if condition generate

if_generate_statement_501

|phase_6| |error| |case| |case_keyword|

This rule checks the generate keyword has proper case.

|configuring_uppercase_and_lowercase_rules_link|

Violation

if condition GENERATE
elsif condition GENERATE
else GENERATE

Fix

if condition generate
elsif condition generate
else generate

if_generate_statement_502

|phase_6| |error| |case| |case_keyword|

This rule checks the elsif keyword has proper case.

|configuring_uppercase_and_lowercase_rules_link|

Violation

ELSIF condition generate

Fix

elsif condition generate

if_generate_statement_503

|phase_6| |error| |case| |case_keyword|

This rule checks the else keyword has proper case.

|configuring_uppercase_and_lowercase_rules_link|

Violation

ELSE generate

Fix

else generate