data/full_repos/permissive/461620575/Galaga on FPGA/VGA/address_generator.v
1: b'%Error: Cannot find file containing module: on\n        ... Looked in:\n             data/full_repos/permissive/461620575/Galaga/on\n             data/full_repos/permissive/461620575/Galaga/on.v\n             data/full_repos/permissive/461620575/Galaga/on.sv\n             on\n             on.v\n             on.sv\n             obj_dir/on\n             obj_dir/on.v\n             obj_dir/on.sv\n%Error: Cannot find file containing module: FPGA/VGA,data/full_repos/permissive/461620575\n%Error: Cannot find file containing module: data/full_repos/permissive/461620575/Galaga\n%Error: Cannot find file containing module: FPGA/VGA/address_generator.v\n%Error: Exiting due to 4 error(s)\n'
module address_generator (clk, vga_blank_n, hcount, vcount, ram_q, ram_addr, pixel_out);
	input clk;
	input vga_blank_n;
	input [9:0] hcount, vcount;
	input [15:0] ram_q;
	output [15:0] ram_addr;
	output [23:0] pixel_out;
	
	parameter VGA_BASE_ADDR = 16'hB000;
	
	wire [9:0] x_pos, y_pos;
	assign x_pos = hcount - 10'd158;
	assign y_pos = vcount;
	
	

	assign ram_addr = vga_blank_n * ((x_pos >> 2) + ((y_pos >> 2) * 8'hA0) + VGA_BASE_ADDR);
	
	wire [15:0] glyph_addr;
	

	assign glyph_addr = (x_pos & 16'h3) + ((y_pos & 16'h3) * 16'h4) + ram_q;
	
	glyph_rom glyphs (.clk(clk), .glyph_addr(glyph_addr), .glyph_pixel(pixel_out));
	
	
	
endmodule
module address_generator (clk, vga_blank_n, hcount, vcount, ram_q, ram_addr, pixel_out);

	input clk;
	input vga_blank_n;
	input [9:0] hcount, vcount;
	input [15:0] ram_q;
	output [15:0] ram_addr;
	output [23:0] pixel_out;
	
	parameter VGA_BASE_ADDR = 16'hB000;
	
	wire [9:0] x_pos, y_pos;
	assign x_pos = hcount - 10'd158;
	assign y_pos = vcount;
	
	

	assign ram_addr = vga_blank_n * ((x_pos >> 2) + ((y_pos >> 2) * 8'hA0) + VGA_BASE_ADDR);
	
	wire [15:0] glyph_addr;
	

	assign glyph_addr = (x_pos & 16'h3) + ((y_pos & 16'h3) * 16'h4) + ram_q;
	
	glyph_rom glyphs (.clk(clk), .glyph_addr(glyph_addr), .glyph_pixel(pixel_out));
	
	
	
endmodule