VHDL218: A file should not define more than one entity
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | LOW | Adaptability | Focused | 10min | synthesis, vscode, simulation, linter, cnes, cnes-std-01000 |
Description
To simplify reviews and changes, a file should not define more than one entity.
Noncompliant code example
my_entities.vhd
entity my_entity_1 is end; entity my_entity_2 is end;
Compliant solution
my_entity_1.vhd
entity my_entity_1 is end;
my_entity_2.vhd
entity my_entity_2 is end;
Parameters
No parameters.