data/full_repos/permissive/515245706/milestone3/game.v
1: b'%Error: data/full_repos/permissive/515245706/milestone3/game.v:1: Cannot find include file: ./gameBoardPart2/gameBoardPart2.v\n`include "./gameBoardPart2/gameBoardPart2.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v.v\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v.sv\n             ./gameBoardPart2/gameBoardPart2.v\n             ./gameBoardPart2/gameBoardPart2.v.v\n             ./gameBoardPart2/gameBoardPart2.v.sv\n             obj_dir/./gameBoardPart2/gameBoardPart2.v\n             obj_dir/./gameBoardPart2/gameBoardPart2.v.v\n             obj_dir/./gameBoardPart2/gameBoardPart2.v.sv\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:2: Cannot find include file: ./gameStateFSM/gameStateFSM.v\n`include "./gameStateFSM/gameStateFSM.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:3: Cannot find include file: ./gameStateDatapath/gameStateDatapath.v\n`include "./gameStateDatapath/gameStateDatapath.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:4: Cannot find include file: ./countDown/countDown.v\n`include "./countDown/countDown.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:5: Cannot find include file: ./movementCounter/movementCounter.v\n`include "./movementCounter/movementCounter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:6: Cannot find include file: ./vga_adapter/vga_adapter.v\n`include "./vga_adapter/vga_adapter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:7: Cannot find include file: ./vga_adapter/vga_controller.v\n`include "./vga_adapter/vga_controller.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:8: Cannot find include file: ./vga_adapter/vga_address_translator.v\n`include "./vga_adapter/vga_address_translator.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:9: Cannot find include file: ./vga_adapter/vga_pll.v\n`include "./vga_adapter/vga_pll.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:122: Too many digits for 1 bit number: 1\'b010\n  .hexID(1\'b010)\n         ^~~~~~\n%Error: Exiting due to 10 error(s)\n'
module hex_decoder(hex_digit, segments, ifInGame, ifGameOver, ifWin, hexID);
    input [3:0] hex_digit;
	input ifGameOver, ifInGame, ifWin, hexID;
    output reg [6:0] segments;
   
    always @(*)
		if (ifInGame == 1'b1)
		begin
			case (hex_digit)
				4'h0: segments = 7'b100_0000;
				4'h1: segments = 7'b111_1001;
				4'h2: segments = 7'b010_0100;
				4'h3: segments = 7'b011_0000;
				4'h4: segments = 7'b001_1001;
				4'h5: segments = 7'b001_0010;
				4'h6: segments = 7'b000_0010;
				4'h7: segments = 7'b111_1000;
				4'h8: segments = 7'b000_0000;
				4'h9: segments = 7'b001_1000;
				4'hA: segments = 7'b000_1000;
				4'hB: segments = 7'b000_0011;
				4'hC: segments = 7'b100_0110;
				4'hD: segments = 7'b010_0001;
				4'hE: segments = 7'b000_0110;
				4'hF: segments = 7'b000_1110;   
				default: segments = 7'h7f;
			endcase
		end
		else if (ifGameOver == 1'b1)
		begin
			if (ifWin == 1'b1) 
			begin
				case(hexID)
					3'b000: segments = 7'b010_0001;
					3'b001: segments = 7'b010_0011;
					3'b010: segments = 7'b010_0011; 
					3'b011: segments = 7'b001_1000;
					default: segments = 7'h7f;
				endcase
			end
			else
			begin
				case(hexID)
					3'b000: segments = 7'b000_0110;
					3'b001: segments = 7'b001_0010;
					3'b010: segments = 7'b100_0000; 
					3'b011: segments = 7'b100_0111;
					default: segments = 7'h7f;
				endcase
			end
		end
endmodule
module hex_decoder(hex_digit, segments, ifInGame, ifGameOver, ifWin, hexID);

    input [3:0] hex_digit;
	input ifGameOver, ifInGame, ifWin, hexID;
    output reg [6:0] segments;
   
    always @(*)
		if (ifInGame == 1'b1)
		begin
			case (hex_digit)
				4'h0: segments = 7'b100_0000;
				4'h1: segments = 7'b111_1001;
				4'h2: segments = 7'b010_0100;
				4'h3: segments = 7'b011_0000;
				4'h4: segments = 7'b001_1001;
				4'h5: segments = 7'b001_0010;
				4'h6: segments = 7'b000_0010;
				4'h7: segments = 7'b111_1000;
				4'h8: segments = 7'b000_0000;
				4'h9: segments = 7'b001_1000;
				4'hA: segments = 7'b000_1000;
				4'hB: segments = 7'b000_0011;
				4'hC: segments = 7'b100_0110;
				4'hD: segments = 7'b010_0001;
				4'hE: segments = 7'b000_0110;
				4'hF: segments = 7'b000_1110;   
				default: segments = 7'h7f;
			endcase
		end
		else if (ifGameOver == 1'b1)
		begin
			if (ifWin == 1'b1) 
			begin
				case(hexID)
					3'b000: segments = 7'b010_0001;
					3'b001: segments = 7'b010_0011;
					3'b010: segments = 7'b010_0011; 
					3'b011: segments = 7'b001_1000;
					default: segments = 7'h7f;
				endcase
			end
			else
			begin
				case(hexID)
					3'b000: segments = 7'b000_0110;
					3'b001: segments = 7'b001_0010;
					3'b010: segments = 7'b100_0000; 
					3'b011: segments = 7'b100_0111;
					default: segments = 7'h7f;
				endcase
			end
		end
endmodule