Altera Integer Arithmetic IP Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Urządzenia pomiarowe Altera Integer Arithmetic IP. Altera Integer Arithmetic IP User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 157
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - San Jose, CA 95134

Integer Arithmetic IP Cores User GuideSubscribeSend FeedbackUG-010632014.12.19101 Innovation DriveSan Jose, CA 95134www.altera.com

Strona 2 - Contents

1. In the IP Catalog (Tools > IP Catalog), locate and double-click the name of the IP core to customize.The parameter editor appears.2. Specify a t

Strona 3

Parameter Name Type Required DescriptionCOEF1_[] Integer No Specifies the coefficient value[0..7] for the inputs of thesecond multiplier. Thenumber of

Strona 4

Figure 8-2: ALTMULT_ACCUM Simulation Results8-20Understanding the Simulation ResultsUG-010632014.12.19Altera CorporationALTMULT_ACCUM (Multiply-Accumu

Strona 5

ALTMULT_ADD (Multiply-Adder)92014.12.19UG-01063SubscribeSend FeedbackThe ALTMULT_ADD megafunction allows you to implement a multiplier-adder.The follo

Strona 6 - IP Cores Function Overview

Figure 9-1: ALTMULT_ADD Portsdataa[]instALTMULT_ADDdatab[]signascanouta[]signbscanoutb[]result[]overflowmult_is_saturatedchain_out_sat_overflowaclr0ac

Strona 7 - Design Example Files

The multipliers and adders of the ALTMULT_ADD megafunction are placed in the dedicated DSP blockcircuitry of the Stratix devices. If all of the input

Strona 8

Pre-adderWith pre-adder, additions or subtractions are done prior to feeding the multiplier.There are five pre-adder modes:• Simple mode• Coefficient

Strona 9 - Using the Parameter Editor

Figure 9-3: Pre-adder Coefficient Modea0b0Mult0resultcoef+/-Preaddercoefsel0Pre-adder Input ModeIn this mode, one multiplier operand derives from the

Strona 10 - 2014.12.19

This mode is expressed in the following equation.The following shows the pre-adder square mode of two multipliers.Figure 9-5: Pre-adder Square Modea0b

Strona 11

Systolic Delay RegisterIn a systolic architecture, the input data is fed into a cascade of registers acting as a data buffer. Eachregister delivers an

Strona 12 - Legacy parameter

Figure 9-8: Systolic Delay Register Implementation of 2 Multipliersa0b0Mult0resultchainina1b1Mult1+/-+/-Systolic registersThe sum of two multipliers i

Strona 13 - Upgrading IP Cores

Figure 1-4: IP Parameter EditorView IP portand parameter detailsApply preset parameters forspecific applicationsSpecify your IP variation nameand targ

Strona 14

Figure 9-9: Systolic Delay Register Implementation of 4 Multipliersa0b0Mult0resultchaininchainina1b1Mult1a2b2Mult2a3b3Mult3result+/-+/-+/-+/-Systolic

Strona 15

The following lists the advantages of systolic register implementation:• Reduces DSP resource usage• Enables efficient mapping in the DSP block using

Strona 16 - Related Information

The following figure shows the double accumulator implementation.Figure 9-12: Double Accumulatora0b0a1b1Mult0Mult1Accumulator feedba ckOutput result+

Strona 17 - RTL Simulation

To view the VHDL component declaration for the megafunction, refer to the VHDL Design File (.vhd)altera_mf_components.vhd in the <Quartus II instal

Strona 18 - Simulating Altera Designs

Port Name Required Descriptionoutput_round No Enables dynamically controlled output rounding. When OUTPUT_ROUNDING is set to VARIABLE, output_round en

Strona 19 - LPM_COUNTER (Counter)

Port Name Required Descriptionscanouta[] No Output of scan chain A. Output port [WIDTH_A - 1..0]wide. When designing with Stratix III devices, port ca

Strona 20

Parameter Name Type RequiredDescriptionINPUT_REGISTER_A1 String No Specifies the clock port for thedataa[] operand of the secondmultiplier. Values are

Strona 21

Parameter Name Type RequiredDescriptionINPUT_REGISTER_B1 String No Specifies the clock port for thedatab[] operand of the secondmultiplier. Values are

Strona 22

Parameter Name Type RequiredDescriptionINPUT_ACLR_A2 String No Specifies the asynchronous clearfor the dataa[] operand of thethird multiplier. Values

Strona 23

Parameter Name Type RequiredDescriptionINPUT_SOURCE_A0 String No Specifies the data source to thefirst multiplier. Values are DATAAand SCANA. If this

Strona 24

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

Strona 25

Parameter Name Type RequiredDescriptionINPUT_SOURCE_A3 String No Specifies the data source to thefourth and correspondingmultiplier. Values are DATAA

Strona 26 - LPM_DIVIDE (Divider)

Parameter Name Type RequiredDescriptionINPUT_SOURCE_B2 String No Specifies the data source of thethird multiplier. Values are DATABand SCANB. If this

Strona 27

Parameter Name Type RequiredDescriptionREPRESENTATION_A String No Specifies the numerical represen‐tation of the multiplier input A.Values are UNSIGNE

Strona 28

Parameter Name Type RequiredDescriptionSIGNED_PIPELINE_REGISTER_[] String No Parameter [A,B]. Specifies theclock signal for the secondregister on the

Strona 29

Parameter Name Type RequiredDescriptionMUTIPLIER1_DIRECTION String No Specifies whether the secondmultiplier adds or subtracts itsvalue from the sum.

Strona 30

Parameter Name Type RequiredDescriptionEXTRA_LATENCY String No Specifies the number of clockcycles of latency.LPM_HINT String NoWhen you instantiate a

Strona 31

Table 9-8: ALTMULT_ADD Megafunction Parameters (Stratix II, Stratix III, and Stratix IV Devices Only)Parameter Name Type RequiredDescriptionOUTPUT_SAT

Strona 32 - LPM_MULT (Multiplier)

Parameter Name Type RequiredDescriptionOUTPUT_ROUNDING String No Enables rounding handling atsecond adder stage. If originaldesign uses a Stratix II d

Strona 33

Parameter Name Type RequiredDescriptionOUTPUT_SATURATION String No Enables saturation handling atsecond adder stage. If originaldesign uses a Stratix

Strona 34 - LPM_MULT Ports

Parameter Name Type RequiredDescriptionCHAINOUT_ROUNDING String NoEnables rounding handling at thechainout stage. Values are YES,NO, and VARIABLE. A v

Strona 35 - LPM_MULT Parameters

Figure 1-6: IP Core Generated FilesNotes:1. If supported and enabled for your IP variation2. If functional simulation models are generated<Project

Strona 36

Parameter Name Type RequiredDescriptionCHAINOUT_ROUND_OUTPUT_ACLR String No Specifies the asynchronous clearsource for the third register onthe chaino

Strona 37

Parameter Name Type RequiredDescriptionCHAINOUT_SATURATE_OUTPUT_ACLR String No Specifies the asynchronous clearsource for the third register onthe cha

Strona 38

Parameter Name Type RequiredDescriptionZERO_LOOPBACK_OUTPUT_REGISTER String No Specifies the clock source for thethird register on the zero_loopback i

Strona 39 - Decoder)

