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 consecutive_win_counter(clk, clear_b, q, enable, three_wins);

    input clk;

    input clear_b;

    input [1:0] enable;

    output reg [1:0] q = 0;

    output reg three_wins = 0;

    

    always @(negedge enable)

    begin

        if (enable == 2'b00)
        begin

	    if (clear_b == 1'b0) begin

	        	q <= 0;

	        	three_wins <= 1'b0;

	        	end

	    else if (q == 2'b11) begin

	        	q <= 0;

	        	three_wins <= 1'b1;

	        	end

	    else

	    	begin

	        	q <= q + 1'b1;

	        	three_wins <= 1'b0;

	        end

	  end

end

endmodule
module consecutive_win_counter(clk, clear_b, q, enable, three_wins);


    input clk;

    input clear_b;

    input [1:0] enable;

    output reg [1:0] q = 0;

    output reg three_wins = 0;

    

    always @(negedge enable)

    begin

        if (enable == 2'b00)
        begin

	    if (clear_b == 1'b0) begin

	        	q <= 0;

	        	three_wins <= 1'b0;

	        	end

	    else if (q == 2'b11) begin

	        	q <= 0;

	        	three_wins <= 1'b1;

	        	end

	    else

	    	begin

	        	q <= q + 1'b1;

	        	three_wins <= 1'b0;

	        end

	  end

end

endmodule