TOC PREV NEXT INDEX

interleave_2_arrays, interleave_3_arrays, interleave_4_arrays

Synopsis

interleave elements of several arrays into a 2D array

Input Port

in1

prim[]

any primitive array

in2

prim[]

any primitive array

in3

prim[]

any primitive array

in4

prim[]

any primitive array

Parameters

Output Port

out

prim[][N]

N is 2, 3 or 4

Description

These modules interleave elements from several arrays into a 2D output array. The input arrays may have any dimensionality, but they are treated as 1D, in memory order. All input arrays should have the same total size. The output array contains one element from each array in order, followed by the next element from each array, and so on.

For example, this can be used to create an XYZ coordinate array from separate X, Y, and Z arrays.

Input

n1

prim[]. One of the input arrays.

n2

prim[]. One of the input arrays.

n3

prim[]. One of the input arrays.

n4

prim[]. One of the input arrays.

Parameters

none


Output Port

out

prim[][N]. The output array containing the interleaved data.

Example

Not available

File

v/fld_map.v

See also related modules

concat_2_arrays, concat_3_arrays, concat_4_arrays

TOC PREV NEXT INDEX