data/full_repos/permissive/104147155/player.v
 line:110: before: "."
1: b'%Warning-MULTITOP: data/full_repos/permissive/104147155/player.v:250: Multiple top level modules\n                                                                    : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                    : ... Top module \'player\'\nmodule player\n       ^~~~~~\n                                                                    : ... Top module \'DelayCounter\'\nmodule DelayCounter (clock, resetn, enable, delay_out);\n       ^~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/104147155/player.v:179: Operator SUB expects 8 bits on the RHS, but RHS\'s CONST \'2\'h2\' generates 2 bits.\n                                                                 : ... In instance player.sizex\n     m <= m - 2\'b10;\n            ^\n%Error: data/full_repos/permissive/104147155/player.v:94: Cannot find file containing module: \'vga_adapter\'\n vga_adapter VGA(\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/104147155,data/full_repos/permissive/104147155/vga_adapter\n             data/full_repos/permissive/104147155,data/full_repos/permissive/104147155/vga_adapter.v\n             data/full_repos/permissive/104147155,data/full_repos/permissive/104147155/vga_adapter.sv\n             vga_adapter\n             vga_adapter.v\n             vga_adapter.sv\n             obj_dir/vga_adapter\n             obj_dir/vga_adapter.v\n             obj_dir/vga_adapter.sv\n%Error: Exiting due to 1 error(s), 2 warning(s)\n'
module player
	(
		CLOCK_50,

        KEY,
        SW,

		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK_N,
		VGA_SYNC_N,
		VGA_R,
		VGA_G,
		VGA_B
	);
	input			CLOCK_50;
	input   [9:0]   SW;
	input   [3:0]   KEY;
	
	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	
	wire clock_out;
	
	output			VGA_CLK;
	output			VGA_HS;
	output			VGA_VS;
	output			VGA_BLANK_N;
	output			VGA_SYNC_N;
	output	[9:0]	VGA_R;
	output	[9:0]	VGA_G;
	output	[9:0]	VGA_B;
	
	XCounter right(
	.clock(KEY[0]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b1),
	.x_out(x)
	);
	
	XCounter left(
	.clock(KEY[3]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b0),
	.x_out(x)
	);
	
	YCounter down(
	.clock(KEY[2]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b1),
	.y_out(y)
	);
	
	YCounter up(
	.clock(KEY[1]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b0),
	.y_out(y)
	);
	
	playerx sizex(
	.clock(CLOCK_50),
	.move_enable(KEY[3:0]),
	.x_out(x)
	);
	
	playery sizey(
	.clock(CLOCK_50),
	.move_enable(KEY[3:0]),
	.y_out(y)
	);
	
	bullet b(
	.clock(CLOCK_50),
	.shoot(SW[9]),
	.y_out(y),
	.clock_out(clock_out)
	);
	
	eraser e1(
	.clock(CLOCK_50),
	.colour_erase_enable(KEY[3:0]),
	.colour(color),
	.clock_out(clock_out)
	);
	
	vga_adapter VGA(
			.resetn(SW[4]),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(1'b1),

			.VGA_R(VGA_R),
			.VGA_G(VGA_G),
			.VGA_B(VGA_B),
			.VGA_HS(VGA_HS),
			.VGA_VS(VGA_VS),
			.VGA_BLANK(VGA_BLANK_N),
			.VGA_SYNC(VGA_SYNC_N),
			.VGA_CLK(VGA_CLK));
		defparam VGA.RESOLUTION = "160x120";
		defparam VGA.MONOCHROME = "FALSE";
		defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
		defparam VGA.BACKGROUND_IMAGE = "black.mif";
endmodule
module player
	(
		CLOCK_50,

        KEY,
        SW,

		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK_N,
		VGA_SYNC_N,
		VGA_R,
		VGA_G,
		VGA_B
	);

	input			CLOCK_50;
	input   [9:0]   SW;
	input   [3:0]   KEY;
	
	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	
	wire clock_out;
	
	output			VGA_CLK;
	output			VGA_HS;
	output			VGA_VS;
	output			VGA_BLANK_N;
	output			VGA_SYNC_N;
	output	[9:0]	VGA_R;
	output	[9:0]	VGA_G;
	output	[9:0]	VGA_B;
	
	XCounter right(
	.clock(KEY[0]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b1),
	.x_out(x)
	);
	
	XCounter left(
	.clock(KEY[3]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b0),
	.x_out(x)
	);
	
	YCounter down(
	.clock(KEY[2]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b1),
	.y_out(y)
	);
	
	YCounter up(
	.clock(KEY[1]),
	.resetn(SW[0]),
	.enable(SW[1]), 
	.increase(1'b0),
	.y_out(y)
	);
	
	playerx sizex(
	.clock(CLOCK_50),
	.move_enable(KEY[3:0]),
	.x_out(x)
	);
	
	playery sizey(
	.clock(CLOCK_50),
	.move_enable(KEY[3:0]),
	.y_out(y)
	);
	
	bullet b(
	.clock(CLOCK_50),
	.shoot(SW[9]),
	.y_out(y),
	.clock_out(clock_out)
	);
	
	eraser e1(
	.clock(CLOCK_50),
	.colour_erase_enable(KEY[3:0]),
	.colour(color),
	.clock_out(clock_out)
	);
	
	vga_adapter VGA(
			.resetn(SW[4]),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(1'b1),

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