Parameter Name Type RequiredDescriptionSHIFT_MODE String NoSpecifies the shift mode. Valuesare NO, LEFT, RIGHT, ROTATION,and VARIABLE. If VARIABLE iss

Strona 40 - ALTECC_ENCODER Features

Parameter Name Type RequiredDescriptionROTATE_OUTPUT_ACLR String No Specifies the asynchronous clearsource for the third register onthe rotate input.

Strona 41

Parameter Name Type RequiredDescriptionPORT_OUTPUT_IS_OVERFLOW String No Specifies port usage. Values arePORT_UNUSED and PORT_USED.When the value is s

Strona 42

This design example uses the ALTMULT_ADD megafunction to implement a simple FIR filter as shownin the following equation. This example uses the MegaWi

Strona 43

Figure 9-13: ALTMULT_ADD Simulation Results9-36Understanding the Simulation ResultsUG-010632014.12.19Altera CorporationALTMULT_ADD (Multiply-Adder)Sen

Strona 44

ALTMULT_COMPLEX (Complex Multiplier)102014.12.19UG-01063SubscribeSend FeedbackThe ALTMULT_COMPLEX megafunction implements the multiplication of two co

Strona 45 - Ports (ALTECC_DECODER)

Figure 10-1: ALTMULT_COMPLEX Portsdataa_realinstALTMULT_COMPLEXdatab_realdataa_imagresult_realdatab_imagclockenaaclrresult_imagComplex MultiplicationC

