Hi,

On Thu, Jul 29, 2010 at 12:45 AM, Yann GUIDON <[email protected]> wrote:
> maybe you mistake "package" and "library". VHDL uses "packages".
> you should know this :

not so true.

ieee is a library, std_logic_1164 is a package inside that particular library.

>  use work.mypackage.all;

and my point is to change that work. work is default library
on any working directory.

> compile with ghdl and run :
>
>  ghdl -a mypackage.vhdl myentity.vhdl
>  ghdl -e myentity
>  ./myentity
>
> this works all the time :-)

sure that would work just fine :-) but and if you want to provide
a set of related packages to other users. You could wrap it all
into a library (not work) and they would use that library.

instead of:

use work.<package>.all;

or:

use ieee.std_logic_1164.all;

they would:

use myownlibrary.<package>.all;


-- 
Best Regards,

Felipe Balbi
[email protected]

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to