Altera Floating-Point Manuale Utente

Navigare online o scaricare Manuale Utente per Strumenti di misura Altera Floating-Point. Altera Floating-Point User Manual Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 157
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1 - San Jose, CA 95134

Floating-Point IP Cores User GuideSubscribeSend FeedbackUG-010582014.12.19101 Innovation DriveSan Jose, CA 95134www.altera.com

Pagina 2 - Contents

available in the Quartus II IP Catalog. For more information about using the Qsys IP Catalog, referto Creating a System with Qsys in the Quartus II Ha

Pagina 3

Table 13-2: ALTFP_ATAN Resource Utilization and PerformanceDevice Family Function PrecisionOutputLatencyLogic usagefMAX (MHz)AdaptiveLook-UpTables(ALU

Pagina 4

Table 13-4: ALTFP_ATAN ParametersParameterNameType Required DescriptionWIDTH_EXP Integer Yes Specifies the precision of the exponent. The bias of thee

Pagina 5

ALTFP_SINCOS IP Core142014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_SINCOS IP core acc

Pagina 6

Table 14-1: ALTFP_SINCOS Resource Utilization and PerformanceDevice Family Function PrecisionOutputLatencyLogic usagefMAX (MHz)AdaptiveLook-UpTables(A

Pagina 7 - About Floating-Point IP Cores

Table 14-3: ALTFP_SINCOS IP Core Output SignalsPort Name Required Descriptionresult[] Yes The trigonemetric of the data[] input port in floating-point

Pagina 8 - Design Flow

ALTFP_ABS IP Core152014.12.19UG-01058SubscribeSend FeedbackALTFP_ABS FeaturesThe ALTFP_ABS IP core offers the following features:• Absolute value of a

Pagina 9

Table 15-1: ALTFP_ABS Resource Utilization and Performance for the Stratix III Device FamilyPrecisionOutputLatencyLogic usagefMAX (MHz)AdaptiveLook-Up

Pagina 10 - Using the Parameter Editor

In this example, the latency of the multiplier is set to five clock cycles, while none is being set for theabsolute value function. Thus, the absolute

Pagina 11

Figure 15-2: ALTFP_ABS Signalsdata[]overflow_innan_indivision_by_zero_inzero_inunderflow_inclk_enclockinstALTFP_ABSresult[]overflownanunderflowzerodiv

Pagina 12 - File Name Description

Table 15-4: ALTFP_ABS Output SignalsPort Name Required Descriptionresult[] Yes The absolute value result of the input data. The size of thisport corre

Pagina 13

• Optionally select preset parameter values if provided for your IP core. Presets specify initialparameter values for specific applications.• Specify

Pagina 14

Port Name Type Required DescriptionWIDTH_MAN Integer Yes Specifies the precision of the mantissa. If thisparameter is not specified, the default is 23

Pagina 15 - Upgrading IP Cores

ALTFP_COMPARE IP Core162014.12.19UG-01058SubscribeSend FeedbackALTFP_COMPARE FeaturesThe ALTFP_COMPARE IP core offers the following features:• Compari

Pagina 16

Table 16-1: ALTFP_COMPARE Resource Utilization and Performance for Stratix IV DevicesDevice Family PrecisionOutputLatencyLogic UsagefMAX (MHz)Adaptive

Pagina 17

This table lists the inputs and corresponding outputs obtained from the simulation in the waveform.Table 16-2: Summary of Input Values and Correspondi

Pagina 18 - Related Information

Table 16-3: ALTFP_COMPARE Input SignalsPort Name Required Descriptionaclr No Asynchronous clear. The source is asynchronously reset when assertedhigh.

Pagina 19 - Floating-Point Formats

Table 16-5: ALTFP_COMPARE ParametersPort Name Type Required DescriptionWIDTH_EXP Integer Yes Specifies the precision of the exponent. If thisparameter

Pagina 20 - Special Case Numbers

ALTFP_CONVERT IP Core172014.12.19UG-01058SubscribeSend FeedbackALTFP_CONVERT FeaturesThe ALTFP_CONVERT IP core offers the following features:• Convers

Pagina 21 - Non-IEEE-754 Standard Format

Table 17-2: ALTFP_CONVERT Conversion OperationsOperation FeaturesInteger-to-Float Conversion• Converts integers to the IEEE-754 standard floating-poin

Pagina 22 - Fraction bits

Table 17-3: Latency Options for Each OperationOperation Conversion From Latency (in clock cycles)Integer-to-Float N/A 6Float-to-Integer N/A 6Float-to-

Pagina 23

Operation Format PipelineLogic UsagefMAX (MHz)AdaptiveLook-UpTables(ALUTs)DedicatedLogicRegisters(DLRs)AdaptiveLogicModules(ALMs)Float-to-IntegerSingl

Pagina 24 - VHDL LIBRARY-USE Declaration

Figure 1-5: IP Core Generated Files<your_testbench>_tb.csv<your_testbench>_tb.spd<your_ip>.cmp - VHDL component declaration file<

Pagina 25 - ALTERA_FP_MATRIX_INV IP Core

Operation Format PipelineLogic UsagefMAX (MHz)AdaptiveLook-UpTables(ALUTs)DedicatedLogicRegisters(DLRs)AdaptiveLogicModules(ALMs)Fixed-to-Float16.16 f

Pagina 26

ALTFP_CONVERT Design Example: Convert Double-Precision Floating-Point Format NumbersThis design example uses the ALTFP_CONVERT IP core to convert doub

Pagina 27

Table 17-5: Summary of Input Values and Corresponding OutputsTime Event0 ns, start-up dataa[] value: C394 AD22 761B 9EE5hOutput value: The result[] po

Pagina 28

ALTFP_CONVERT SignalsFigure 17-2: ALTFP_CONVERT Signalsdataa[]clockclk_eninstALTFP_CONVERTresult[]overflownanunderflowaclrTable 17-6: ALTFP_CONVERT In

Pagina 29 - Matrix Inversion Operation

Table 17-7: ALTFP_CONVERT Output SignalsPort Name Required Descriptionresult[] Yes Output for the floating-point converter. The size of this output po

Pagina 30 - Precision Format Numbers

ALTFP_CONVERT ParametersTable 17-8: ALTFP_CONVERT ParametersPort Name Type Required DescriptionWIDTH_EXP_INPUTInteger Yes Specifies the precision of t

Pagina 31

Port Name Type Required DescriptionWIDTH_DATA Integer Yes Specifies the input data width.If the operation is INT2FLOAT, the WIDTH_DATA is alsoWIDTH_IN

Pagina 32 - Sample Matrix Data

Port Name Type Required DescriptionOPERATION Integer Yes Specifies the operating mode. Values are INT2FLOAT,FLOAT2INT, FLOAT2FLOAT, FLOAT2FIXED, andFI

Pagina 33 - Matrix Data

ALTERA_FP_FUNCTIONS IP Core182014.12.19UG-01058SubscribeSend FeedbackALTERA_FP_FUNCTIONS FeaturesThe ALTERA_FP_FUNCTIONS IP core offers the following

Pagina 34 - ALTERA_FP_MATRIX_INV Signals

Function DescriptionComparisonsMinMaxLess than (or equal)Greater than (or equal)(Not) EqualExp/Log/PowPowerExponential (Base 2, 10, e)Log (Base 2, 10,

Pagina 35

File Name Description<my_ip>.cmp The VHDL Component Declaration (.cmp) file is a text file thatcontains local generic and port definitions that

Pagina 36 - ALTERA_FP_MATRIX_MULT IP Core

1. In the ALTERA_FP_FUNCTIONS parameter editor, click the Basic tab.2. Under the Performance category, in the Goal option, select Combined.3. In the T

Pagina 37

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryArria V(5AGXFB3H4F40C5)Exp base 2Single 7 236.41 345 0 — 2

Pagina 38 - . . . N-10

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryCyclone V(5CGXFC7D6F31C7)AbsSingle 0 -- 33 0 -- 0 0 0Doubl

Pagina 39 - ALTERA_FP_MATRIX_MULT

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryCyclone V(5CGXFC7D6F31C7)Log base eSingle 22 181.42 482 4

Pagina 40 - Parameter Value Description

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryStratix V(5SGXEA7K2F40C2)Exp base 2Single 5 387.3 351 -- 0

Pagina 41

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryArria 10(10AX115H4F34I3SP)AbsSingle 0 -- 33 -- 0 0 0 0Doub

Pagina 42 - ALTERA_FP_ACC_CUSTOM IP Core

Family Function Precision Latency fMAXALMs M10KM20KDSPBlocksLogic RegistersPrimary SecondaryArria 10(10AX115H4F34I3SP)Log base 2Single 14 275.79 316 -

Pagina 43

Table 18-3: TrigonometryFamily Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryArria V(5AGXFB3H4F40C5)Arc

Pagina 44 - ALTERA_FP_ACC_CUSTOM Signals

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryArria V(5AGXFB3H4F40C5)Arctan2Single 0 43 230.2 1,

Pagina 45

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryCyclone V(5CGXFC7D6F31C7)ArccosSingle 0 42 217.2 8

Pagina 46

File Name Description<my_ip>.svdAllows HPS System Debug tools to view the register maps ofperipherals connected to HPS within a Qsys system.Duri

Pagina 47

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryCyclone V(5CGXFC7D6F31C7)Arctan2Single 0 51 206.14

Pagina 48 - ALTFP_ADD_SUB IP Core

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryStratix V(5SGXEA7K2F40C2)ArccosSingle 0 23 291.467

Pagina 49

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryStratix V(5SGXEA7K2F40C2)CosSingle 0 17 267.02711

Pagina 50

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryArria 10(10AX115H4F34I3SP)ArccosSingle 0 28 270.42

Pagina 51 - ALTFP_ADD_SUB Signals

Family Function PrecisionScaleBy PiLatencyfMAXALMsM10K M20KDSPBlocksLogic RegistersPrimary SecondaryArria 10(10AX115H4F34I3SP)CosSingle 0 21 336.93786

Pagina 52 - ALTFP_ADD_SUB

Table 18-4: FPFXPFamilyInputPrecisionOutputWidthOutputFractionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryArria V(5AGXFB3H4F40C5)

Pagina 53 - ALTFP_ADD_SUB Parameters

FamilyInputPrecisionOutputWidthOutputFractionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryStratix V(5SGXEA7K2F40C2)Single32 0 0 71

Pagina 54

Table 18-5: FXPFPFamilyInputWidthInputFractionOutputPrecisionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryArria V(5AGXFB3H4F40C5)3

Pagina 55 - ALTFP_DIV IP Core

FamilyInputWidthInputFractionOutputPrecisionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryCycloneV(5CGXFC7D6F31C7)32 0 Single 8 230

Pagina 56 - ALTFP_DIV Truth Table

FamilyInputWidthInputFractionOutputPrecisionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryStratixV(5SGXEA7K2F40C2)32 0 Single 3 579

Pagina 57

Figure 1-6: Legacy Parameter EditorsLegacy parameter editors1. In the IP Catalog (Tools > IP Catalog), locate and double-click the name of the IP c

Pagina 58

FamilyInputWidthInputFractionOutputPrecisionLatencyfMAXALMs M10K M20KDSPBlocksLogic RegistersPrimarySecondaryArria 10(10AX115H4F34I3SP)32 0 Single 3 4

Pagina 59

ALTERA_FP_FUNCTIONS SignalsFigure 18-1: ALTERA_FP_FUNCTIONS Signalsclkb (1), (2)ALTERA_FP_FUNCTIONS q (1)a (1)areset1) The floating point an

Pagina 60 - ALTFP_DIV Signals

ALTERA_FP_FUNCTIONS ParametersThese tables list the ALTERA_FP_FUNCTIONS parameters.Table 18-8: ALTERA_FP_FUNCTIONS Parameters: Functionality TabCatego

Pagina 61 - ALTFP_DIV Parameters

Category Parameter Values DescriptionsFunction Name• WidthConversions• Min• Max• Less than (orequal)• Greater than (orequal)• (Not) Equal• Power• Expo

Pagina 62

Category Parameter Values DescriptionsFixed Point DataWidth 16 to 128 The bit width of the fixedpoint data port. Thisparameter is only availablewhen t

Pagina 63 - ALTFP_MULT IP Core

Table 18-9: ALTERA_FP_FUNCTIONS Parameters: Performance TabCategory Parameter Values DescriptionsTargetGoal• Frequency• Latency• CombinedIf the Goal i

Pagina 64

Document Revision HistoryA2014.12.19UG-01058SubscribeSend FeedbackDocument Revision HistoryThis table lists the document revision history for the Floa

Pagina 65

Date DocumentVersionChanges MadeJuly 2010 3.0• Updated architecture information for the followingsections:ALTFP_MATRIX_MULTALTFP_MATRIX_INV.• Added sp

Pagina 66 - Parameters

The upgrade process renames and preserves the existing variation file (.v, .sv, or .vhd) as <my_variant>_BAK.v, .sv, .vhd in the project directo

Pagina 67 - ALTFP_MULT Signals

Figure 1-7: Upgrading IP CoresDisplays upgrade status for all IP coresin the ProjectUpgrades all IP core that support “Auto Upgrade”Upgrades individua

Pagina 68

Related InformationAltera IP Release NotesMigrating IP Cores to a Different DeviceIP migration allows you to target the latest device families with IP

Pagina 69 - ALTFP_SQRT

• Support for floating-point formats.• Input support for not-a-number (NaN), infinity, zero, and normal numbers.• Optional asynchronous input ports in

Pagina 70 - ALTFP_SQRT Truth Table

ContentsAbout Floating-Point IP Cores...1-1List of Floating-Point IP Cores...

Pagina 71

Figure 1-9: Single-Precision RepresentationThis figure shows a single-precision representation.S E M31 30 23 22 0Double-Precision FormatThe double-pre

Pagina 72 - ALTFP_SQRT Signals

Meaning Sign Field Exponent Field Mantissa FieldNegative Denormalized 1 All 0’s Non-zeroPositive Infinity 0 All 1’s All 0’sNegative Infinity 1 All 1’s

Pagina 73

Figure 1-12: Fixed-Point FormatSign bitInteger bits31 0Fraction bitsFloating-Points IP Cores Output LatencyThe IP cores measure the output latency in

Pagina 74 - ALTFP_SQRT Parameters

Floating-Point IP Cores Design FilesALTFP_INV_SQRT• altfp_inv_sqrt_DesignExample.zip (Quartus II design files)• altfp_inv_sqrt_ex_msim.zip (ModelSim-A

Pagina 75 - ALTFP_EXP IP Core

• ALTFP_COMPARE Design Example: Comparison of Single-Precision Format Numbers on page16-2• ALTFP_CONVERT Design Example: Convert Double-Precision Floa

Pagina 76

ALTERA_FP_MATRIX_INV IP Core22014.12.19UG-01058SubscribeSend FeedbackALTERA_FP_MATRIX_INV FeaturesThe ALTERA_FP_MATRIX_INV IP core offers the followin

Pagina 77

Table 2-1: ALTERA_FP_MATRIX_INV Resource Utilization and Performance for the Stratix IV Device FamilyPrecisionMatrixSizeBlocksLogic usageLatencyThroug

Pagina 78 - ALTFP_EXP Signals

= (LT)-1 × L-1 = (L-1)T × L-1where a Cholesky decomposition function is needed to obtain L, a triangular matrix inversion is needed toobt

Pagina 79 - ALTFP_EXP

Figure 2-2: Cholesky Decomposition Function Top-level DiagramAlthough the Cholesky decomposition algorithm only operates on the lower triangular matri

Pagina 80 - ALTFP_EXP Parameters

Triangular Matrix InversionThe triangular matrix, L, obtained from the Cholesky decomposition function is computed using thetriangular matrix inversio

Pagina 81 - ALTFP_INV IP Core

ALTERA_FP_MATRIX_MULT Signals... 3-4ALTERA_FP_MATRIX_MU

Pagina 82

Figure 2-3: Matrix Inversion Timing DiagramsysclkenableresetloaddataindataoutoutvalidbusydoneLoading Stage Processing Stage Output StageThe following

Pagina 83

ALTERA_FP_MATRIX_INV Design Example: Understanding the Simulation ResultsThe simulation waveform in this design example is not shown in its entirety.

Pagina 84

Time Event12527.5 –12922.5 nsOutput stage:• The outvalid signal asserts in intervals of 8 clock cycles. These seriesof assertions signify the availabi

Pagina 85

Matrix DataPC-based OutputMatrix42148e03 42f5794f 421b33f4 430e0587 41ff0d66 c2f579a3 c2df1c28 c2f945bc42f5794f 43d60be5 430944db 43f2dd63 42da2dd0 c3

Pagina 86

ALTERA_FP_MATRIX_INV SignalsFigure 2-5: ALTERA_FP_MATRIX_INV SignalsdatainsysclkresetinstALTERA_FP_MATRIX_INVdataout[]busyoutvaliddoneloadenableTable

Pagina 87 - ALTFP_INV_SQRT IP Core

Port Name Required Descriptiondone Yes When asserted, the last output has been written. A new matrixmultiply can be started with calculate. done will

Pagina 88

ALTERA_FP_MATRIX_MULT IP Core32014.12.19UG-01058SubscribeSend FeedbackALTERA_FP_MATRIX_MULT FeaturesThe ALTERA_FP_MATRIX_MULT IP core offers the follo

Pagina 89

Table 3-1: ALTERA_FP_MATRIX_MULT Resource Utilization and Performance for the Arria 10 and Stratix VDevicesFamily DataFormatMatrix ASizeMatrix BSizeVe

Pagina 90 - ALTFP_INV_SQRT

Figure 3-2: Matrix Serialization FormatAn input matrix with M rows and N columns must be input as shown in this figure, where the Row 0 andColumn 0 el

Pagina 91

The following lists the key features of the architecture:• Matrix A and B storage are double buffered to allow processing to happen in parallel with d

Pagina 92

ALTFP_SQRT Design Example: Square Root of Single-Precision Format Numbers...8-3ALTFP_SQRT Design Example: Understanding the Simul

Pagina 93 - ALTFP_LOG

Port Name Required Descriptionreset_n No Asynchronous active low reset port.a_data Yes Matrix A input data.a_valid Yes Matrix A Avalon streaming valid

Pagina 94

Parameter Value DescriptionVector Size Allowed values are 8,16,32, 64, 96, and 128.The size of the dot product which canbe computed in parallel. Where

Pagina 95

ALTERA_FP_ACC_CUSTOM IP Core42014.12.19UG-01058SubscribeSend FeedbackALTERA_FP_ACC_CUSTOM FeaturesThe ALTERA_FP_ACC_CUSTOM IP core offers the followin

Pagina 96

Table 4-1: ALTERA_FP_ACC_CUSTOM Resource Utilization and PerformanceThis table lists the resource utilization and performance information for the ALTE

Pagina 97

Related InformationFitter Resources ReportsProvides information about Quartus II resource utilizationALTERA_FP_ACC_CUSTOM SignalsFigure 4-1: ALTERA_FP

Pagina 98

Port Name Required Descriptionxo Yes The overflow flag for port x. The signal goes high when the exponent ofthe input x is larger than maxMSBX. The si

Pagina 99 - ALTFP_ATAN IP Core

Category Parameter Values DescriptionAccumulator SizeMSBA — The weight of the MSB of the accumulator. Forexample, in a financial simulation, if the va

Pagina 100 - ALTFP_ATAN Parameters

Category Parameter Values DescriptionReport — — Reports the latency of the device, which is thenumber of cycles it takes for an accumulation topropaga

Pagina 101 - Type Required Description

ALTFP_ADD_SUB IP Core52014.12.19UG-01058SubscribeSend FeedbackALTFP_ADD_SUB FeaturesThe ALTFP_ADD_SUB IP core offers the following features:• Dynamica

Pagina 102 - ALTFP_SINCOS IP Core

DATAA[] DATAB[] SIGN BIT RESULT[] Overflow Underflow Zero NaNNormal NaN X NaN 0 0 0 1Denormal Normal 0/1 Normal 0 0 0 0Denormal Denormal 0/1 Normal 0

Pagina 103 - ALTFP_SINCOS Signals

ALTFP_ATAN IP Core... 13-1Output Latency...

Pagina 104 - ALTFP_SINCOS Parameters

Table 5-2: ALTFP_ADD_SUB Resource Utilization and Performance for the Stratix Series of DevicesDevice Family Precision Optimiza‐tionOutputlatencyAdapt

Pagina 105 - ALTFP_ABS IP Core

This design example implements a floating-point adder for the addition of double-precision formatnumbers. All the optional input ports (clk_en and acl

Pagina 106 - 2014.12.19

Figure 5-2: ALTFP_ADD_SUBdataa[]datab[]add_subclockclk_eninstALTFP_ADD_SUBresult[]overflownanunderflowzeroaclrTable 5-4: ALTFP_ADD_SUB Input PortsPort

Pagina 107 - ALTFP_ABS Signals

Port Name Required Descriptionoverflow Yes Overflow exception port. Asserted when the result of the addition orsubtraction, after rounding, exceeds or

Pagina 108 - ALTFP_ABS

Parameter Name Type Required DescriptionWIDTH_EXP Integer No Specifies the precision of the exponent. The bias ofthe exponent is always set to 2 (WIDT

Pagina 109 - ALTFP_ABS Parameters

ALTFP_DIV IP Core62014.12.19UG-01058SubscribeSend FeedbackALTFP_DIV FeaturesThe ALTFP_DIV IP core offers the following features:• Division functions.•

Pagina 110

Precision Mantissa Width Latency (in clock cycles)Single Extended31 – 32 8, 18, 4133 – 34 8, 18, 4335 – 36 8, 18, 4537 – 38 8, 18, 4739 – 40 8, 18, 49

Pagina 111 - ALTFP_COMPARE IP Core

DATAA[] DATAB[] SIGN BIT RESULT[] Overflow UnderflowZero Division-by-zeroNaNDenormal NaN X NaN 0 0 0 0 1Zero Normal 0/1 Zero 0 0 1 0 0Zero Denormal0/1

Pagina 112 - Format Numbers

Device family PrecisionOptimiza‐tionOutputlatencyLogic UsagefMAX(MHz)AdaptiveLook-UpTables(ALUTs)Dedicated LogicRegisters(DLRs)AdaptiveLogicModules(AL

Pagina 113 - ALTFP_COMPARE Signals

Table 6-4: Summary of Input Values and Corresponding Outputs This table lists the inputs and corresponding outputs obtained from the simulation in the

Pagina 114 - ALTFP_COMPARE Parameters

ALTERA_FP_FUNCTIONS IP Core...18-1ALTERA_FP_FUNCTIONS Features...

Pagina 115

ALTFP_DIV SignalsFigure 6-2: ALTFP_DIV Signalsdataa[]datab[]clk_enclockinstALTFP_DIVresult[]overflowunderflowzeronandivision_by_zeroaclrTable 6-5: ALT

Pagina 116 - ALTFP_CONVERT IP Core

Port Name Required Descriptionoverflow No Overflow port for the divider. Asserted when the result of the division(after rounding) exceeds or reaches i

Pagina 117 - ALTFP_CONVERT Output Latency

Parameter Name Type Required DescriptionOPTIMIZE String No Specifies whether to optimize for area or for speed.Values are AREA and SPEED. A value of A

Pagina 118

ALTFP_MULT IP Core72014.12.19UG-01058SubscribeSend FeedbackALTFP_MULT IP Core FeaturesThe ALTFP_MULT IP core offers the following features:• Multiplic

Pagina 119

DATAA[] DATAB[] RESULT[] Overflow Underflow Zero NaNNormal Normal Zero 0 1 1 0Normal Denormal Zero 0 0 1 0Normal Zero Zero 0 0 1 0Normal Infinity Infi

Pagina 120

Table 7-3: ALTFP_MULT Resource Utilization and Performance for Stratix IV Devices with DedicatedMultiplier CircuitryDevice Family PrecisionOutputlaten

Pagina 121 - Point Format Numbers

This design example implements a floating-point multiplier for the multiplication of double-precisionformat numbers. All the optional input ports (clk

Pagina 122 - Time Event

Table 7-5: ALTFP_MULT Megafunction ParametersParameter Name Type Required DescriptionWIDTH_EXP Integer No Specifies the value of the exponent. If this

Pagina 123 - ALTFP_CONVERT Signals

Port Name Required Descriptionaclr No Synchronous clear. Source is asynchronously reset when assertedhigh.dataa[] Yes Floating-point input data input

Pagina 124

ALTFP_SQRT82014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_SQRT IP core according to you

Pagina 125 - ALTFP_CONVERT Parameters

About Floating-Point IP Cores12014.12.19UG-01058SubscribeSend FeedbackThe Altera® floating-point megafunction IP cores enable you to perform floating-

Pagina 126

Precision Mantissa Width Latency (in clock cycles)Single-extended3120, 3632 20, 3733 21, 3834 21, 3935 22, 4036 22, 4137 23, 4238 23, 4339 24, 4440 24

Pagina 127

ALTFP_SQRT Resource Utilization and PerformanceThis table lists the resource utilization and performance information for the ALTFP_SQRT IP core. Thein

Pagina 128 - ALTERA_FP_FUNCTIONS IP Core

Figure 8-2: ALTFP_SQRT ModelSim Simulation Waveform (Output Data)This design example implements a floating-point square root function for single-preci

Pagina 129 - Function Description

Figure 8-3: ALTFP_SQRT Signalsdata[]clockclk_eninstALTFP_SQRTresult[]overflownanzeroaclrTable 8-4: ALTFP_SQRT IP Core Input SignalsPort Name Required

Pagina 130

ALTFP_SQRT ParametersTable 8-6: ALTFP_SQRT ParametersParameter Name Type Required DescriptionWIDTH_EXP Integer Yes Specifies the precision of the expo

Pagina 131

ALTFP_EXP IP Core92014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_EXP IP core according

Pagina 132

DATAA[] Calculation RESULT[] NaN Overflow Underflow ZeroNormal (numbersof small magnitude)edata 1 0 0 1 0Normal (negativenumbers of largemagnitude)eda

Pagina 133

ALTFP_EXP Design Example: Understanding the Simulation ResultsThe simulation waveform in this design example is not shown in its entirety. Run the des

Pagina 134

Time Event82.5 ns Output value: 3F80 0000hAs the input value of 1A03568Ch is a very small number, it is seen as a value that isapproaching zero, and t

Pagina 135

Figure 9-3: ALTFP_EXP Signalsdata[]clk_enclockinstALTFP_EXPresult[]underflowzeronanunderflowaclrTable 9-4: ALTFP_EXP IP Core Input SignalsPort Name Re

Pagina 136

IP Core Name Function OverviewALTERA_FP_ACC_CUSTOM An Application Specific AccumulatorALTERA_FP_FUNCTIONS A Collection of Floating-Point FunctionsComp

Pagina 137

Port Name Required Descriptionnan No NaN exception output. Asserted when an invalid operation occurs.Any operation involving NaN also asserts the nan

Pagina 138

ALTFP_INV IP Core102014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_INV IP core according

Pagina 139

DATA[] SIGN BIT RESULT[] Underflow Zero Division_by_zeroNaNNormal 0/1 Denormal 1 1 0 0Normal 0/1 Infinity 0 0 0 0Normal 0/1 Zero 1 1 0 0Denormal 0/1

Pagina 140

ALTFP_INV Design Example: Understanding the Simulation ResultsThe simulation waveform in this design example is not shown in its entirety. Run the des

Pagina 141

Time Event10 ns data[] value: 7F80 0000hThis is an infinity value.107.5 ns Output value: 0000 0000hException handling ports: zero assertsThe inverse o

Pagina 142

Table 10-5: ALTFP_INV Megafunction Output PortsPort Name Required Descriptionresult[] Yes The floating-point inverse result of the value at thedata[]i

Pagina 143

Parameter Name Type Required DescriptionWIDTH_MAN Integer Yes Specifies the value of the mantissa. If this parameteris not specified, the default is 2

Pagina 144

ALTFP_INV_SQRT IP Core112014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_INV_SQRT IP core

Pagina 145

Table 11-2: Truth Table for Inverse Square Root OperationsDATA[] SIGN BIT RESULT[] Zero Division_by_zeroNaNNormal 0 Normal 0 0 0Normal 1 NaN 0 0 1Deno

Pagina 146

ALTFP_INV_SQRT Design Example: Understanding the Simulation ResultsThe simulation waveform in this design example is not shown in its entirety. Run th

Pagina 147

IP Catalog and Parameter EditorThe Quartus II IP Catalog (Tools > IP Catalog) and parameter editor help you easily customize andintegrate IP cores

Pagina 148

Time Event137.5 ns Output value: FFC0 0000hException handling ports: nan assertsThe inverse square root of a negative value produces a NaN.20 ns data[

Pagina 149

Table 11-5: ALTFP_INV_SQRT IP Core Input SignalsPort Name Required Descriptionaclr No Asynchronous clear. When the aclr port is asserted high, thefunc

Pagina 150

Table 11-7: ALTFP_INV_SQRT Megafunction ParametersParameter Name Type Required DescriptionWIDTH_EXP Integer Yes Specifies the precision of the exponen

Pagina 151 - ALTERA_FP_FUNCTIONS Signals

ALTFP_LOG122014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_LOG IP core according to your

Pagina 152 - Send Feedback

Table 12-2: Truth Table for Natural Logarithm OperationsDATA[] SIGN BIT RESULT[] Zero NaNNormal 0 Normal 0 0Normal 1 NaN (6)0 11 (7)0 Zero 1 0Denormal

Pagina 153

Related Information• Floating-Point IP Cores Design Example Files on page 1-16• Floating-Point IP Cores Design ExamplesProvides the design example fil

Pagina 154

Time Event102.5 ns Output value: FF80 0000hThe natural logarithm of zero is negative infinity.5 ns data[] value: 8000 0000hThis is a negative number.1

Pagina 155

Figure 12-3: ALTFP_LOG Signalsdata[]clk_enclockinstALTFP_LOGresult[]zeronanaclrTable 12-5: ALTFP_LOG IP Core Input SignalsPort Name Required Descripti

Pagina 156 - Document Revision History

Port Name Required Descriptionzero No Zero exception output. Asserted when the exponent and mantissaof the output port are zero. This occurs when the

Pagina 157 - Changes Made

ALTFP_ATAN IP Core132014.12.19UG-01058SubscribeSend FeedbackYou can use the ports and parameters available to customize the ALTFP_ATAN megafunction ac

Commenti su questo manuale

Nessun commento