Bit Rotate

Rotate input signal by bit positions

Library

HDL Coder / Logic and Bit Operations

  • Bit Rotate block

Description

The Bit Rotate block rotates the input signal left or right by the specified number of bit positions.

Parameters

Rotate Mode: Specifies direction of rotation, left or right. The default is Rotate Left.

Rotate Length: Specifies the number of bits to rotate. Specify a value greater than or equal to zero. The default is 0.

Ports

The block has the following ports:

Input
  • Supported data types: Fixed-point, integer (signed or unsigned), Boolean

  • Minimum bit width: 2

  • Maximum bit width: 128

Output

Has the same data type as the input signal.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2014a