Forum Discussion
AnandRaj_S_Intel
Regular Contributor
7 years agoHi @zasas
Okay, You have to build a counter which will count to 25 million to get 2 second events which will be used for reset.
You can refer below example and use it in you design.
Please note that I have not checked your code.
PROCESS (Clock)
BEGIN
IF (Clock'EVENT AND Clock = '1') THEN
counter <= counter + '1';
if( counter = <NUMBER>) then --<NUMBER> =How many clocks will you need to get two second? Well it will be clearly 25 million cycles assusing clock of 50MHz.
reset<= '1';
counter <= "0";
else
reset<= '0';
end if;
END IF;
END PROCESS;Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Regards
Anand