VERILOG2030: Implicit constant conversions that truncate should be fixed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter |
Description
A constant value is truncated by an implicit conversion. It is likely an error that must be fixed.
Noncompliant code example
module fly; logic [9:0] a = 9000; endmodule
Compliant solution
module fly; logic [9:0] a = 900; endmodule
Parameters
No parameters.