VERILOG2104: Variables should be assigned a value before being used
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 5min | synthesis, vscode, simulation, linter |
Description
A variable should be assigned a value before being used.
Noncompliant code example
module fly; int i; int j = i; endmodule
Compliant solution
module fly; int i = 1; int j = i; endmodule
Parameters
No parameters.