Engee documentation

Demux

Unpacking and output of vector signal elements.

blockType: Demux

Path in the library:

/Basic/Signal Routing/Demux

Description

Block Demux decompresses the components of the input vector signal and outputs the individual signals. The output ports are ordered from top to bottom.

The block distributes the signals evenly, but if the number of elements at the input is not completely divided by the number of outputs, then the dimension increases alternately at the outputs from top to bottom.

Ports

Input

# IN_1 — input vector signal
vector

Details

The vector input signal from which the block consists Demux selects scalar signals or smaller vectors.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed

Complex numbers support

Yes

Output

# OUT_1 — output signals extracted from the input vector signal
scalar | vector

Details

Output signals extracted from the input vector. The output ports are ordered from top to bottom.

The number of output signals depends on the parameter value Number of outputs.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed

Complex numbers support

Yes

# OUT_2 — output signals extracted from the input vector signal
scalar | vector

Details

Output signals extracted from the input vector. The output ports are ordered from top to bottom.

The number of output signals depends on the parameter value Number of outputs.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed

Complex numbers support

Yes

Parameters

Main

# Number of outputs — number of output signals

Details

Set the number of outputs.

If you specify a number of outputs that is less than the number of input elements, the block distributes the elements across the outputs as evenly as possible.

If the parameter is set as a scalar, it specifies the number of output ports. If the parameter is set by a vector, then the number of outputs is equal to the length of the vector, while on -the output port will have a length vector . If the length of the input signal does not match the sum of the set lengths of the output signals, the block returns an error. In this case, the elements of the vector must be positive integers, or −1 (a vector of any length or a scalar is allowed at this input).

Default value

2

Program usage name

Outputs

Tunable

No

Evaluatable

Yes

Additional options

C code generation: Yes