Forum Discussion
Altera_Forum
Honored Contributor
16 years agovariable reset simple question
Hello friends, I have something like this always @(posedge clkin) begin ... ... cnt = cnt+1;// increment ... ... end and another input named OE. On posedge of OE ...
Altera_Forum
Honored Contributor
16 years agoDear Sir,
This is exactly what I need, thank you very much! Memorize old_value and upon next clock goes HI, will have the situation old=LO and new=HI. Detecting only rising edge. Have a good day both, PS. Nevermind, error was given by using always @(posedge clock and posedge OE) if (!OE) would be error I have to get familiar with verilog :)