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

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

14.4.31. Load Exponent (LdExp)

Table 209.  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 210.  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