vvsvv
Full Member level 1
As to What I know, only one clk may used in one process,
however, I have to use 2 clks in process , how to do it!??????
MAY I.....
----------------------------------------------------------------
cnt_pel_Process (CLK2, RESET)
begin
if (vref'event and vref= '1' and rts0= '1') or (reset = '1') then
cnt_pel <= 0;
elsif CLK2='1' and CLK2'event then
if (cnt_pel >= MAX_PEL) then cnt_pel <= 0;
else
cnt_pel <= cnt_pel + 1;
end if;
end if;
end process cnt_pel_p;
----------------------------------------------
Thank you for your advice!!!!!!!!!!
however, I have to use 2 clks in process , how to do it!??????
MAY I.....
----------------------------------------------------------------
cnt_pel_Process (CLK2, RESET)
begin
if (vref'event and vref= '1' and rts0= '1') or (reset = '1') then
cnt_pel <= 0;
elsif CLK2='1' and CLK2'event then
if (cnt_pel >= MAX_PEL) then cnt_pel <= 0;
else
cnt_pel <= cnt_pel + 1;
end if;
end if;
end process cnt_pel_p;
----------------------------------------------
Thank you for your advice!!!!!!!!!!