VERILOG2019: Useless casts should be removed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Intentionality | Logical | 5min | synthesis, vscode, linter, simulation, dead-code |
Description
Noncompliant code example
module fly; int i, j; assign i = int'(j); // Noncompliant: Useless cast from 'int' to the same type endmodule
Compliant solution
module fly; int i, j; assign i = j; endmodule
Useless casts should be removed.
Parameters
No parameters.