sameem_shabbir
Advanced Member level 4
Will this code stop the counter at 12?
always @ (posedge clk)
begin
if (counter >= 12)
counter <= 12;
else
counter <= counter+1;
end
If not how should i stop it on a certain value.
always @ (posedge clk)
begin
if (counter >= 12)
counter <= 12;
else
counter <= counter+1;
end
If not how should i stop it on a certain value.