Packages
Packages consist of two parts
- Package declaration -- contains declarations of objects defined in the package
- Package body -- contains necessary definitions for certain objects in package declaration
- e.g. subprogram descriptions
Examples of VHDL items included in packages :
- Basic declarations
- Types, subtypes
- Constants
- Subprograms
- Use clause
Notes:
A package contains a collection of user-defined declarations and descriptions that a designer makes available to other VHDL entities. Items within a package are made available to other VHDL entities (including other packages) with a use clause. Some examples of possible package contents are shown above.
The next two slides will describe the two parts of a VHDL package, the package declaration and the package body.