Block Preview

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

IN Input Variable bit BIT VECTOR
Input binary data (non-TM).
Default: Must be connected
OUT Output Variable bit BIT VECTOR
Logical right-shifted output (non-TM), combinational (zero latency).

Properties

Property window

Input Size InputWordSize

Set the input word size in bits

Number of bits per input sample. Range: 2 – 16384.

Default: 16

Range: 2 – 16384

Shift Shift

Number of bit to be shifted

Number of bit positions to shift right. Range: 0 – 16384.

Default: 1

Range: 0 – 16384

Output Size OutputSize

Select if output should have same size of input or should be INPUT_SIZE-SHIFT

  • SAME SIZE → Output width = Input width
  • SHIFTED 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.