interleave_2_arrays, interleave_3_arrays, interleave_4_arrays


Synopsis

interleave elements of several arrays into a 2D array

Input Ports

in1

prim[]

any primitive array

in2

prim[]

any primitive array

in3

prim[]

any primitive array

in4

prim[]

any primitive array

 

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 Ports

in1

prim[]. One of the input arrays.

in2

prim[]. One of the input arrays.

in3

prim[]. One of the input arrays.

in4

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