Skip to content

Commit fc3e3c2

Browse files
authored
Update up_counter.v
1 parent a6d0e8d commit fc3e3c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assignment12/Assignment12.srcs/sources_1/new/up_counter.v

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ module up_counter(
1111
always @(posedge clk)
1212
begin
1313
if(!rst)
14-
count = count + 4'h1;
14+
count <= count + 4'h1;
1515
else
16-
count = 4'h0;
16+
count <= 4'h0;
1717
end
1818

19-
endmodule
19+
endmodule

0 commit comments

Comments
 (0)