VHDL012: Function names should be unique in a project
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | LOW | Intentionality | Clear | 30min | synthesis, do254, linter, do254-dr3, simulation, naming |
Description
Using multiple times the same name for different functions is confusing. Names should be unique and should describe the functionality.
Noncompliant code example
File 1: function fly return type1 end; File 2: function fly return type1 end;
Compliant solution
File 1: function fly return type1 end; File 2: function dream return type1 end;
Parameters
No parameters.