The package body keyword specifies the definitions of the various subprograms (components, functions, etc.) that are declared by the package body’s associated package declaration.

 

The package body must have the same name as the package declaration.  Only one package body can be associated with each package declaration.

 

Example

    package body conversions is

        function to_unsigned (a: std_ulogic_vector) return

       integer is

      ...

        begin

      ...

        end to_unsigned;

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

      std_ulogic_vector is

      ...

        begin

      ...

        end to_vector;

    end conversions;

 

LRM

    2.6

 

See also

image\diamond.gif  Package

image\diamond.gif  Library

image\diamond.gif  Use