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 agoalways @(posedge clkin or posedge OE)
if(OE)
cnt <= 0;
else
cnt <= cnt + 1;