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 data(load_left, load_right, user_input_player, computer, load_user, enable_aalu,enable_winner_indicator,

clk, stop_left, stop_right, resetn, HEX0, HEX1, HEX4, HEX5, LEDR, status, same_leftright, score);



    

	input load_left, load_right, clk, stop_left, stop_right, resetn, enable_aalu, enable_winner_indicator, load_user;

	input [1:0] user_input_player;

	input [1:0] computer;

	reg [1:0] player;

	output [6:0] HEX0, HEX1, HEX4, HEX5;

	output [9:8] LEDR;

        output [4:0] score;

        output [1:0] status;

        output reg same_leftright;

        

	wire [4:0] left;

	wire [4:0] right;

	wire lose;

	wire [4:0] bonus;

        wire [1:0] winner;



counter left_counter(



            .clk(clk),



            .clear_b(resetn),



            .enable(load_left),



            .stop(stop_left),



            .q(left[4:0])



            );



    counter right_counter(



            .clk(clk),



            .clear_b(resetn),



            .enable(load_right),



            .stop(stop_right),

 

            .q(right[4:0])



            );

				

	 AALU aalu(              

	         .x(left[4:0]),

	         .y(right[4:0]),

	         .lose(lose),

	         .bonus(bonus[4:0]),

	         .enable(enable_aalu)	

	         );

		  

	 always @(*)

	 begin

	     if (lose == 1'b1)

		      same_leftright <= 1'b1;

		  else

		      same_leftright <= 1'b0;

	 end

	 

	 always @(*)

	 begin

	     if (load_user == 1'b1)

	         player <= user_input_player;

	 end

	 

	 winner_indicator wi (

	     .player(player[1:0]),

	     .computer(computer[1:0]),

	     .winner(winner[1:0]),

	     .enable(enable_winner_indicator)

	     );



    SevenSegment display_left (

        .HEXleft(HEX5[6:0]),

        .HEXright(HEX4[6:0]),

        .num(left[4:0])

        );

    

    SevenSegment display_right (

        .HEXleft(HEX1[6:0]),

        .HEXright(HEX0[6:0]),

        .num(right[4:0])

        );

    

    

	


	assign score[4:0] = bonus[4:0];

	assign LEDR[9:8] = winner[1:0];

	assign status[1:0] = winner[1:0];

	

endmodule
module data(load_left, load_right, user_input_player, computer, load_user, enable_aalu,enable_winner_indicator,

clk, stop_left, stop_right, resetn, HEX0, HEX1, HEX4, HEX5, LEDR, status, same_leftright, score);




    

	input load_left, load_right, clk, stop_left, stop_right, resetn, enable_aalu, enable_winner_indicator, load_user;

	input [1:0] user_input_player;

	input [1:0] computer;

	reg [1:0] player;

	output [6:0] HEX0, HEX1, HEX4, HEX5;

	output [9:8] LEDR;

        output [4:0] score;

        output [1:0] status;

        output reg same_leftright;

        

	wire [4:0] left;

	wire [4:0] right;

	wire lose;

	wire [4:0] bonus;

        wire [1:0] winner;



counter left_counter(



            .clk(clk),



            .clear_b(resetn),



            .enable(load_left),



            .stop(stop_left),



            .q(left[4:0])



            );



    counter right_counter(



            .clk(clk),



            .clear_b(resetn),



            .enable(load_right),



            .stop(stop_right),

 

            .q(right[4:0])



            );

				

	 AALU aalu(              

	         .x(left[4:0]),

	         .y(right[4:0]),

	         .lose(lose),

	         .bonus(bonus[4:0]),

	         .enable(enable_aalu)	

	         );

		  

	 always @(*)

	 begin

	     if (lose == 1'b1)

		      same_leftright <= 1'b1;

		  else

		      same_leftright <= 1'b0;

	 end

	 

	 always @(*)

	 begin

	     if (load_user == 1'b1)

	         player <= user_input_player;

	 end

	 

	 winner_indicator wi (

	     .player(player[1:0]),

	     .computer(computer[1:0]),

	     .winner(winner[1:0]),

	     .enable(enable_winner_indicator)

	     );



    SevenSegment display_left (

        .HEXleft(HEX5[6:0]),

        .HEXright(HEX4[6:0]),

        .num(left[4:0])

        );

    

    SevenSegment display_right (

        .HEXleft(HEX1[6:0]),

        .HEXright(HEX0[6:0]),

        .num(right[4:0])

        );

    

    

	


	assign score[4:0] = bonus[4:0];

	assign LEDR[9:8] = winner[1:0];

	assign status[1:0] = winner[1:0];

	

endmodule