Why is this an issue?

Vector overflows lead to unexpected behaviors. Thus, vector overflows should be carefully reviewed.

How to fix it

Code examples

Noncompliant code example

logic [8:0] i = 7'd256; // Noncompliant: 9 bit needed

Compliant solution

logic [8:0] i = 9'd256;