Package: std_logic_arith

Types

Name Type Description
UNSIGNED array (NATURAL range <>) of STD_LOGIC
SIGNED array (NATURAL range <>) of STD_LOGIC

Functions

Description
zero extend STD_LOGIC_VECTOR (ARG) to SIZE,
SIZE < 0 is same as SIZE = 0
returns STD_LOGIC_VECTOR(SIZE-1 downto 0)

Description
sign extend STD_LOGIC_VECTOR (ARG) to SIZE,
SIZE < 0 is same as SIZE = 0
return STD_LOGIC_VECTOR(SIZE-1 downto 0)