Altfp_convert parameters, Altfp_convert parameters -10 – Altera Floating-Point User Manual

Page 125

Advertising
background image

ALTFP_CONVERT Parameters

Table 17-8: ALTFP_CONVERT Parameters

Port Name

Type

Required

Description

WIDTH_EXP_

INPUT

Integer

Yes

Specifies the precision of the exponent. If this parameter

is not specified, the default is

8

. The bias of the exponent

is always set to

2

(WIDTH_EXP - 1) -

1

, that is,

127

for

the single-precision format and

1023

for the double-

precision format. The value of

WIDTH_EXP_INPUT

must

be

8

for the single-precision format,

11

for the double-

precision format, and a minimum of

11

for the single-

extended precision format. The value of

WIDTH_EXP_

INPUT

must be less than the value of

WIDTH_MAN_INPUT

,

and the sum of

WIDTH_EXP_INPUT

and

WIDTH_MAN_INPUT

must be less than

64

. These settings apply only to the

FLOAT2FIXED

,

FLOAT2INT

, and

FLOAT2FLOAT

operation

modes.

WIDTH_MAN_

INPUT

Integer

Yes

Specifies the precision of the mantissa. If this parameter

is not specified, the default is

23

. When

WIDTH_EXP_

INPUT

is

8

and the floating-point format is single-

precision, the

WIDTH_MAN_INPUT

value must be

23

.

Otherwise, the value of

WIDTH_MAN_INPUT

must be a

minimum of

31

. The value of

WIDTH_MAN_INPUT

must be

greater than the value of

WIDTH_EXP_INPUT

, and the sum

of

WIDTH_EXP_INPUT

and

WIDTH_MAN_INPUT

must be less

than

64

. These settings apply only to the

FLOAT2FIXED

,

FLOAT2INT

, and

FLOAT2FLOAT

operation modes.

WIDTH_INT

Integer

Yes

Specifies the integer width.
If the operation is

FIXED2FLOAT

or

INT2FLOAT

, this

parameter defines the integer width on the input side.
If the operation is

FLOAT2INT

or

FLOAT2FIXED

, this

parameter defines the result width on the output side.
The available settings are

32

bits,

64

bits or n bits. For n

bits settings, the range is from

4

bits to

64

bits.

17-10

ALTFP_CONVERT Parameters

UG-01058

2014.12.19

Altera Corporation

ALTFP_CONVERT IP Core

Send Feedback

Advertising