Forum Discussion
Altera_Forum
Honored Contributor
17 years agoTry this, it works.
:) ----------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.numeric_std.all; ENTITY compt IS PORT ( C, V :IN std_logic; A :OUT std_logic); END ENTITY compt; ARCHITECTURE arc OF compt IS begin process(C) begin if (C'EVENT AND C='1' AND V='0') then A <= '1'; else A <= '0'; end if; end process; end arc; -----------------------------------------