VHDL151: Functions and procedures should be defined in packages, not in architectures
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | LOW | Consistency | Conventional | 5min | synthesis, vscode, simulation, linter |
Description
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.