data/full_repos/permissive/14349674/animation/svAnimation.sv
 line:211: before: "."
1: b'%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:378: Operator EQ expects 32 or 8 bits on the LHS, but LHS\'s VARREF \'Q_y\' generates 7 bits.\n                                                                                : ... In instance animation.FSM\n       if(Q_y == (SIZEOF_Y - 1))\n              ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:374: Operator LT expects 32 or 9 bits on the LHS, but LHS\'s VARREF \'Q_x\' generates 8 bits.\n                                                                                : ... In instance animation.FSM\n       if(Q_x < (SIZEOF_X-1))\n              ^\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:439: Operator ADD expects 32 or 15 bits on the RHS, but RHS\'s VARREF \'Q_x\' generates 8 bits.\n                                                                                : ... In instance animation.FSM\n  address = ((SIZEOF_X*Q_y) + Q_x) + 1;  \n                            ^\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:279: Operator ASSIGN expects 3 bits on the Assign RHS, but Assign RHS\'s CONST \'1\'h0\' generates 1 bits.\n                                                                                : ... In instance animation.colorMux\n output reg [2:0] drawColor = 1\'b0;\n                              ^~~~\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:106: Input port connection \'SIZEOF_X\' expects 9 bits on the pin connection, but pin connection\'s VARREF \'sizeX\' generates 8 bits.\n                                                                                : ... In instance animation\n   .SIZEOF_X(sizeX),\n    ^~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:107: Input port connection \'SIZEOF_Y\' expects 8 bits on the pin connection, but pin connection\'s VARREF \'sizeY\' generates 7 bits.\n                                                                                : ... In instance animation\n   .SIZEOF_Y(sizeY),\n    ^~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/14349674/animation/svAnimation.sv:113: Output port connection \'Q_y\' expects 7 bits on the pin connection, but pin connection\'s VARREF \'Q_Y\' generates 8 bits.\n                                                                                : ... In instance animation\n   .Q_y(Q_Y),\n    ^~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:117: Cannot find file containing module: \'gameLogic\'\n gameLogic dxBall\n ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/14349674/animation,data/full_repos/permissive/14349674/gameLogic\n             data/full_repos/permissive/14349674/animation,data/full_repos/permissive/14349674/gameLogic.v\n             data/full_repos/permissive/14349674/animation,data/full_repos/permissive/14349674/gameLogic.sv\n             gameLogic\n             gameLogic.v\n             gameLogic.sv\n             obj_dir/gameLogic\n             obj_dir/gameLogic.v\n             obj_dir/gameLogic.sv\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:149: Cannot find file containing module: \'newRom\'\n newRom myRom(\n ^~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:155: Cannot find file containing module: \'newRom2\'\n newRom2 blankRom(\n ^~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:160: Cannot find file containing module: \'newRom3\'\n newRom3 paddleRom(\n ^~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:165: Cannot find file containing module: \'newRom4\'\n newRom4 blockRom(\n ^~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:170: Cannot find file containing module: \'newRom5\'\n newRom5 gameStartRom(\n ^~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:175: Cannot find file containing module: \'newRom6\'\n newRom6 gameResetRom(\n ^~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:181: Cannot find file containing module: \'hex_7seg\'\n hex_7seg score1(\n ^~~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:185: Cannot find file containing module: \'hex_7seg\'\n hex_7seg score2(\n ^~~~~~~~\n%Error: data/full_repos/permissive/14349674/animation/svAnimation.sv:195: Cannot find file containing module: \'vga_adapter\'\n vga_adapter VGA(\n ^~~~~~~~~~~\n%Error: Exiting due to 10 error(s), 7 warning(s)\n'
module animation
	(
		CLOCK_50,
		KEY,
		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK,
		VGA_SYNC,
		VGA_R,
		VGA_G,
		VGA_B,
		LEDR,
		SW,
		GPIO_0,
		HEX0,
		HEX1


		
	);

	input			CLOCK_50;
	input	[3:0]	KEY;
	output			VGA_CLK;
	output			VGA_HS;
	output			VGA_VS;
	output			VGA_BLANK;
	output			VGA_SYNC;
	output	[9:0]	VGA_R;
	output	[9:0]	VGA_G;
	output	[9:0]	VGA_B;
	output [17:0]LEDR;
	input [17:0] SW;
	input [2:0] GPIO_0;
	output [6:0] HEX0, HEX1;


	
	wire resetn;
	assign resetn = KEY[0];
	

	wire writeEn;
	wire startPlot;
	wire [14:0] address;
	wire [2:0] color, 
				  drawColor, 
				  eraseColor,
				  drawBall,
				  drawPaddle,
				  drawBlock,
				  drawStartImg,
				  drawResetImg;
	wire [7:0] pos_x;
	wire [6:0] pos_y;
	wire [7:0] new_posX;
	wire [6:0] new_posY;
	wire [7:0] old_posX;
	wire [6:0] old_posY;
	wire [7:0] Q_X, Q_Y;
	
	wire [7:0] sizeX;
	wire [6:0] sizeY;
	wire [2:0]objCode;
	wire [10:0] GameScore;
	wire left, right, start;
	
	wire keyLeft, keyRight, keyStart;
	

	
	input_mode in(
			.switch(SW[17:16]),
			.GPIO(GPIO_0),
			.KEY(KEY[3:1]),
			.keyLeft(keyLeft),
			.keyRight(keyRight),
			.keyStart(keyStart),
			.usrStart(SW[0]),
			.left(left),
			.right(right),
			.start(start));
	
	fsm_draw_logic FSM(

			.clk(CLOCK_50),
			.reset(resetn),
			.go(startPlot),
			.eraseColor(eraseColor),
			.drawColor(drawColor),
			.old_posX(old_posX),
			.old_posY(old_posY),
			.new_posX(new_posX),
			.new_posY(new_posY),
			.SIZEOF_X(sizeX),
			.SIZEOF_Y(sizeY),

			.writeEn(writeEn),
			.address(address),
			.color(color),
			.Q_x(Q_X),
			.Q_y(Q_Y),
			.pos_x(pos_x),
			.pos_y(pos_y));

	gameLogic dxBall
	(
		.moveLeft(left),
		.moveRight(right),
		.clk(CLOCK_50),
		.newX(new_posX),
		.newY(new_posY),
		.oldX(old_posX),
		.oldY(old_posY),
		.sizeX(sizeX),
		.sizeY(sizeY),
		.startPlot(startPlot),
		.object(objCode),
		.userStart(start),
		.userReset(SW[1]),
		.gameOver(SW[2]),
		.LED(LEDR),
		.score(GameScore)
	);
	
	draw_mux colorMux(
		.objCode(objCode),
		.drawBall(drawBall),
		.drawPaddle(drawPaddle),
		.drawColor(drawColor),
		.drawBlock(drawBlock),
		.drawStartImg(drawStartImg),
		.drawResetImg(drawResetImg)
		
	);
	

	newRom myRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawBall));


	newRom2 blankRom(
		.address(address),
		.clock(CLOCK_50),
		.q(eraseColor));
	
	newRom3 paddleRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawPaddle));
	
	newRom4 blockRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawBlock));
	
	newRom5 gameStartRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawStartImg));
		
	newRom6 gameResetRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawResetImg));
	
	
	hex_7seg score1(
		.hex_digit(GameScore[3:0]),
		.seg(HEX0));
		
	hex_7seg score2(
		.hex_digit(GameScore[7:4]),
		.seg(HEX1));
	






	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(pos_x + Q_X),
			.y(pos_y + Q_Y),
			.plot(writeEn),

			.VGA_R(VGA_R),
			.VGA_G(VGA_G),
			.VGA_B(VGA_B),
			.VGA_HS(VGA_HS),
			.VGA_VS(VGA_VS),
			.VGA_BLANK(VGA_BLANK),
			.VGA_SYNC(VGA_SYNC),
			.VGA_CLK(VGA_CLK));
		defparam VGA.RESOLUTION = "160x120";
		defparam VGA.MONOCHROME = "FALSE";
		defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
		defparam VGA.BACKGROUND_IMAGE = "blk_bg.mif";
			


	
