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

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

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

This rule checks the if keyword has proper case.

Violation

IF condition generate

Fix

if condition generate

if_generate_statement_501

This rule checks the generate keyword has proper case.

Violation

if condition GENERATE
elsif condition GENERATE
else GENERATE

Fix

if condition generate
elsif condition generate
else generate

if_generate_statement_502

This rule checks the elsif keyword has proper case.

Violation

ELSIF condition generate

Fix

elsif condition generate

if_generate_statement_503

This rule checks the else keyword has proper case.

Violation

ELSE generate

Fix

else generate