[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
пару триггеров с асинхронным резетом и синхронным сетом
signal TRIG1 : STD_LOGIC;
signal TRIG2 : STD_LOGIC;
if RESET1 = '0' then
TRIG1 <= '0';
elseif clk'event and clock = '1' then
TRIG1 <= '1';
end if;
if RESET2 = '0' then
TRIG2 <= '0';
elseif clk'event and clock = '1' then
TRIG2 <= '1';
end if;
if clk'event and clock = '1' then
if TRIG1 = '0' THEN
state <= s0;
elsif TRIG2 = '0' THEN
state <= s1;
else
case .......
.....
end if;
end if;
E-mail: info@telesys.ru