[an error occurred while processing this directive]
|
сброс счетчика можно не делать.
process(tclk, reset)
begin
if reset = '1' then
count <= (others => '0');
count_strobe <= '0';
elsif falling_edge(tclk) then
count <= count + 1;
count_strobe <= and_reduce(count);
end if;
end process;
and_reduce() --- функция из пакета std_logic_misc, делает and всех битов вектора.
E-mail: info@telesys.ru