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 agowell, I solved a bit but isn't full working
always @(posedge clkin or posedge OE) if(OE) cnt = 0; else begin .... other actions on posedge clkin possible only here but I need them always end cnt = cnt + 1; and when OE=1 no more counter increment. Can you suggest something please? I am trouble understanding what's behind yet since I'm used to circular flow like C. Thanks very much.