module jishu(clk,rest,outclk0);
input clk;
input rest;
output reg outclk0;
reg[3:0] temp;
always@(posedge clk or negedge rest)
begin
if(!rest)
begin
temp<=4'b0000;
outclk0<=1'b0;
end
else if(temp==2'd4)
begin
outclk0<=~outclk0;
temp<=4'b0000;
end
else
temp<=temp+1'b1;
//outclk0<=outclk0;
end
endmodule