VERILOG2090: An indexed part-select should not have a width that is wider than the bounds of the array it is selecting
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 10min | synthesis, vscode, linter, simulation |
Description
An indexed part-select has a width that is wider than the bounds of the array it is selecting.
Noncompliant code example
logic [1:0] a; int b; logic [2:0] c = a[b+:3]; // Noncompliant: Cannot select range of 3 elements from 'logic[1:0]'
Parameters
No parameters.