data/full_repos/permissive/515245706/milestone2/gameBoard/game.v
1: b'%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/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/milestone2/gameBoard,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v\n             data/full_repos/permissive/515245706/milestone2/gameBoard,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v.v\n             data/full_repos/permissive/515245706/milestone2/gameBoard,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/milestone2/gameBoard/game.v:2: Cannot find include file: ./gameStateFSM/gameStateFSM.v\n`include "./gameStateFSM/gameStateFSM.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/game.v:3: Cannot find include file: ./gameStateDatapath/gameStateDatapath.v\n`include "./gameStateDatapath/gameStateDatapath.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/game.v:4: Cannot find include file: ./countDown/countDown.v\n`include "./countDown/countDown.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/game.v:5: Cannot find include file: ./movementCounter/movementCounter.v\n`include "./movementCounter/movementCounter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/game.v:102: syntax error, unexpected IDENTIFIER, expecting \',\' or \';\'\n countDown c0(\n ^~~~~~~~~\n%Error: Exiting due to 6 error(s)\n'
module game(
	input clk,
    input resetn,
	input [2: 0] go,
	output [7: 0] xOut,
	output [6: 0] yOut,
	output [2: 0] colourOut,
	output [3: 0] minuteOut,
	output [5: 0] secondOut,
	output [11: 0] countOut
);


	wire gameOver, drawGrid, drawEZ, drawHARD, drawNORMAL, drawNum, clear, drawGrid, inGame;

	wire [63: 0] blockState, initialGameBoard;
	wire [6: 0] initialState;
	wire [3: 0] minuteGiven;
	wire [5: 0] secondGiven;
	
	wire ifWin;
	wire ifLose;
	wire gameBoardReset;
	assign gameBoardReset = ~((resetn == 1'b0) || (inGame == 1'b0));
	assign ifLose = (secondOut == 6'b000000) && (minuteOut == 4'b0000);
	
	
	movementCounter m0(
		.resetn(gameBoardReset),
		.clk(clk),
		.enable(inGame),
		.countOut(countOut)
	)
	
	countDown c0(
		.clk(clk),
		.resetn(gameBoardReset),
		.enable(inGame),
		.minuteIn(minuteGiven),
		.secondIn(secondGiven),
		.minuteOut(minuteOut),
		.secondOut(secondOut)
	);
	
	gameStateFSM g0(
		.clk(clk),
		.resetn(resetn),
		.go(go),
		.win(ifWin),
		.lose(ifLose),
		.drawGrid(drawGrid),
		.drawEZ(drawEZ),
		.drawNORMAL(drawNORMAL),
		.drawHARD(drawHARD),
		.inGame(inGame),
		.drawNum(drawNum),
		.gameOver(gameOver),
		.clear(clear)
	);
	
	gameStateDatapath d0(
		.clk(clk), 
		.resetn(resetn),
		.drawGrid(drawGrid), 
		.drawEZ(drawEZ), 
		.drawNORMAL(drawNORMAL), 
		.drawHARD(drawHARD), 
		.drawNum(drawNum), 
		.clear(clear),
		.numbers(blockState),
		.colorOut(colorOut),
		.xOut(xOut),
		.yOut(yOut),
		.initialGameBoard(initialGameBoard),
		.initialState(initialState),
		.secondGiven(secondGiven),
		.minuteGiven(minuteGiven)
	);
	
	gameBoardPart2 g1(
		.clk(clk),
		.resetn(gameBoardReset),
		.initialGameBoard(initialGameBoard),
		.go(go),
		.initialState(initialState),
		.ifWin(ifWin),
		.blockState(blockState)
	);
	
endmodule
module game(
	input clk,
    input resetn,
	input [2: 0] go,
	output [7: 0] xOut,
	output [6: 0] yOut,
	output [2: 0] colourOut,
	output [3: 0] minuteOut,
	output [5: 0] secondOut,
	output [11: 0] countOut
);



	wire gameOver, drawGrid, drawEZ, drawHARD, drawNORMAL, drawNum, clear, drawGrid, inGame;

	wire [63: 0] blockState, initialGameBoard;
	wire [6: 0] initialState;
	wire [3: 0] minuteGiven;
	wire [5: 0] secondGiven;
	
	wire ifWin;
	wire ifLose;
	wire gameBoardReset;
	assign gameBoardReset = ~((resetn == 1'b0) || (inGame == 1'b0));
	assign ifLose = (secondOut == 6'b000000) && (minuteOut == 4'b0000);
	
	
	movementCounter m0(
		.resetn(gameBoardReset),
		.clk(clk),
		.enable(inGame),
		.countOut(countOut)
	)
	
	countDown c0(
		.clk(clk),
		.resetn(gameBoardReset),
		.enable(inGame),
		.minuteIn(minuteGiven),
		.secondIn(secondGiven),
		.minuteOut(minuteOut),
		.secondOut(secondOut)
	);
	
	gameStateFSM g0(
		.clk(clk),
		.resetn(resetn),
		.go(go),
		.win(ifWin),
		.lose(ifLose),
		.drawGrid(drawGrid),
		.drawEZ(drawEZ),
		.drawNORMAL(drawNORMAL),
		.drawHARD(drawHARD),
		.inGame(inGame),
		.drawNum(drawNum),
		.gameOver(gameOver),
		.clear(clear)
	);
	
	gameStateDatapath d0(
		.clk(clk), 
		.resetn(resetn),
		.drawGrid(drawGrid), 
		.drawEZ(drawEZ), 
		.drawNORMAL(drawNORMAL), 
		.drawHARD(drawHARD), 
		.drawNum(drawNum), 
		.clear(clear),
		.numbers(blockState),
		.colorOut(colorOut),
		.xOut(xOut),
		.yOut(yOut),
		.initialGameBoard(initialGameBoard),
		.initialState(initialState),
		.secondGiven(secondGiven),
		.minuteGiven(minuteGiven)
	);
	
	gameBoardPart2 g1(
		.clk(clk),
		.resetn(gameBoardReset),
		.initialGameBoard(initialGameBoard),
		.go(go),
		.initialState(initialState),
		.ifWin(ifWin),
		.blockState(blockState)
	);
	
endmodule