module numarator (num_in, num_out); // numarator 8 stari input wire num_in; output reg [3:0]num_out=0; always @(posedge num_in) begin num_out=num_out+1; if(num_out==8) num_out=4'b0; end endmodule