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

ID 683337
Date 12/12/2022
Public

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

Document Table of Contents

15.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 236.  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 237.  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