VERILOG2065: Implicit conversions from integer to real value should be reviewed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter |
Description
A integer value is implicitly converted to a floating point type (real or shortreal).
This is not necessarily wrong but make sure that it is really what was supposed to be implemented. If so, add an explicit cast.
Noncompliant code example
function automatic f(int i); real r = i; endfunction
Compliant solution
function automatic f(int i); real r = real'(i); endfunction
Parameters
No parameters.