concat_2_arrays, concat_3_arrays, concat_4_arrays
Synopsis
concatenate elements of several arrays or individual scalar primitives into an array
Input Ports
in1 |
prim[] |
any scalar primitive or array of such |
in2 |
prim[] |
any scalar primitive or array of such |
in3 |
prim[] |
any scalar primitive or array of such |
in4 |
prim[] |
any scalar primitive or array of such |
Output Port
out |
prim[][N] |
N is 2, 3 or 4 |
Description
These modules concatenate elements of several arrays or individual scalar primitives into an output array. Input arrays may have any dimensionality, but are treated as 1-dimensional, in memory order.
Input arrays can have different total sizes; the size of the output array is the sum of the sizes of the input arrays. The output array contains all elements from the first array, followed by all elements from the second 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 or scalar primitives.
in2
prim[]. One of the input arrays or scalar primitives.
in3
prim[]. One of the input arrays or scalar primitives.
in4
prim[]. One of the input arrays or scalar primitives.
Parameters
none
Output Port
out
prim[]. The output array containing the concatenated data.
Example
Not available.
File
v/fld_map.v
See also