[an error occurred while processing this directive]
|
1) Внутренний
2) Асинхронный
3) start - период 800мкс, длительность - 500нс(низкий уровень). Производится при помощи clkx = 100Мгц.
clk - 10МГц, clk и clkx - асинхронны.
4) Формирование сигнала start_en_trg(по которому вся схема работает) из start(для приведенной схемы он внешний, а для проекта - внутренний, т.е. не с pad'a приходит)
---------------------------------------------------
start_en1: process( reset, start, stop_trg) is
begin
if(reset = '0') then
start_en <= '0';
div_start <= x"0800";
elsif(stop_trg = '1') then start_en <= '0';
elsif(falling_edge(start)) then start_en <= '1';
end if;
end process;
pr_start_en_trg: process(clk)
begin
if(rising_edge(clk)) then start_en_trg <= start_en; end if;
end process;
---------------------------------------------------------------
Формирование stop_trg:
---------------------------------------------------------------
stop <= '1' when cnt_start = div_start else '0';
pr_stop_tr1: process(stop, start_en_trg)
begin
if(start_en_trg = '0') then stop_trg1 <= '0';
elsif(rising_edge(stop)) then stop_trg1 <= '1';
end if;
end process;
.......
if(rising_edge(clk)) then stop_trg <= stop_trg1;
.......
----------------------------------------------------------------
E-mail: info@telesys.ru