Commit f690b3c3 authored by Iulian Gheorghiu's avatar Iulian Gheorghiu

Fix free running of the counter when PERIOD register is zero.

parent 5903947f
......@@ -75,7 +75,7 @@ begin
if(PERIOD)
int <= 1'b1;
end
else
else if(PERIOD)
begin
cnt <= cnt + 1;
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment