VERILOG2089: Out-of-bounds range should not be used to select from an array
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 10min | synthesis, vscode, linter, simulation |
Description
Noncompliant code example
logic [7:0] a; logic [2:0] b = a[9:7];
Compliant solution
logic [7:0] a; logic [2:0] b = a[5:3];
Out-of-bounds range should not be used to select from an array.
Parameters
No parameters.