VERILOG2019: Useless casts should be removed

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
LOW--Intentionality | Logical5minsynthesis, 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.