Engee documentation

Bit Rotate

Shifts the input signal by bit positions.

blockType: Bit Rotate

Path in the library:

/Basic/Logic and Bit Operations/Bit Rotate

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

Int8, Int16, Int32, Int64, Int128, UInt128 UInt8, UInt16, UInt32, UInt64, Bool, Fixed.

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

Int8, Int16, Int32, Int64, Int128, UInt128, UInt8, UInt16, UInt32, UInt64, Bool, Fixed.

Complex numbers support

Yes

Parameters

Parameters

# Rotate Mode — shear direction
Rotate Left | Rotate Right

Details

Specify the shift direction, left or right.

Values

Rotate Left | Rotate Right

Default value

Rotate Left

Program usage name

mode

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

0

Program usage name

N

Tunable

No

Evaluatable

Yes