Parameters, Design example: shift accumulator, Parameters -4 – Altera Integer Arithmetic IP User Manual

Page 154: Design example: shift accumulator -4

Advertising
background image

Parameters

The following table lists the parameters for the PARALLEL_ADD megafunction.

Table 12-4: PARALLEL_ADD Megafunction Parameters

Parameter Name

Type

Required

Description

WIDTH

Integer

Yes

Specifies the width of the

data[]

input port.

SIZE

Integer

Yes

Specifies the number of inputs to add.

WIDTHR

Integer

Yes

Specifies the width of the

result[]

output

port.

SHIFT

Integer

Yes

Specifies the relative shift of the data vectors.

NEW_SUBTRACT

String

No

Specifies whether to add or subtract the most

significant input word bit. Values are

NO

or

YES

. If omitted, the default value is

NO

.

REPRESENTATION

String

No

Specifies whether the input is signed or

unsigned. Values are

UNSIGNED

or

SIGNED

. If

omitted, the default value is

UNSIGNED

.

PIPELINE

Integer

No

Specifies the value, in clock cycles, of the

output latency.

RESULT_ALIGNMENT

String

No

Specifies the alignment of the

result

port.

Values are

MSB

or

LSB

. If omitted, the default

value is

LSB

.

INTENDED_DEVICE_FAMILY

String

No

This parameter is used for modeling and

behavioral simulation purposes. Create the

ALTCDR_RX megafunction with the

MegaWizard Plug-In Manager to calculate the

value for this parameter.

LPM_HINT

String

No

When you instantiate a library of parameter‐

ized modules (LPM) function in a VHDL

Design File (.vhd), you must use the

LPM_

HINT

parameter to specify an Altera-specific

parameter. For example:

LPM_HINT =

"CHAIN_SIZE = 8, ONE_INPUT_IS_

CONSTANT = YES"

The default value is

UNUSED

.

LPM_TYPE

String

No

Identifies the library of parameterized

modules (LPM) entity name in VHDL design

files.

Design Example: Shift Accumulator

12-4

Parameters

UG-01063

2014.12.19

Altera Corporation

PARALLEL_ADD (Parallel Adder)

Send Feedback

Advertising