Skip to content

Commit

Permalink
fix: blocking and non-blocking assign
Browse files Browse the repository at this point in the history
  • Loading branch information
litneet64 committed May 31, 2024
1 parent aae6d99 commit 946c26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/counter.v
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module counter(

always @ (posedge clk) begin
if (in) begin
ctr = ctr + 1;
ctr <= ctr + 1;
end

if (rst) begin
Expand All @@ -20,7 +20,7 @@ module counter(
end

if (ctr == threshold) begin
finish = 1;
finish <= 1;
end
end

Expand Down

0 comments on commit 946c26b

Please sign in to comment.