Logical or arithmetic shift of input signal
HDL Coder / Logic and Bit Operations
The Bit Shift block performs a logical or arithmetic shift on the input signal.
Shift Mode
Default: Shift Left Logical
Specifies the type and direction of shift:
Shift Left Logical
(default)
Shift Right Logical
Shift Right Arithmetic
Shift Length
Specifies the number of bits to be shifted. Specify a value greater than or equal to zero. The default is 0.
The block has the following ports:
Supported data types: Fixed-point, integer (signed or unsigned), Boolean
Minimum bit width: 2
Maximum bit width: 128
Has the same data type and bit width as the input signal.