Strona 46 - Parameters (ALTECC_DECODER)

compile the IP variation in the current version of the Quartus II software. Many Altera IP cores supportautomatic upgrade.The upgrade process renames

Strona 47

xy_real = ac – bd = ac – bd + (ad – bc) – (ad – bc) = (ac – ad + bc – bd) + (ad – bc) = ((a + b)(c – d)) + (ad –

Strona 48

Resource Utilization and PerformanceThe following table provides resource utilization and performance information for theALTMULT_COMPLEX megafunction.

Strona 49

parameter representation_a = "SIGNED",parameter representation_b = "SIGNED",parameter width_a = 1,parameter width_b = 1,parameter

Strona 50

ALTMULT_COMPLEX PortsTable 10-2: ALTMULT_COMPLEX IP Core Input PortsPort Name Required Descriptionaclr No Asynchronous clear for the complex multiplie

Strona 51

Table 10-4: ALTMULT_COMPLEX Megafunction ParametersParameter Name Type Required DescriptionIMPLEMENTATION_STYLE String Yes Specifies the representatio

Strona 52

Parameter Name Type Required DescriptionWIDTH_B Integer Yes Specifies the width of the datab_real[] and datab_imag[] ports. Valuemust be 256 bits or l

Strona 53

The following settings are observed in this example:• The widths of the data inputs are all set to 8 bits• The widths of the output ports are set to 1

Strona 54 - ALTERA_MULT_ADD

ALTSQRT (Integer Square Root)112014.12.19UG-01063SubscribeSend FeedbackThe ALTSQRT megafunction implements a square root function that calculates the

Strona 55

Device familyInput datawidthOutputlatencyLogic UsagefMAX (MHz) (8)AdaptiveLook-UpTable (ALUT)DedicatedLogicRegister(DLR)AdaptiveLogicModule(ALM)Strati

Strona 56

clk:in std_logic := '1';ena:in std_logic := '1';q:out std_logic_vector(Q_PORT_WIDTH-1 downto 0);radical:in std_logic_vector(WIDTH-

Strona 57

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

Strona 58

Parameter Name Type Required DescriptionR_PORT_WIDTH Integer Yes Specifies the width of the remainder[] output port.PIPELINE Integer No Specifies the

Strona 59

PARALLEL_ADD (Parallel Adder)122014.12.19UG-01063SubscribeSend FeedbackThe PARALLEL_ADD megafunction performs add or subtract operations on a selected

Strona 60

Table 12-1: PARALLEL_ADD Resource Utilization and PerformanceDevice familyInput datawidthOutputlatencyLogic UsagefMAX (MHz) (9)AdaptiveLook-UpTable (A

Strona 61

The VHDL component declaration is located in the VHDL Design File (.vhd)altera_mf_components.vhd in the <Quartus II installation directory>\libr

Strona 62

ParametersThe following table lists the parameters for the PARALLEL_ADD megafunction.Table 12-4: PARALLEL_ADD Megafunction ParametersParameter Name Ty

Strona 63

This design example uses the LPM_MULT and PARALLEL_ADD megafunctions to generate a shiftaccumulator. This function implements the shift-and-accumulate

Strona 64

Document Revision History132014.12.19UG-01063SubscribeSend FeedbackThe following table lists the revision history for this document.Table 13-1: Docume

Strona 65 - ALTERA_MULT_ADD Parameters

Date Version ChangesFebruary 2013 3.1• Updated Table 52 on page 63 to include Stratix V informationfor accum_sload port.• Updated Table 54 on page 65

Strona 66

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

Strona 67

Simulating Altera IP Cores in other EDA ToolsThe Quartus II software supports RTL and gate-level design simulation of Altera IP cores in supportedEDA

Strona 68

Related InformationSimulating Altera DesignsUG-010632014.12.19Simulating Altera IP Cores in other EDA Tools1-13Integer Arithmetic MegafunctionsAltera

Strona 69

LPM_COUNTER (Counter)22014.12.19UG-01063SubscribeSend FeedbackThe LPM_COUNTER megafunction is a binary counter that creates up counters, down counters

Strona 70

ContentsInteger Arithmetic Megafunctions... 1-1Design Example Files...

Strona 71

Resource Utilization and PerformanceThe following table provides resource utilization and performance information for the LPM_COUNTERmegafunction.Tabl

Strona 72

output cout;output [15:0] eq;input cin;input [lpm_width-1:0] data;input clock, clk_en, cnt_en, updown;input aset, aclr, aload;input sset, sclr, s

Strona 73

Port Name Required Descriptioncnt_en No Count enable input to disable the count when asserted lowwithout affecting sload, sset, or sclr. If omitted, t

Strona 74 - Coefficient Multiplier)

Port Name Required Descriptioneq[15..0] No Counter decode output. The eq[15..0] port is not accessibleusing the MegaWizard Plug-In Manager as it is fo

Strona 75

Parameter Name Type Required DescriptionLPM_HINT String NoWhen you instantiate a library ofparameterized modules (LPM) function in aVHDL Design File (

Strona 76

Parameter Name Type Required DescriptionLPM_PORT_UPDOWN String No Specifies the usage of the updown input port.If omitted the default value is PORT_CO

Strona 77

LPM_DIVIDE (Divider)32014.12.19UG-01063SubscribeSend FeedbackThe LPM_DIVIDE megafunction implements a divider to divide a numerator input value by ade

Strona 78

Table 3-1: LPM_DIVIDE Resource Utilization and PerformanceDevice familyInput datawidthOutputlatencyLogic UsagefMAX (MHz)AdaptiveLook-UpTable (ALUT)Ded

Strona 79

DENOM : in std_logic_vector(LPM_WIDTHD-1 downto 0);ACLR : in std_logic := '0';CLOCK : in std_logic := '0';CLKEN : in std_logic :=

Strona 80

The following table lists the parameters for the LPM_DIVIDE megafunction.Parameter Name Type Required DescriptionLPM_WIDTHN Integer Yes Specifies the

Strona 81

ALTECC (Error Correction Code: Encoder/Decoder)...5-1ALTECC_ENCODER Features...

Strona 82 - ALTMULT_ACCUM

Parameter Name Type Required DescriptionLPM_REMAINDERPOSITIVE String No Altera-specific parameter. You mustuse the LPM_HINT parameter to specifythe LP

Strona 83

Parameter Name Type Required DescriptionINTENDED_DEVICE_FAMILY String No This parameter is used for modelingand behavioral simulation purposes.Create

Strona 84

LPM_MULT (Multiplier)42014.12.19UG-01063SubscribeSend FeedbackThe LPM_MULT megafunction implements a multiplier to multiply two input data values to p

Strona 85 - ALTMULT_ACCUM Ports

The LPM_MULT megafunction can be implemented using either logic resources or dedicated multipliercircuitry in Altera devices. Typically, the LPM_MULT

Strona 86

input [lpm_widths-1:0] sum;output [lpm_widthp-1:0] result;endmoduleVHDL Component DeclarationThe VHDL component declaration is located in the VHDL De

Strona 87 - ALTMULT_ACCUM Parameters

Port Name Required Descriptionaclr No Asynchronous clear port used at any time to reset thepipeline to all 0s, asynchronously to the clock signal. The

Strona 88

Parameter Name Type Required DescriptionINPUT_A_IS_CONSTANT String No You must use the LPM_HINT parameter tospecify the INPUT_A_IS_CONSTANTparameter i

Strona 89

Parameter Name Type Required DescriptionMAXIMIZE_SPEED Integer No Altera-specific parameter. You must usethe LPM_HINT parameter to specify theMAXIMIZE

Strona 90

Parameter Name Type Required DescriptionDSP_BLOCK_BALANCING String No Specifies whether to use a dedicatedmultiplier circuitry implementation.Values a

Strona 91

ALTECC (Error Correction Code: Encoder/Decoder)52014.12.19UG-01063SubscribeSend FeedbackThe error correction code (ECC) is a error detection and corre

Strona 92

Verilog HDL Prototype...8-

Strona 93

Figure 5-1: ALTECC_ENCODER Portsdata[]instALTECC_ENCODERclockenclockq[]aclrFigure 5-2: ALTECC_DECODER Portsdata[]instALTECC_DECODERclockenclockq[]aclr

Strona 94

Data Width Number of Parity Bits Total Bits (Code Word)27-57 6+1 34-6458-64 7+1 66-72The parity bit derivation uses an even-parity checking. The addit

Strona 95

Table 5-2: ALTECC Resource Utilization and Performance for Stratix III DevicesConfigurationInputdatawidthOutputlatencyLogic UsagefMAX (MHz) AdaptiveLo

Strona 96

ConfigurationInputdatawidthOutputlatencyLogic UsagefMAX (MHz)AdaptiveLook-UpTable(ALUT)DedicatedLogicRegister(DLR)AdaptiveLogic Module(ALM)ALTECC_ENCO

Strona 97

The following Verilog HDL prototype is located in the Verilog Design File (.v) lpm.v in the <Quartus IIinstallation directory>\eda\synthesis dir

Strona 98

data:in std_logic_vector(width_codeword-1 downto 0);q:out std_logic_vector(width_dataword-1 downto 0));end component;VHDL LIBRARY_USE DeclarationThe V

Strona 99

Port Name Required Descriptionclock Yes Clock input port that provides the clock signal to synchronize theencoding operation. The clock port is requir

Strona 100

The following table lists the parameters for the ALTECC_DECODER megafunction.Table 5-8: ALTECC_DECODER Megafunction ParametersParameter Name Type Requ

Strona 101 - Send Feedback

Figure 5-4: Design Example 1: Simulation Waveform for the ECC Encoder5-10Understanding the Simulation ResultsUG-010632014.12.19Altera CorporationALTEC

Strona 102 - ALTMULT_ADD (Multiply-Adder)

The following sequence corresponds with the numbered items in the figure:• Data F0 is fed to the ECC encoder. As pipelining is enabled to have an outp

Strona 103 - ALTMULT_ADD

Design Example: 9-bit Square Root...11-4Understa

Strona 104 - Features

• The encoded input data for F0 is 14F0 (1 0100 1111 0000 in binary), as seen on the output port, q[], at17.5 ns.Design Example 1: Calculation of Pari

Strona 105 - Pre-adder

Table 5-12: Design Example 2: Arrangement of Parity Bits and Data Bits in Code Word 14F0MSB LSBP5* P4 P3 P2 P1 D7 D6 D5 D4 D3 D2 D1 D01 0 1 0 0 1 1 1

Strona 106 - Pre-adder Square Mode

• All bits have their bit positions, and bit positions that are powers of 2 are used as parity bits(positions 1, 2, 4, 8 …). Table 38 lists the bit po

Strona 107 - Pre-adder Constant Mode

is needed on the retrieved data F0 (D8D7D6D5D4D3D2D1=1111 0000) based on the generatedsyndrome code. Therefore, the flag signals err_detected, err_cor

Strona 108 - Systolic Delay Register

ALTERA_MULT_ADD (Multiply-Adder)62014.12.19UG-01063SubscribeSend FeedbackThe ALTERA_MULT_ADD megafunction allows you to implement a multiplier-adder.T

Strona 109

For Stratix V devices, the multiplier blocks and adder/accumulator block is combined in a single MACblock.The multipliers and adders of the ALTERA_MUL

Strona 110

• Provides an option to dynamically switch between add and subtract operation• Supports optional asynchronous clear and clock enable input ports• Supp

Strona 111 - Double Accumulator

The following shows the pre-adder coefficient mode of a multiplier.Figure 6-3: Pre-adder Coefficient Modea0b0Mult0resultcoef+/-Preaddercoefsel0Pre-add

Strona 112 - VHDL Component Declaration

The following settings are applied in this mode:• The width of the dataa[] input (WIDTH_A) must be less than or equals to 17 bits• The width of the da

Strona 113 - ALTMULT_ADD Ports

Figure 6-6: Pre-adder Constant Modea0Mult0resultcoefcoefsel0Systolic Delay RegisterIn a systolic architecture, the input data is fed into a cascade of

Strona 114

Integer Arithmetic Megafunctions12014.12.19UG-01063SubscribeSend FeedbackYou can use Altera® integer megafunction IP cores to perform mathematical ope

Strona 115 - ALTMULT_ADD Parameters

N represents the number of cycles of data that has entered into the accumulator, y(t) represents the outputat time t, A(t) represents the input at tim

Strona 116 - Description

Figure 6-9: Systolic Delay Register Implementation of 4 Multipliersa0b0Mult0resultchaininchainina1b1Mult1a2b2Mult2a3b3Mult3result+/-+/-+/-+/-Systolic

Strona 117

The following lists the advantages of systolic register implementation:• Reduces DSP resource usage• Enables efficient mapping in the DSP block using

Strona 118

The following figure shows the double accumulator implementation.Figure 6-12: Double Accumulatora0b0a1b1Mult0Mult1Accumulator feedba ckOutput result+

Strona 119

Port name Required Descriptiondatab [] Yes Data input to the multiplier. Input port [NUMBER_OF_MULTIPLIERS * WIDTH_B - 1 … 0] widedatac [] No Data inp

Strona 120

Table 6-2: ALTERA_MULT_ADD MegaFunction Output PortsPort Name Required Descriptionresult [] Yes Multiplier output port. Output port [WIDTH_RESULT - 1

Strona 121

Parameter Name Type Required DescriptionINPUT_SOURCE_A[0…3] String No Specifies the data source to the firstmultiplier. Values are DATAA and SCANA. If

Strona 122

Parameter Name Type Required DescriptionSIGNED_ACLR_[] String No Parameter [A, B]. Specifies the asynchro‐nous clear signal for the first register on

Strona 123

Parameter Name Type Required DescriptionADDNSUB_MULTIPLIER_REGISTER[] String No Parameter [1, 3]. Specifies the clock signalfor the register on the co

Strona 124

Parameter Name Type Required DescriptionINPUT_REGISTER_C[0…3] String No Specifies the clock port for the datac[]operand of the multiplier. Values areU

Strona 125

Altera also provides floating-point IP cores. For more information about the floating-point IP cores, referto the Floating-Point IP Cores User Guide.D

Strona 126

Parameter Name Type Required DescriptionSYSTOLIC_DELAY3 String No Specifies the clock source for the systolicregister inputs of the third multiplier.

Strona 127

Parameter Name Type Required DescriptionINPUT_B[0 … 3]_LATENCY_CLOCK String No Specifies the clock signal for the pipelineregister on the correspondin

Strona 128

Parameter Name Type Required DescriptionADDNSUB_MULTIPLIER_LATENCY_ACLR[]String No Parameter [1, 3]. Specifies the asynchro‐nous clear signal for the

Strona 129

altmult_add_ex_msim (ModelSim-Altera files)Understanding the Simulation ResultsThe following settings are observed in this example:• The widths of the

Strona 130

ALTMEMMULT (Memory-based ConstantCoefficient Multiplier)72014.12.19UG-01063SubscribeSend FeedbackThe ALTMEMMULT megafunction is used to create memory-

Strona 131

Resource Utilization and PerformanceThe following table provides resource utilization and performance information for the ALTMEMMULTmegafunction.Table

Strona 132

input wire sclr,input wire [width_s-1:0] sel,input wire sload_coeff,input wire sload_data)/* synthesis syn_black_box=1 */;endmoduleVHDL Component Decl

Strona 133

Port Name Required Descriptionsel[] No Fixed coefficient selection. The size of the input port depends on theWIDTH_S parameter value.sload_coeff No Sy

Strona 134

Parameter Name Type Required DescriptionDATA_REPRESENTATION String No Specifies whether the coeff_in[]input port and the pre-loadedcoefficients are si

Strona 135

Understanding the Simulation ResultsThe following settings are observed in this example:• The data_in[] and coeff_in[] input widths are both set to 8

Strona 136

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

Strona 137

Figure 7-3: Multiplication with Coefficient of 2The following sequence corresponds with the numbered items in the figure:1. The following sequence cor

Strona 138 - Subscribe

Figure 7-4: Multiplication with Coefficient of 3The following sequence corresponds with the numbered items in the figure:1. At 190 ns, the sload_coeff

Strona 139 - Canonical Representation

ALTMULT_ACCUM (Multiply-Accumulate)82014.12.19UG-01063SubscribeSend FeedbackThe ALTMULT_ACCUM megafunction allows you to implement a multiplier-adder.

Strona 140 - Conventional Representation

A multiplier-accumulator accepts a pair of inputs, multiplies the two inputs together, and feeds theirresult into an accumulator to be added to or sub

Strona 141

Table 8-1: ALTMULT_ACCUM Resource Utilization and PerformanceDevice familyInput datawidthNumber ofmultipliersLogic Usage18-bit DSP fMAX (MHz) (5)Adapt

Strona 142

Verilog HDL PrototypeTo view the Verilog HDL prototype for the megafunction, refer to the Verilog Design File (.v) altera_mf.vin the <Quartus II in

Strona 143 - ALTMULT_COMPLEX Parameters

Port Name Required Descriptionaclr2 No The third asynchronous clear input. The aclr2 port is activehigh.aclr3 No The fourth asynchronous clear input.

Strona 144

Port Name Required Descriptionresult[] Yes Accumulator output port. The size of the output port dependson the WIDTH_RESULT parameter value.scanouta[]

Strona 145

Parameter Name Type Required DescriptionACCUM_SLOAD_PIPELINE_ACLR String No Specifies the asynchronousclear signal for the secondregister on the accum

Strona 146

Parameter Name Type Required DescriptionADDNSUB_PIPELINE_REG String No Specifies the clock for thesecond register on theaddnsub port. Values areUNREGI

Strona 147 - ALTSQRT (Integer Square Root)

Note: The IP Catalog is also available in Qsys (View > IP Catalog). The Qsys IP Catalog includesexclusive system interconnect, video and image proc

Strona 148

Parameter Name Type Required DescriptionINPUT_ACLR_B String No Specifies the asynchronousclear port for the datab[]port. Values are ACLR0,ACLR1, ACLR2

Strona 149 - Parameters

Parameter Name Type Required DescriptionMULTIPLIER_ACLR String No Specifies the asynchronousclear signal for the registerimmediately following themult

Strona 150

Parameter Name Type Required DescriptionPORT_SIGNB String No Specifies the usage of thesignb input port. Values arePORT_USED, PORT_UNUSED,and PORT_CON

Strona 151 - PARALLEL_ADD (Parallel Adder)

Parameter Name Type Required DescriptionSIGN_PIPELINE_REG_[] String No Parameter [A,B]. Specifiesthe clock signal for thesecond register on thecorresp

Strona 152

Table 8-7: ALTMULT_ACCUM Megafunction Parameters (Arria V, Cyclone V, and Stratix V Devices Only)Parameter Name Type Required DescriptionINPUT_ACLR_C0

Strona 153

Parameter Name Type Required DescriptionINPUT_REGISTER_C0 String No Specifies the clock port forthe datac[] operand of thefirst multiplier. Values are

Strona 154

Parameter Name Type Required DescriptionMUTIPLIER3_DIRECTION String No Specifies whether the fourthand all subsequent odd-numbered multipliers add ors

Strona 155

Parameter Name Type Required DescriptionPREADDER_DIRECTION_3 String No Specifies whether the pre-adder of the fourth andcorresponding multiplieradds o

Strona 156 - Document Revision History

Parameter Name Type Required DescriptionCOEFFSEL_A_ACLR String No Specifies the asynchronousclear source for thecoefficient inputs to the firstmultipl

Strona 157 - Date Version Changes

Parameter Name Type Required DescriptionSYSTOLIC_DELAY1 String No Specifies the clock source forthe systolic register inputs ofthe first multiplier. V

Komentarze do niniejszej Instrukcji

Brak uwag