Floating Point Subtractor
| Library: | Floating Point Arithmetic |
Behavior
This component subtracts the floating-point value on the lower west input from the value on the upper west input and places the difference on the east output. The result is rounded to the selected floating-point size. The ERR output is 1 when the difference is NaN and 0 otherwise.
An input containing unknown or error bits is converted to NaN, so it produces a NaN result and sets ERR to 1.
Pins
- West edge, north end (input, bit width matches Float size)
- The minuend, from which the other input is subtracted.
- West edge, south end (input, bit width matches Float size)
- The subtrahend.
- East edge (output, bit width matches Float size)
- The floating-point difference: upper input minus lower input.
- South edge (output, bit width 1)
- ERR: 1 if the difference is NaN; otherwise 0.
Attributes
- Float size
- The floating-point width of both inputs and the result: 8, 16, 32, or 64 bits.
Poke Tool Behavior
None.
Text Tool Behavior
None.