Bit Rotate
Shifts the input signal by bit positions.
blockType: Bit Rotate
Path in the library:
|
Description
The Bit Rotate block shifts the input signal left or right by the specified number of bit positions.
Ports
Input
#
IN_1
—
input signal
scalar | vector
Details
An input signal that is shifted:
-
Minimum bit width:
2. -
Maximum bit width:
128.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
OUT_1
—
output signal
scalar | vector
Details
An output signal shifted by a specified number of bits. The output signal has the same data type as the input signal.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Parameters
#
Rotate Mode —
shear direction
Rotate Left | Rotate Right
Details
Specify the shift direction, left or right.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
# Rotate Length (must be greater than or equal to zero) — number of bits to shift
Details
Specify the number of bits to shift.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |