[an error occurred while processing this directive]
|
задача в следующем: есть 2 опорные частоты 2МГц и 8KHz. в период когда CLK8KHz='1' надо на выходе получить '1' в течении 8 тактов частоты 2MHz. я делаю так:
process(CLK2,CLK_8)
variable cnt: integer range 0 to 10;
begin
if(CLK_8='0') then cnt:=0; FSR<='0';
elsif(CLK_8='1') then
if( rising_edge(CLK2) ) then cnt:=cnt+1;
end if;
if(cnt < 9) then FSR<='1';
else FSR<='0';
end if;
if(cnt=10) then cnt:=9;
end if;
end if;
end process;
в чём может быть проблема ???
E-mail: info@telesys.ru