Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Hi, package is for procedures and functions. (not 100% sure) --- Quote End --- You can put component declarations in a package, but its a habit formed a long long time ago before direct isntantiation was brought into the language (1993) and supported by the tools. Component declarations are messy because you have to maintain essentially two copies of the same thing, and its too easy to update the entity and forget to update the component. But It can be useful to have a package without a body. A setup package containing types and constants for example.