Hello Robin, std_logic_textio is a Synopsys package. You need to use --std=08 to enable VHDL-2008, which includes this package or select another IEEE flavor with --ieee=synopsys. The latter one add vendor specific packages with are not Provided by IEEE to the ieee library.
Ieee ptfalls http://ghdl.readthedocs.io/en/latest/Invoking_GHDL.html#ieee-library-pitfalls --std and --ieee documention http://ghdl.readthedocs.io/en/latest/Invoking_GHDL.html#cmdoption--std VHDL versions http://ghdl.readthedocs.io/en/latest/GHDL_implementation_of_VHDL.html#vhdl-standards Kind regards Patrick ----------------------------------- Wissenschaftliche Hilfskraft Technische Universität Dresden Fakultät Informatik Institut für Technische Informatik Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur 01062 Dresden Tel.: +49 351 463-38451 Fax: +49 351 463-38324 Raum: APB-1020 E-Mail: patrick.lehm...@tu-dresden.de WWW: http://vlsi-eda.inf.tu-dresden.de -----Original Message----- From: Ghdl-discuss [mailto:ghdl-discuss-boun...@gna.org] On Behalf Of Robin Mahlke Sent: Saturday, August 20, 2016 2:15 PM To: ghdl-discuss@gna.org Subject: [Ghdl-discuss] include path for librarys Hi, probably a noob question, but i didn't find any information on this problem. Some of my code has includes the line use ieee.std_logic_textio.all; and if i call ghdl with $ ghdl -a *.vhd ./testbench/* i get the error ./testbench/tb.vhd:5:10: primary unit "std_logic_textio" not found in library "ieee". On my file system exist some std_logic_textio, which are from ghdl, I thought, but apparently the are not included correctly. I tried to specify the lib with the -ieee flag, but it didn't work either. What i'm doing wrong? Regards Robin $ find / -name "*std_logic_textio*" /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl/src/synopsys/std_logic_textio.vhdl /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl/src/ieee2008/std_logic_textio.vhdl /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl/v87/synopsys/std_logic_textio.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl/v93/synopsys/std_logic_textio.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl/v08/ieee/std_logic_textio.o
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss