module top_module (
input clk,
input reset,
output [9:0] q);
always_ff@(posedge clk) begin
if(reset || q == 999) begin
q <= 10'd0;
end
else begin
q <= q + 10'd1;
end
end
endmodule
-
Notifications
You must be signed in to change notification settings - Fork 0
wlister/wlister
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
README
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published