Right Shift
Bitwise logical right shift operation. Shifts all bits of the input binary number to the right by a configurable amount, filling vacant leftmost positions with zeros. Does not preserve sign. Supports configurable output width. Pure combinational logic (zero latency). Non-time-multiplexed version.
Introduction
This block performs a logical right shift operation on standard (non-TM) data streams. Each bit of the input is shifted right by the specified Shift amount, and zeros are inserted in the vacant leftmost positions.
Unlike arithmetic right shift, this logical shift does not preserve the sign bit (MSB).
Pin Description
Properties
Set the input word size in bits
Number of bits per input sample. Range: 2 – 16384.Default: 16
Range: 2 – 16384
Number of bit to be shifted
Number of bit positions to shift right. Range: 0 – 16384.Default: 1
Range: 0 – 16384
Select if output should have same size of input or should be INPUT_SIZE-SHIFT
SAME SIZE→ Output width = Input widthSHIFTED SIZE→ Output width = Input width - Shift
Default: SAME SIZE
Options: SAME SIZE SHIFTED SIZE
Functional description
The logical right shift operation removes $S$ bits from the left and prepends $S$ zero bits:
$$ y = \lfloor x / 2^S \rfloor $$
Output size modes
- SAME SIZE: Output width = Input width
- SHIFTED SIZE: Output width = Input width - Shift
Timing
Purely combinational with zero latency.