Engee documentation

Bit Reduce

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

bit reduce

Description

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

Ports

Input

# IN — input signal
scalar | vector

Details

An input signal over which a 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

No

Output

# OUT — output signal
scalar | vector

Details

An output signal reduced to a bit.

Data types

Ufix1.

Complex numbers support

No

Parameters

Main

# 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