endmodule
module animation
	(
		CLOCK_50,
		KEY,
		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK,
		VGA_SYNC,
		VGA_R,
		VGA_G,
		VGA_B,
		LEDR,
		SW,
		GPIO_0,
		HEX0,
		HEX1


		
	);


	input			CLOCK_50;
	input	[3:0]	KEY;
	output			VGA_CLK;
	output			VGA_HS;
	output			VGA_VS;
	output			VGA_BLANK;
	output			VGA_SYNC;
	output	[9:0]	VGA_R;
	output	[9:0]	VGA_G;
	output	[9:0]	VGA_B;
	output [17:0]LEDR;
	input [17:0] SW;
	input [2:0] GPIO_0;
	output [6:0] HEX0, HEX1;


	
	wire resetn;
	assign resetn = KEY[0];
	

	wire writeEn;
	wire startPlot;
	wire [14:0] address;
	wire [2:0] color, 
				  drawColor, 
				  eraseColor,
				  drawBall,
				  drawPaddle,
				  drawBlock,
				  drawStartImg,
				  drawResetImg;
	wire [7:0] pos_x;
	wire [6:0] pos_y;
	wire [7:0] new_posX;
	wire [6:0] new_posY;
	wire [7:0] old_posX;
	wire [6:0] old_posY;
	wire [7:0] Q_X, Q_Y;
	
	wire [7:0] sizeX;
	wire [6:0] sizeY;
	wire [2:0]objCode;
	wire [10:0] GameScore;
	wire left, right, start;
	
	wire keyLeft, keyRight, keyStart;
	

	
	input_mode in(
			.switch(SW[17:16]),
			.GPIO(GPIO_0),
			.KEY(KEY[3:1]),
			.keyLeft(keyLeft),
			.keyRight(keyRight),
			.keyStart(keyStart),
			.usrStart(SW[0]),
			.left(left),
			.right(right),
			.start(start));
	
	fsm_draw_logic FSM(

			.clk(CLOCK_50),
			.reset(resetn),
			.go(startPlot),
			.eraseColor(eraseColor),
			.drawColor(drawColor),
			.old_posX(old_posX),
			.old_posY(old_posY),
			.new_posX(new_posX),
			.new_posY(new_posY),
			.SIZEOF_X(sizeX),
			.SIZEOF_Y(sizeY),

			.writeEn(writeEn),
			.address(address),
			.color(color),
			.Q_x(Q_X),
			.Q_y(Q_Y),
			.pos_x(pos_x),
			.pos_y(pos_y));

	gameLogic dxBall
	(
		.moveLeft(left),
		.moveRight(right),
		.clk(CLOCK_50),
		.newX(new_posX),
		.newY(new_posY),
		.oldX(old_posX),
		.oldY(old_posY),
		.sizeX(sizeX),
		.sizeY(sizeY),
		.startPlot(startPlot),
		.object(objCode),
		.userStart(start),
		.userReset(SW[1]),
		.gameOver(SW[2]),
		.LED(LEDR),
		.score(GameScore)
	);
	
	draw_mux colorMux(
		.objCode(objCode),
		.drawBall(drawBall),
		.drawPaddle(drawPaddle),
		.drawColor(drawColor),
		.drawBlock(drawBlock),
		.drawStartImg(drawStartImg),
		.drawResetImg(drawResetImg)
		
	);
	

	newRom myRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawBall));


	newRom2 blankRom(
		.address(address),
		.clock(CLOCK_50),
		.q(eraseColor));
	
	newRom3 paddleRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawPaddle));
	
	newRom4 blockRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawBlock));
	
	newRom5 gameStartRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawStartImg));
		
	newRom6 gameResetRom(
		.address(address),
		.clock(CLOCK_50),
		.q(drawResetImg));
	
	
	hex_7seg score1(
		.hex_digit(GameScore[3:0]),
		.seg(HEX0));
		
	hex_7seg score2(
		.hex_digit(GameScore[7:4]),
		.seg(HEX1));
	






	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(pos_x + Q_X),
			.y(pos_y + Q_Y),
			.plot(writeEn),

			.VGA_R(VGA_R),
			.VGA_G(VGA_G),
			.VGA_B(VGA_B),
			.VGA_HS(VGA_HS),
			.VGA_VS(VGA_VS),
			.VGA_BLANK(VGA_BLANK),
			.VGA_SYNC(VGA_SYNC),
			.VGA_CLK(VGA_CLK));
		defparam VGA.RESOLUTION = "160x120";
		defparam VGA.MONOCHROME = "FALSE";
		defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
		defparam VGA.BACKGROUND_IMAGE = "blk_bg.mif";
			


	
endmodule