Forum Discussion
Altera_Forum
Honored Contributor
16 years agoabout if
hello, do you know how to terminate an "if" instruction? the instructions are repeating over and over again and i don't want to repeat.I need a break terminal or something like that.I search o...
Altera_Forum
Honored Contributor
16 years agoIt will be executed every time the clock comes.
The only way to avoid it is to remember that it was already ran once: logic once = 1'b0; always @ (posedge clk) begin if (once == 1'b0) begin // insert your code here once <= 1'b1; // remember that it already ran once end end