[an error occurred while processing this directive]
|
что - то в этом роде:
В данном случае cnt(20) - выход переноса счетчика.
if clk = '1' and clk'event then
if cnt(20) = '1' then cnt <= const;
else cnt <= cnt - 1;
end if;
if cnt(20) = '1' then
f <= '1';
elsif cnt(8 downto 0) = const1 then -- или cnt(9 downto 0) = const1
f <= '0';
end if;
end if;
E-mail: info@telesys.ru