VERILOG2058: Implicit conversion from a floating point value to an wider floating point value should be reviewed
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| LOW | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter |
Description
A floating point value is implicitly converted to a wider floating point type.
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(shortreal s); real r = s; endfunction
Compliant solution
function automatic f(shortreal s); real r = real'(s); endfunction
Parameters
No parameters.