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

ID 683337
Date 5/27/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

15.4.38. MinMaxCtrl

The MinMaxCtrl block applies a minimum or maximum operator to the inputs depending on the Boolean signal it receives on the control port.
Table 216.  Functions of the MinMaxCtrl Block
s Function Description
0 Minimum Output a if a < b, otherwise output b.
1 Maximum Output a if a > b, otherwise output b.

The Output data type mode mask parameter applies only if the inputs a and b are fixed-point format.

Table 217.  Parameters for the MinMaxCtrl 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.
  • Specify via dialog: you can set the output type of the block explicitly using additional fields that are available.This option reinterprets the output bit pattern from the LSB up according to the specified type.
  • 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.
Table 218.  Port Interface for the MinMaxCtrl Block
Signal Direction Type Description Vector Data Support Complex Data Support
  Input Fixed-point, single or double Operand 1 Yes No
b Input Fixed-point, single or double Operand 2 Yes No
s Input Boolean Select input Yes No
q Output Fixed-point, single or double Result Yes No