Packages
Example package contents include:
- Subprograms (i.e. functions and procedures)
- Data and type declarations such as
- User record definitions
- User types and enumerated types
- Constants
- Files
- Aliases
- Attributes
- Component declarations
Entities and Architectures cannot be declared or defined in a package
To use a package, it must be made visible via the use construct
Notes:
This slide lists many of the VHDL constructs frequently included in packages. The contents of a package are made available to other VHDL descriptions (i.e. other packages, entities, and architectures) by way of USE clauses that are analogous to the INCLUDE statements of other programming languages.