Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
module top_module (
input clk,
input reset, // Synchronous active-high reset
output [3:0] q);
always @(posedge clk) begin
if(reset) begin
q <= 0;
end
else begin
if(q == 9) begin
q <= 0;
end
else begin
q <= q + 1;
end
end
end
endmodule
3b352cf35This file is pinned to the selected release. Download the original to open it in your design tool.