Case Generate Statement Rules

case_generate_statement_400

phase_5 disabled error alignment

This rule checks the => are aligned in case_generate_alternatives.

Note

The default configuration is compact_alignment.

Refer to Configuring Keyword Alignment Rules for information on changing the configurations.

Violation

gc : case I generate
  when 1 =>
  when n_order =>
  when others =>
end generate gc;

Fix

gc : case I generate
  when 1       =>
  when n_order =>
  when others  =>
end generate gc;

case_generate_statement_500

phase_6 error case case_keyword

This rule checks the case keyword has proper case.

Refer to Configuring Uppercase and Lowercase Rules for more information.

Violation

CASE expression generate

Fix

case expression generate

case_generate_statement_501

phase_6 error case case_keyword

This rule checks the generate keyword has proper case.

Refer to Configuring Uppercase and Lowercase Rules for more information.

Violation

case expression GENERATE

Fix

case expression generate