# VERILOG2112: An arithmetic right shift of an unsigned integral type should be avoided as it will always shift in zeros ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Intentionality | Logical10minsynthesis, vscode, linter, simulation
``` ## Description ```{raw} html

Noncompliant code example

function bit[31:0] fly(int unsigned i);
  return i >>> 5;
endfunction

An arithmetic right shift of an unsigned integral type will always shift in zeros, which can be confusing since typically this operator is used to shift in the value of the most significant bit. If this is intended behavior use the logical right shift operator which does the same.

``` ## Parameters No parameters. ```{raw} html ```