data/full_repos/permissive/113780415/src/top_test.v
 line:1736: before: "&&"
1: b"%Error: data/full_repos/permissive/113780415/src/top_test.v:869: syntax error, unexpected ==, expecting ')' or ',' or or\n    always @(posedge clk && enable == 1'b1)\n                                   ^~\n%Error: Cannot continue\n"
module RPScounter(clk, clear_b, stop, q, enable);

    input clk;

    input clear_b;

    input stop;

	 input enable;

    output reg [1:0] q = 0;

    

    always @(posedge clk && enable == 1'b1)

    begin

        if (stop == 1'b1)

	   		if (clear_b == 1'b0)

	        	q <= 0;

	    	else if (q == 2'b10)

	        	q <= 0;

	    	else

	        	q <= q + 1'b1;

	else

	    q <= q;

    end

endmodule
module RPScounter(clk, clear_b, stop, q, enable);


    input clk;

    input clear_b;

    input stop;

	 input enable;

    output reg [1:0] q = 0;

    

    always @(posedge clk && enable == 1'b1)

    begin

        if (stop == 1'b1)

	   		if (clear_b == 1'b0)

	        	q <= 0;

	    	else if (q == 2'b10)

	        	q <= 0;

	    	else

	        	q <= q + 1'b1;

	else

	    q <= q;

    end

endmodule