This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Bit Rotate

Rotate input signal by bit positions


HDL Coder / HDL Operations


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


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.


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 as the input signal.

Introduced in R2014a