VERILOG2090: An indexed part-select should not have a width that is wider than the bounds of the array it is selecting

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
HIGH--Intentionality | Logical10minsynthesis, 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.