# VERILOG2112: An arithmetic right shift of an unsigned integral type should be avoided as it will always shift in zeros ## Summary ```{raw} html
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | - | Intentionality | Logical | 10min | synthesis, vscode, linter, simulation |
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 ```