Numbers -6 – Altera Floating-Point User Manual

Page 121

Advertising
background image

ALTFP_CONVERT Design Example: Convert Double-Precision Floating-

Point Format Numbers

This design example uses the ALTFP_CONVERT IP core to convert double-precision floating-point

format numbers to 64-bit integers. This design example uses the parameter editor in the Quartus II

software.

Related Information

Floating-Point IP Cores Design Example Files

on page 1-16

Floating-Point IP Cores Design Examples

Provides the design example files for the Floating-Point IP cores

ModelSim-Altera Software Support

Provides information about installation, usage, and troubleshooting

ALTFP_CONVERT Design Example: Understanding the Simulation Results

The simulation waveform in this design example is not shown in its entirety. Run the design example files

in the ModelSim-Altera software to see the complete simulation waveforms.
This figure shows the expected simulation results in the ModelSim-Altera software.

Figure 17-1: ALTFP_CONVERT Simulation Waveform

This design example implements a float-to-integer converter for converting double-precision floating-

point format numbers to 64-bit integers. In this operation, the optional exception ports of

overflow

,

underflow

, and

nan

are available apart from the

result[]

port.

The latency for the float-to-integer operation is six clock cycles. Therefore, each conversion generates the

output result six clock cycles after receiving the input value.
This table lists the inputs and corresponding outputs obtained from the simulation in the waveform.

17-6

ALTFP_CONVERT Design Example: Convert Double-Precision Floating-Point Format

Numbers

UG-01058

2014.12.19

Altera Corporation

ALTFP_CONVERT IP Core

Send Feedback

Advertising