Files
physical-design-onboarding-F26/resources/counter.v
T
2026-10-06 19:42:55 -04:00

12 lines
179 B
Verilog

module counter(clk,rst,count);
input clk,rst;
output reg [7:0] count;
always@(posedge clk or negedge rst) begin
if(!rst)
count=0;
else
count=count+1;
end
endmodule