VERILOG057: Named parameters should be used for all instantiations and class parameter overrides
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | MEDIUM | Intentionality | Clear | 15min | synthesis, vscode, simulation, linter |
Description
Named parameters should be used for all instantiations and class parameter overrides.
Noncompliant code example
fly #(10, 20) i_fly(); // Noncompliant dream #(5) i_dream(); // // Noncompliant
Compliant solution
fly #(.HEIGHT(10), .WIDTH(20)) i_fly(); dream #(.HEIGHT(5)) i_dream();
Articles & blog posts
Parameters
No parameters.