[an error occurred while processing this directive]
|
library IEEE;use IEEE.STD_LOGIC_1164.all;
ENTITY proba ISPORT
(
clk1: INSTD_LOGIC;
clk2: INSTD_LOGIC;outs: outSTD_LOGIC
);
END proba;
ARCHITECTURE rtl OF proba IStype T_state is (s0,s1);
signal State : T_state := s0;
BEGIN
process (clk1,clk2,state)
begincase state is
when s0 =>
if (RISING_EDGE(clk1)) then
State <= s1;
outs <= '1';
end if;
when s1 =>
if (RISING_EDGE(clk2)) then
State <= s0;
outs <= '0';
end if;
end case;
end process;
END rtl;
E-mail: info@telesys.ru