To access a VHDL package:
- Use a library clause to include the library in which the package is compiled. For
example:
library library_name;
- Designate the package, or a specific definition contained in the package, with a use
clause. For example:
use library_name.package_name.all
. - Insert these lines immediately before the entity or architecture in which you use the package definitions.
Because the work
library is the default library, you can omit the
library clause if the designated package has been compiled into this library.