Yesterday I downloaded ghdl and wanted to try some small vhdl code in-order to get into flow.. But I am getting some library compilation error. I used command "ghdl -a --workdir=work counter.vhd", I also tried compiling std_logic_1164.v93 but no luck yet.
While installation, Install command "tar -C / -zxvf ghdl-0.22-i686-pc-linux.tar" gave some error so I copied files to /usr/local in same hierarchy. Is some thing wrong there...?
It will be very helpful if someone can suggest some thing...
Thanks and Regards,
Sandeep
error
#####################
counter.vhd:18:10: file ../../../src/ieee/std_logic_1164.v93 has changed and must bereanalysed
ghdl: compilation error
#####################
code
******************************************
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.std_logic_arith.ALL ;
ENTITY counter IS
PORT(
clock2 : in std_logic;
reset2 : in std_logic;
count_out : out std_logic_vector(7 downto 0)
);
END counter;
ARCHITECTURE behave OF counter IS
BEGIN
counter_process : PROCESS( clock2, reset2)
BEGIN
IF( reset2 = '0' ) THEN
counter_sig <= (others => '0');
ELSIF ( clock2 'EVENT AND clock2 = '1') THEN
counter_sig <= counter_sig + 1;
END IF;
END PROCESS;
count_out <= counter_sig;
end behave;
******************************************
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
_______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
