always@(posedge clk) begin
if(countp<=2'd1) begin
clk_3p<=1'b1;
countp<=countp+2'd1;
end
else if(countp==2'd2) begin
clk_3p<=1'b0;
countp<=2'd0;
end
end
always@(negedge clk) begin
if(countn<=2'd1) begin
clk_3n<=1'b1;
countn<=countn+2'd1;
end
else if(countn==2'd2) begin
clk_3n<=1'b0;
countn<=2'd0;
end
end