by include i ment: USE work.pckg.all; my code is :
----------------------------------------------------------- USE work.all; USE work.pckg.all; USE std.textio.all; LIBRARY ieee; USE ieee.std_logic_1164.all; LIBRARY std; USE std.standard.all; ----------------------------------------------------------- ENTITY crct1 IS PORT( SIGNAL d : IN BIT; SIGNAL clk: IN BIT; SIGNAL q : OUT BIT); END ENTITY crct1; ---------------------------------------------------------- ARCHITECTURE arch OF crct1 IS BEGIN PROCESS IS BEGIN WAIT UNTIL clk='1'; q <= d; END PROCESS ; END ARCHITECTURE arch; package pckg.vhd code is (in different file ofcourse): ENTITY pckg IS TYPE my_type IS (hello,there); END ENTITY pckg; ---------------------------------------------------------------------- any way online i found the following code: sem.adb Diff Switch to side-by-side view --- a/sem.adb +++ b/sem.adb @@ -2309,6 +2309,7 @@ return; end if; Libraries.Load_Design_Unit (Prefix_Name, Clause); + Add_Dependence (Prefix_Name); when others => Error_Msg_Sem ("prefix must designate a package or a library", Prefix); > To: ghdl-discuss@gna.org > From: tging...@free.fr > Date: Sat, 7 May 2016 09:17:30 +0200 > Subject: Re: [Ghdl-discuss] ghdl -r produces compilation error > > On 07/05/16 08:54, Tarek Najjar wrote: > > Finally my problem is solved . > > > > actually i installed libgnat-4.9-dbg and *ghdl_0.33-1jessie1_i386.deb* > > <https://github.com/tgingold/ghdl/releases/download/v0.33/ghdl_0.33-1jessie1_i386.deb> > > and the problem was gone. > > but when i included a user-defined package to work > > There is no include in vhdl :-) > > > i gor the following error > > "prefix must designate a package or a library" > > Please, post the code. It looks like a vhdl mistake. > > Regards, > Tristan. > > > _______________________________________________ > Ghdl-discuss mailing list > Ghdl-discuss@gna.org > https://mail.gna.org/listinfo/ghdl-discusshttps://sourceforge.net/p/ghdl-updates/ghdl-updates.git/ci/071b3291e88f05bc06d91fe4ebe88582292d3f0d/https://sourceforge.net/p/ghdl-updates/ghdl-updates.git/ci/071b3291e88f05bc06d91fe4ebe88582292d3f0d/
_______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss