Package: NUMERIC_BIT

Constants

Name Type Value Description
CopyRightNotice STRING "Copyright � 2008 IEEE. All

Types

Name Type Description
UNSIGNED array (NATURAL range <>) of BIT ============================================================================ Numeric Array Type Definitions ============================================================================
SIGNED array (NATURAL range <>) of BIT

Functions

Description
Result subtype: SIGNED(R'LENGTH-1 downto 0)
Result: Computes "L mod R" where L is an INTEGER and
R is a SIGNED vector.

If NO_OF_BITS(L) > R'LENGTH, result is truncated to R'LENGTH.

Id: A.39

Description
Result subtype: INTEGER
Result: Finds the leftmost occurrence of the value of Y in ARG.
Returns the index of the occurrence if it exists, or -1 otherwise.
Id: A.40

Description
Result subtype: INTEGER
Result: Finds the leftmost occurrence of the value of Y in ARG.
Returns the index of the occurrence if it exists, or -1 otherwise.
Id: A.41

Description
Result subtype: INTEGER
Result: Finds the leftmost occurrence of the value of Y in ARG.
Returns the index of the occurrence if it exists, or -1 otherwise.
Id: A.42

Description
Result subtype: BOOLEAN
Result: Computes "L /= R" where L is a SIGNED vector and

R is an INTEGER.

Id: C.37

Description
Result subtype: UNSIGNED
Result: Returns the lesser of two UNSIGNED vectors that may be
of different lengths.
Id: C.38

Description
Result subtype: SIGNED
Result: Returns the lesser of two SIGNED vectors that may be
of different lengths.
Id: C.39

Description
Result subtype: UNSIGNED
Result: Returns the lesser of a nonnegative INTEGER, L, and
an UNSIGNED vector, R.
Id: C.40

Description
Result subtype: SIGNED
Result: Returns the lesser of an INTEGER, L, and a SIGNED
vector, R.
Id: C.41

Description
Result subtype: UNSIGNED
Result: Returns the lesser of an UNSIGNED vector, L, and
a nonnegative INTEGER, R.
Id: C.42

Description
Result subtype: SIGNED
Result: Returns the lesser of a SIGNED vector, L, and

an INTEGER, R.

Id: C.43

Description
Result subtype: UNSIGNED
Result: Returns the greater of two UNSIGNED vectors that may be
of different lengths.
Id: C.44

Description
Result subtype: SIGNED
Result: Returns the greater of two SIGNED vectors that may be
of different lengths.
Id: C.45

Description
Result subtype: UNSIGNED
Result: Returns the greater of a nonnegative INTEGER, L, and
an UNSIGNED vector, R.
Id: C.46

Description
Result subtype: SIGNED
Result: Returns the greater of an INTEGER, L, and a SIGNED
vector, R.
Id: C.47

Description
Result subtype: UNSIGNED
Result: Returns the greater of an UNSIGNED vector, L, and
a nonnegative INTEGER, R.
Id: C.48

Description
Result subtype: BIT
Result: Computes "L /= R" where L is an SIGNED vector and

R is an INTEGER.

Shift and Rotate Functions

Id: S.1

Description
Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a shift-left on an UNSIGNED vector COUNT times.
The vacated positions are filled with Bit '0'.
The COUNT leftmost bits are lost.
Id: S.2

Description
Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a shift-right on an UNSIGNED vector COUNT times.
The vacated positions are filled with Bit '0'.
The COUNT rightmost bits are lost.
Id: S.3

Description
Result subtype: SIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a shift-left on a SIGNED vector COUNT times.
The vacated positions are filled with Bit '0'.
The COUNT leftmost bits are lost.
Id: S.4

Description
Result subtype: SIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a shift-right on a SIGNED vector COUNT times.
The vacated positions are filled with the leftmost bit, ARG'LEFT.

The COUNT rightmost bits are lost.

Id: S.5

Description
Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a rotate-left of an UNSIGNED vector COUNT times.
Id: S.6

Description
Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a rotate-right of an UNSIGNED vector COUNT times.
Id: S.7

Description
Result subtype: SIGNED(ARG'LENGTH-1 downto 0)
Result: Performs a logical rotate-left of a SIGNED vector COUNT times.
Id: S.8

Description
Result subtype: SIGNED(ARG'LENGTH-1 downto 0)

Result: SHIFT_RIGHT(ARG, COUNT)

RESIZE Functions

Id: R.1

Description
Result subtype: SIGNED(NEW_SIZE-1 downto 0)
Result: Resizes the SIGNED vector ARG to the specified size.
To create a larger vector, the new [leftmost] bit positions
are filled with the sign bit (ARG'LEFT). When truncating,
the sign bit is retained along with the rightmost part.
Id: R.2

Description
Result subtype: UNSIGNED(NEW_SIZE-1 downto 0)
Result: Resizes the UNSIGNED vector ARG to the specified size.
To create a larger vector, the new [leftmost] bit positions
are filled with '0'. When truncating, the leftmost bits
are dropped.

Description
Result subtype: UNRESOLVED_UNSIGNED (SIZE_RES'length-1 downto 0)

Description

Result subtype: UNRESOLVED_SIGNED (SIZE_RES'length-1 downto 0)

Conversion Functions

Id: D.1

Description
Result subtype: NATURAL. Value cannot be negative since parameter is an
UNSIGNED vector.
Result: Converts the UNSIGNED vector to an INTEGER.
Id: D.2

Description
Result subtype: INTEGER
Result: Converts a SIGNED vector to an INTEGER.
Id: D.3

Description
Result subtype: UNSIGNED(SIZE-1 downto 0)
Result: Converts a nonnegative INTEGER to an UNSIGNED vector with
the specified size.
Id: D.4

Description
Result subtype: SIGNED(SIZE-1 downto 0)
Result: Converts an INTEGER to a SIGNED vector of the specified size.

Description
Result subtype: UNRESOLVED_UNSIGNED(SIZE_RES'length-1 downto 0)