Accelerators · Medium · SystemVerilog

Vector Reduction Unit

Reduce four signed lanes to either their sum or maximum.

Task

When op_max is zero output the sum of all lanes; when high output the signed maximum.

Examples

Constraints

Accelerator verification checklist

Concepts to review

SIMD, reduction, tree

Open Vector Reduction Unit in the HDLForge interactive editor.

Related problems