VERILOG2066: Integers should not overflow
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 10min | synthesis, vscode, linter, simulation |
Description
Integer literals that overflow a 32-bit integer (31-bits plus sign) should be carefully reviewed.
Noncompliant code example
int i = 2147483648; // Noncompliant: Truncated to -2147483648
Parameters
No parameters.