yx Floating Point Exponentiator
| Library: | Floating Point Arithmetic |
Behavior
This component calculates one of three floating-point exponential functions, selected by the Exponentiation Mode attribute. The result is rounded to the selected floating-point size.
- Arbitrary base
- Calculates yx, using the upper west input as the base y and the lower west input as the exponent x.
- Exponential
- Calculates ex from the single west input.
- Exponential minus one
- Calculates ex − 1 from the single west input. This mode preserves better numerical accuracy than subtracting 1 from the exponential result when x is close to zero.
The ERR output is 1 when the result is NaN and 0 otherwise. An input containing unknown or error bits is converted to NaN. Other floating-point results, including positive or negative infinity, do not set ERR.
Pins
- West edge, north end (input, bit width matches Float size)
- The base y. This pin is present only in Arbitrary base mode.
- West edge, south end (input, bit width matches Float size)
- The exponent x in Arbitrary base mode.
- West edge, center (input, bit width matches Float size)
- The exponent x in either single-input exponential mode.
- East edge (output, bit width matches Float size)
- The selected exponential result.
- South edge (output, bit width 1)
- ERR: 1 if the result is NaN; otherwise 0.
Attributes
- Float size
- The floating-point width of all inputs and the result: 8, 16, 32, or 64 bits.
- Exponentiation Mode
- Selects arbitrary-base exponentiation, the natural exponential, or the natural exponential minus one.
Poke Tool Behavior
None.
Text Tool Behavior
None.