# VHDL151: Functions and procedures should be defined in packages, not in architectures ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
--LOWConsistency | Conventional5minsynthesis, vscode, simulation, linter
``` ## Description ```{raw} html

Noncompliant code example

architecture a of e is
  procedure my_procedure;
  function my_function return type1;
  ...
end;

Compliant solution

package p is
  procedure my_procedure;
  function my_function return type1;
  ...
end;

Functions and procedures should be defined in packages, not in architectures.

``` ## Parameters No parameters. ```{raw} html ```