Package: NUMERIC_STD

Constants

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

Types

Name Type Description
UNRESOLVED_UNSIGNED array (NATURAL range <>) of STD_ULOGIC ============================================================================ Numeric Array Type Definitions ============================================================================
UNRESOLVED_SIGNED array (NATURAL range <>) of STD_ULOGIC

Functions

Description
Result subtype: UNRESOLVED_SIGNED(R'LENGTH-1 downto 0)
Result: Computes "L mod R" where L is an INTEGER and
R is an UNRESOLVED_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 an UNRESOLVED_SIGNED vector and

R is an INTEGER.

Id: C.37

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

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

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

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

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

Description
Result subtype: UNRESOLVED_SIGNED
Result: Returns the lesser of an UNRESOLVED_SIGNED vector, L, and

an INTEGER, R.

Id: C.43

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

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

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

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

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

Description
Result subtype: STD_ULOGIC
Result: Computes "L /= R" where L is an UNRESOLVED_SIGNED vector and

R is an INTEGER.

Shift and Rotate Functions

Id: S.1

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

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

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

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

element, ARG'LEFT. The COUNT rightmost elements are lost.

Id: S.5

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

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

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

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

Result: SHIFT_RIGHT(ARG, COUNT)

RESIZE Functions

Id: R.1

Description
Result subtype: UNRESOLVED_SIGNED(NEW_SIZE-1 downto 0)
Result: Resizes the UNRESOLVED_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: UNRESOLVED_UNSIGNED(NEW_SIZE-1 downto 0)
Result: Resizes the UNRESOLVED_SIGNED 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
UNRESOLVED_UNSIGNED vector.
Result: Converts the UNRESOLVED_UNSIGNED vector to an INTEGER.
Id: D.2

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

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

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

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

Description
Result subtype: STD_ULOGIC.

Result: Result of xnor'ing all of the bits of the vector.

Match Functions

Id: M.1

Description
Result subtype: BOOLEAN
Result: terms compared per STD_LOGIC_1164 intent
Id: M.2

Description
Result subtype: BOOLEAN
Result: terms compared per STD_LOGIC_1164 intent
Id: M.3

Description
Result subtype: BOOLEAN
Result: terms compared per STD_LOGIC_1164 intent
Id: M.5

Description
Result subtype: BOOLEAN

Result: terms compared per STD_LOGIC_1164 intent

Translation Functions

Id: T.1

Description
Result subtype: UNRESOLVED_UNSIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', and 'L' is translated
to '0'. If a value other than '0'|'1'|'H'|'L' is found,
the array is set to (others => XMAP), and a warning is
issued.
Id: T.2

Description
Result subtype: UNRESOLVED_SIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', and 'L' is translated
to '0'. If a value other than '0'|'1'|'H'|'L' is found,
the array is set to (others => XMAP), and a warning is
issued.
Id: T.3

Description
Result subtype: UNRESOLVED_UNSIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than '0'|'1'|'H'|'L' are translated to 'X'.
Id: T.4

Description
Result subtype: UNRESOLVED_SIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than '0'|'1'|'H'|'L' are translated to 'X'.
Id: T.5

Description
Result subtype: UNRESOLVED_UNSIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than '0'|'1'|'H'|'L'|'Z' are translated to 'X'.
Id: T.6

Description
Result subtype: UNRESOLVED_SIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than '0'|'1'|'H'|'L'|'Z' are translated to 'X'.
Id: T.7

Description
Result subtype: UNRESOLVED_UNSIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than 'U'|'0'|'1'|'H'|'L' are translated to 'X'.
Id: T.8

Description
Result subtype: UNRESOLVED_SIGNED(S'RANGE)
Result: Termwise, 'H' is translated to '1', 'L' is translated to '0',
and values other than 'U'|'0'|'1'|'H'|'L' are translated to 'X'.
Id: T.9

Description
Result subtype: BOOLEAN
Result: TRUE if S contains a 'U'|'X'|'Z'|'W'|'-' value, FALSE otherwise.
Id: T.10