The package keyword specifies a set of declarations which can include the following items: aliases, attributes, components, constants, files, functions, types, and subtypes. A package declaration can also include attribute specifications, disconnection specifications, and use clauses.

 

By grouping common declarations in a package declaration, the package declaration can be imported and used in other design units.

 

Example

    package conversions is

        function to_unsigned (a: std_ulogic_vector) return

          integer;

        function to_vector (size: integer; num: integer) return

      std_ulogic_vector;

    end conversions;

 

LRM

    2.5

 

See also

image\diamond.gif  Package body

image\diamond.gif  Library

image\diamond.gif  Use