Table Of Contents

Rotate 1D Array (Clock-Driven Logic)

Last Modified: September 10, 2016

Rotates the elements of an array a specified number of places and direction.

connector_pane_image
datatype_icon

array

A 1D array of any type.

datatype_icon

n

The number of places and the direction to rotate array.

The node coerces n to a 32-bit integer if you wire another representation to it.

datatype_icon

rotated array

array rotated according to n.

For example, if n is 1, the input array[0] becomes output array[1], input array[1] becomes output array[2], and so on, and input array[m-1] becomes output array[0], where m is the number of elements in the array. If n is -2, input array[0] becomes output array[m-2], input array[1] becomes output array[m-1], and so on, and input array[m-1] becomes output array[m-3], where m is the number of elements in the array.

Where This Node Can Run:

Desktop OS: none

FPGA: All devices


Recently Viewed Topics