Contents Up << >>

Packages

The package construct is used to combine commonly used variables, constants, subprograms and others into a group that can be accessed in many places with the library and use statements. The package declaration contains object declarations that may be made visible to entities and architectures with the use and library statements. Each package must also have a package body. It contains objects that are used by the package but can not be used by other entities or architectures. The package body may be empty.

The syntax for the package declaration is The syntax for the package body is If the simple name is included after END it must repeat the name of the package.