DECADE COUNTER module decadecounter(q,clk,reset); output [3:0]q; input clk,reset; reg [3:0]q; always @(posedge clk) begin if(reset|q<=4'b0000) q<=4'b1111; else q<=q-1; end
endmodule
No comments:
Post a Comment