Specifications

Table Of Contents
Altera Corporation 2–5
October 2007 Nios II Processor Reference Handbook
Processor Architecture
Floating Point Instructions
The Nios II architecture supports single precision floating point
instructions as specified by the IEEE Std 754-1985. These floating point
instructions are implemented as custom instructions. Table 2–2 provides
a detailed description of the conformance to IEEE 754-1985.
Table 2–2. Hardware Conformance with IEEE 754-1985 Floating Point
Feature Implementation
Operations
(1)
Addition Implemented
Subtraction Implemented
Multiplication Implemented
Division Optional
Precision Single Implemented
Double Not implemented. Double precision operations are
implemented in software.
Exception conditions Invalid operation Result is Not a Number (NaN)
Division by zero Result is ±infinity
Overflow Result is ±infinity
Inexact Result is a normal number
Underflow
Result is ±0
Rounding Modes Round to nearest Implemented
Round toward zero Not implemented
Round toward +infinity Not implemented
Round toward -infinity Not implemented
NaN Quiet Implemented
Signaling Not implemented
Subnormal
(denormalized)
numbers
Subnormal operands are treated as zero. The floating point
custom instructions do not generate subnormal numbers.
Software exceptions Not implemented. IEEE 754-1985 exception conditions are
detected and handled as shown elsewhere in this table.
Status flags Not implemented. IEEE 754-1985 exception conditions are
detected and handled as shown elsewhere in this table.
Notes to: Table 2–2
(1) The Nios II IDE generates a software implementation of primitive floating point operations other than addition,
subtraction, multiplication, and division. This includes operations such as floating point conversions and
comparisons. The software implementations of these primitives are 100% compliant with IEEE 754-1985.