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

ID 683337
Date 7/15/2024
Public
Document Table of Contents

14.4.49. Round

The Round block applies a rounding operation to the floating-point input. A mask parameter popup menu selects the required rounding function that you apply.
Table 242.  Functions for the Round Block
Function Description
ceil(x) Lowest integer not less than input x.
floor(x) Highest integer not exceeding input x.
rint(x) Round to nearest integer; halfway cases rounded to even number.
round(x) Round to nearest integer; halfway cases rounded away from zero.

The Function mask parameter selects one of four rounding functions.

Table 243.  Port Interface for the Round Block
Signal Direction Type Description Vector Data Support Complex Data Support
x Input Single or double Operand Yes Yes
q Output Single or double Result Yes Yes