![Intel NIOS II Owner Reference Manual Download Page 19](http://html1.mh-extra.com/html/intel/nios-ii/nios-ii_owner-reference-manual_2071826019.webp)
Feature
Floating Point Hardware
Implementation with IEEE
754-1985
Floating Point Hardware 2
Implementation with IEEE
754-2008
Double
Not implemented. Double precision
operations are implemented in
software.
Not implemented. Double precision
operations are implemented in
software.
Exception
conditions
Invalid operation
Result is Not a Number (NaN)
Result is Not a Number (NaN)
Division by zero
Result is ±infinity
Result is ±infinity
Overflow
Result is ±infinity
Result is ±infinity
Inexact
Result is a normal number
Result is a normal number
Underflow
Result is ±0
Result is ±0
Rounding Modes
Round to nearest
Implemented
Implemented (roundTiesToAway mode)
Round toward
zero
Not implemented
Implemented (truncation mode)
Round toward
+infinity
Not implemented
Not implemented
Round toward –
infinity
Not implemented
Not implemented
NaN
Quiet
Implemented
No distinction is made between
signaling and quiet NaNs as input
operands. A result that produces a NaN
may produce either a signaling or quiet
NaN.
Signaling
Not implemented
Subnormal
(denormalized)
numbers
Subnormal operands are treated as
zero. The FPH2 custom instructions do
not generate subnormal numbers.
• The comparison, minimum,
maximum, negate, and absolute
operations support subnormal
numbers.
• The add, subtract, multiply, divide,
square root, and float to integer
operations do NOT support
subnormal numbers. Subnormal
operands are treated as signed
zero. The FPH1 custom instructions
do not generate subnormal
numbers.
(
2
)
• The integer to float operation
cannot create subnormal numbers.
Software
exceptions
Not implemented. IEEE 754-1985
exception conditions are detected and
handled as described elsewhere in this
table.
Not implemented. IEEE 754-2008
exception conditions are detected and
handled as described elsewhere in this
table.
(
2
)
Status flags
Not implemented. IEEE 754-1985
exception conditions are detected and
handled as described elsewhere in this
table.
Not implemented. IEEE 754-2008
exception conditions are detected and
handled as described elsewhere in this
table.
(
2
)
Note:
The FPH2 component also supports faithful rounding, which is not an IEEE 754-defined
rounding mode. Faithful rounding rounds results to either the upper or lower nearest
single-precision numbers. Therefore, the result produced is one of two possible values
and the choice between the two is not defined. The maximum error of faithful
rounding is 1 unit in the last place (ulp). Errors may not be evenly distributed.
(2)
This operation is not fully compliant with IEEE 754-2008.
2. Processor Architecture
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
19