Altera Floating-Point Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Měřící nástroje Altera Floating-Point. Altera Floating-Point User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 157
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - San Jose, CA 95134

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

Strany 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

Strany 3

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

Strany 4

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

Strany 5

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

Strany 6

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

Strany 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

Strany 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

Strany 9

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

Strany 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

Strany 11

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

Strany 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

Strany 13

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

Strany 14

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

Strany 15 - Upgrading IP Cores

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

Strany 16

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

Strany 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

Strany 18 - Related Information

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

Strany 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

Strany 20 - Special Case Numbers

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

Strany 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

Strany 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-

Strany 23

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

Strany 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<

Strany 25 - ALTERA_FP_MATRIX_INV IP Core

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

Strany 26

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

Strany 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

Strany 28

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

Strany 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

Strany 30 - Precision Format Numbers

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

Strany 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

Strany 32 - Sample Matrix Data

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

Strany 33 - Matrix Data

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

Strany 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,

Strany 35

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

Strany 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

Strany 37

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

Strany 38 - . . . N-10

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

Strany 39 - ALTERA_FP_MATRIX_MULT

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

Strany 40 - Parameter Value Description

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

Strany 41

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

Strany 42 - ALTERA_FP_ACC_CUSTOM IP Core

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

Strany 43

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

Strany 44 - ALTERA_FP_ACC_CUSTOM Signals

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

Strany 45

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

Strany 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

Strany 47

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

Strany 48 - ALTFP_ADD_SUB IP Core

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

Strany 49

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

Strany 50

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

Strany 51 - ALTFP_ADD_SUB Signals

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

Strany 52 - ALTFP_ADD_SUB

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

Strany 53 - ALTFP_ADD_SUB Parameters

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

Strany 54

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

Strany 55 - ALTFP_DIV IP Core

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

Strany 56 - ALTFP_DIV Truth Table

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

Strany 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

Strany 58

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

Strany 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

Strany 60 - ALTFP_DIV Signals

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

Strany 61 - ALTFP_DIV Parameters

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

Strany 62

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

Strany 63 - ALTFP_MULT IP Core

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

Strany 64

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

Strany 65

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

Strany 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

Strany 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

Strany 68

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

Strany 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

Strany 70 - ALTFP_SQRT Truth Table

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

Strany 71

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

Strany 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

Strany 73

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

Strany 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

Strany 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

Strany 76

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

Strany 77

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

Strany 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

Strany 79 - ALTFP_EXP

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

Strany 80 - ALTFP_EXP Parameters

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

Strany 81 - ALTFP_INV IP Core

ALTERA_FP_MATRIX_MULT Signals... 3-4ALTERA_FP_MATRIX_MU

Strany 82

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

Strany 83

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

Strany 84

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

Strany 85

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

Strany 86

ALTERA_FP_MATRIX_INV SignalsFigure 2-5: ALTERA_FP_MATRIX_INV SignalsdatainsysclkresetinstALTERA_FP_MATRIX_INVdataout[]busyoutvaliddoneloadenableTable

Strany 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

Strany 88

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

Strany 89

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

Strany 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

Strany 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

Strany 92

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

Strany 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

Strany 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

Strany 95

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

Strany 96

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

Strany 97

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 103 - ALTFP_SINCOS Signals

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

Strany 104 - ALTFP_SINCOS Parameters

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

Strany 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

Strany 106 - 2014.12.19

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

Strany 107 - ALTFP_ABS Signals

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

Strany 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

Strany 109 - ALTFP_ABS Parameters

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

Strany 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

Strany 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

Strany 112 - Format Numbers

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

Strany 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

Strany 114 - ALTFP_COMPARE Parameters

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

Strany 115

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

Strany 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

Strany 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

Strany 118

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

Strany 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

Strany 120

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

Strany 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

Strany 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

Strany 123 - ALTFP_CONVERT Signals

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

Strany 124

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

Strany 125 - ALTFP_CONVERT Parameters

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

Strany 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

Strany 127

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

Strany 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

Strany 129 - Function Description

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

Strany 130

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

Strany 131

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

Strany 132

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

Strany 133

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

Strany 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

Strany 135

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

Strany 136

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

Strany 137

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

Strany 138

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

Strany 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

Strany 140

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

Strany 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

Strany 142

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

Strany 143

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

Strany 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

Strany 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

Strany 146

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

Strany 147

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

Strany 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[

Strany 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

Strany 150

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

Strany 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

Strany 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

Strany 153

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

Strany 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

Strany 155

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

Strany 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

Strany 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

Komentáře k této Příručce

Žádné komentáře