DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 12/04/2023
Public
Document Table of Contents

14.4.57. Sum of Elements (SumOfElements)

The SumOfElements block outputs the sum of the elements within its single data input.

q = Σ an

If the input is a scalar, the SumOfElements block outputs an unchanged value.

q = a

.

Table 258.  Parameters for the SumOfElements Block
Parameter Description
Output data type mode Determines how the block sets its output data type:
  • Inherit via internal rule: the number of integer and fractional bits is the maximum of the number of bits in the input data types.
  • Inherit via internal rule with word growth: the number of fractional bits is the maximum of the number of fractional bits in the input data types. The number of integer bits is the maximum of the number of integer bits in the input data types plus one. This additional word growth allows for subtracting the most negative number from 0, which exceeds the maximum positive number that you can store in the number of bits of the input.
  • Specify via dialog: you can set the output type of the block explicitly using additional fields that are available when this option is selected.
  • Boolean: the output type is Boolean.
Output data type Specifies the output data type. For example, sfix(16), uint(8).
Output scaling value Specifies the output scaling value. For example, 2^-15.
Number of Inputs Specifies the number of inputs.

.

Table 259.  Port Interface for the SumOfElements Block
Signal Direction Type Description Vector Data Support Complex Data Support
a Input Any fixed-point type Operand Yes Yes
q Output Derived fixed-point type Result No (scalar output only). Yes