My GHDL_FLAGS are : --ieee=synopsys -fexplicit -v ghdl version is still an old one ;(
GHDL 0.29 (20100109) [Sokcho edition] Compiled with GNAT Version: GPL 2008 (20080521) ghdl -a --ieee=synopsys -fexplicit -v --work=altera_mf altera_mf.vhd revealed that this code missed library definitions at multiple lines. Next ghdl -a ../src/SerialLinkFifo.vhd Resulted in : /usr/local/libexec/gcc/i686-pc-linux-gnu/4.3.4/ghdl1 -fexplicit -P/usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4/vhdl/lib//v93/std/ -P/usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4/vhdl/lib//v93/synopsys/ -quiet -o SerialLinkFifo.s ../src/SerialLinkFifo.vhd ../src/SerialLinkFifo.vhd:40:10: primary unit "altera_mf" not found in library "altera_mf" ghdl: compilation error best regards Simon On 7/2/15, [email protected] <[email protected]> wrote: > Send Ghdl-discuss mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.gna.org/listinfo/ghdl-discuss > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ghdl-discuss digest..." > > > Today's Topics: > > 1. design can't find compiled Altera libraries (Simon Thijs de Feber) > 2. Re: design can't find compiled Altera libraries ([email protected]) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 1 Jul 2015 21:45:42 +0200 > From: Simon Thijs de Feber <[email protected]> > To: [email protected] > Subject: [Ghdl-discuss] design can't find compiled Altera libraries > Message-ID: > <cacewdttq4susqeimbj4o3d1kv+cpirxhyddwqjt_nvxzb91...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hello, > > I am in a fight with ghdl or my design to get the Altera libraries > getting found. > It keep coming back to me with : > > /projects/SerialLink/ghdl/../src/SerialLinkFifo.vhd:39:9: cannot find > resource library "altera_mf" > > SerialLinkFifo is a fifo generated by Quartus Megawizard. > > That requires compilation of the altera_mf and altera_mf_components vhdl > files. > > Below is a part of my Makefile > > compile: > @(echo "Compile SerialLink with GHDL"; \ > $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=altera_mf > $(ALTERA_LIST) ; \ > $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=work > $(VHDL_LIST) ; > \ > $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=work > $(TB_VHDL_LIST) ; \ > $(GHDL_CMD) -m -g -Paltera_mf $(GHDL_FLAGS) --workdir=compiled > --work=work $(TESTBENCH) ; \ > ); > > I have tried different "work" and "workdir" setting without success. > > Even compiling with the -a en -e switches give similar result. > > > > Any one an idea ? > > best regards > > Simon > > > > ------------------------------ > > Message: 2 > Date: Thu, 2 Jul 2015 09:18:35 +0200 (CEST) > From: [email protected] > To: GHDL discuss list <[email protected]> > Subject: Re: [Ghdl-discuss] design can't find compiled Altera > libraries > Message-ID: > > <663884650.1537828.1435821515156.javamail.r...@zimbra20-e3.priv.proxad.net> > > Content-Type: text/plain; charset=utf-8 > > Hello, > >> I am in a fight with ghdl or my design to get the Altera libraries >> getting found. >> It keep coming back to me with : >> >> /projects/SerialLink/ghdl/../src/SerialLinkFifo.vhd:39:9: cannot find >> resource library "altera_mf" >> >> SerialLinkFifo is a fifo generated by Quartus Megawizard. >> >> That requires compilation of the altera_mf and altera_mf_components >> vhdl files. >> >> Below is a part of my Makefile >> >> compile: >> @(echo "Compile SerialLink with GHDL"; \ >> $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=altera_mf >> $(ALTERA_LIST) ; \ >> $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=work >> $(VHDL_LIST) ; \ >> $(GHDL_CMD) -i $(GHDL_FLAGS) --workdir=compiled --work=work >> $(TB_VHDL_LIST) ; \ >> $(GHDL_CMD) -m -g -Paltera_mf $(GHDL_FLAGS) --workdir=compiled >> --work=work $(TESTBENCH) ; \ >> ); >> >> I have tried different "work" and "workdir" setting without success. >> >> Even compiling with the -a en -e switches give similar result. >> >> >> Any one an idea ? > > It is difficult to comment as you haven't disclosed details: ghdl version, > definition of GHDL_FLAGS... > > You'd better to start with simple commands: > ghdl -a --work=altera_mf ALTERA_FILES > ghdl -a YOUR_SOURCES > ghdl -e TOP_UNIT > > Regards, > Tristan. > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/ghdl-discuss > > > ------------------------------ > > End of Ghdl-discuss Digest, Vol 116, Issue 1 > ******************************************** > _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
