Engee documentation

Bit Reduce

Reduces the AND, OR, or XOR bits of all input signal bits to one bit.

blockType: Bit Reduce

Path in the library:

/Basic/Logic and Bit Operations/Bit Reduce

Description

Block Bit Reduce performs the selected bit reduction operation (AND, OR, or XOR) on all bits of the input signal, outputs single-bit data to the output.

Ports

Input

# IN_1 — Input signal
scalar | vector

Details

The input signal over which the bit reduction operation is performed.

  • Minimum bit width: 2

  • Maximum bit width: 128

Data types

Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed-point

Complex numbers support

I don’t

Output

# OUT_1 — Output signal
scalar | vector

Details

The output signal, reduced to a bit.

Data types

Ufix1

Complex numbers support

I don’t

Parameters

Parameters

# Reduction Mode — input reduction operation
AND | OR | XOR

Details

input signal reduction operation. Defined as:

  • AND (By default) - performs bitwise AND reduction of the input signal.

  • OR - performs bitwise OR reduction of the input signal.

  • XOR - performs bitwise XOR reduction of the input signal.

Values

AND | OR | XOR

Default value

AND

Program usage name

mode

Tunable

No

Evaluatable

No