Hi
What is the exact difference between including a package and importing a package? I get error that the package cannot be bound when i import a package, but at the same time when i include a package i do not get the error.
Can somebody give a clear picture on why it happens?
In which cases should package be imported and what are the cases where including is suitable?
Meenu,
See: http://blogs.mentor.com/verificationhorizons/blog/2010/07/13/package-import-versus-include/
In general we recommend packages and it should work.On your specific errors - can you tell which tool (& version) you use? Also can you show some code?
Ajeetha, CVC
A package is a name-space and should be compiled stand alone and then imported into any scope that needs to refer to that name space. including a package makes the code only visible within the scope in which it is included. The include approach will cause you type mismatches since you will have multiple definitions of what was intended to be the same type.
If you are getting package not bound messages, then check that the package has been compiled, or that the library into which it has been compiled is being referenced during the build process.