VERILOG2036: Duplicated package imports should be removed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Consistency | Conventional | 5min | synthesis, vscode, simulation, linter, dead-code |
Description
Noncompliant code example
package p; int i; endpackage module top; import p::i; import p::i; // Noncompliant endmodule
Compliant solution
package p; int i; endpackage module top; import p::i; endmodule
A given scope contains more than one import statement for the same package and name.
Duplicated imports statements are useless and should be removed.
Parameters
No parameters.