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

ID 683337
Date 3/23/2022
Public

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

Document Table of Contents

14.4.31. Load Exponent (LdExp)

Table 196.  Functions for the LdExp Block
Function Description
ilogb(a) Outputs the integer logarithm of input, a, to the base 2. q=floor(log2|a|).
ldexp(a,b) outputs the first input, a, scaled by 2 raised to the power of the second input, b.

q = a.2b .

The Function mask parameter selects either ldexp or ilogb. The number of input ports on the block change according to the number of operands.

Table 197.  Port Interface for the LdExp Block
Signal Direction Type Description Vector Data Support Complex Data Support
a Input Single or double Operand 1 Yes No
b Input Integer Operand 2 Yes No
q Output floating-point for ldexp; Integer for ilogb Result Yes No