# VHDL151: Functions and procedures should be defined in packages, not in architectures ## Summary ```{raw} html
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | LOW | Consistency | Conventional | 5min | synthesis, vscode, simulation, linter |
architecture a of e is procedure my_procedure; function my_function return type1; ... end;
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 ```