VHDL236: Vector assignments should not be hardcoded
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | MEDIUM | Consistency | Conventional | 5min | synthesis, do254, vscode, simulation, linter, do254-cp4 |
Description
Noncompliant code example
a <= "00000000";
Compliant solution
a <= (others => '0');
Vector assignment should be done in a way that is independent of the size of the vector. This limits the impact of changing vector sizes.
Parameters
No parameters.