data/full_repos/permissive/180199545/MainGame/digital_ssd.v
1: b"%Error: data/full_repos/permissive/180199545/MainGame/digital_ssd.v:40: Cannot find file containing module: 'display_matrix'\n display_matrix matrix(\n ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/180199545/MainGame,data/full_repos/permissive/180199545/display_matrix\n             data/full_repos/permissive/180199545/MainGame,data/full_repos/permissive/180199545/display_matrix.v\n             data/full_repos/permissive/180199545/MainGame,data/full_repos/permissive/180199545/display_matrix.sv\n             display_matrix\n             display_matrix.v\n             display_matrix.sv\n             obj_dir/display_matrix\n             obj_dir/display_matrix.v\n             obj_dir/display_matrix.sv\n%Error: Exiting due to 1 error(s)\n"
module digital_ssd (
	input clk,
	input reset,

	input [10:0] ObjectX,
	input [9:0] ObjectY,
	input [3:0] ObjectScale,
	
	input [5:0] Value,

	
	input [9:0] PollX,
	input [8:0] PollY,
	
	output Hit,
	output Hit2
	);
	
	reg [8:0] Matrix0;
	reg [8:0] Matrix1;
	reg [8:0] Matrix2;
	reg [8:0] Matrix3;
	wire hit_out;
	wire hit2_out;
	
	display_matrix matrix(
		.clk(clk),
		.reset(reset),
		.ObjectX(ObjectX),
		.ObjectY(ObjectY),
		.ObjectScale(ObjectScale),
		.Matrix0(Matrix0),
		.Matrix1(Matrix1),
		.Matrix2(Matrix2),
		.Matrix3(Matrix3),
		.PollX(PollX),
		.PollY(PollY),
		.Hit(hit_out),
		.Hit2(hit2_out)
	);
	
	always @ (posedge clk)
	begin
		case(Value)
			6'd0:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			6'd1:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b111111111;
				end
			6'd2:
				begin
				Matrix0 <= 9'b111110001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100011111;
				end
			6'd3:
				begin
				Matrix0 <= 9'b100010001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			6'd4:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			6'd5:
				begin
				Matrix0 <= 9'b100011111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110001;
				end
			6'd6:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111110000;
				end
			6'd7:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b000000001;
				Matrix3 <= 9'b111111111;
				end
			6'd8:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			6'd9:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111111;
				end
			6'd10:
				begin
				Matrix0 <= 9'b111111110;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111110;
				end
			6'd11:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b011111110;
				end
			6'd12:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b100000001;
				end
			6'd13:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b011111110;
				end
			6'd14:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100010001;
				end
			6'd15:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000100001;
				Matrix2 <= 9'b000100001;
				Matrix3 <= 9'b000100001;
				end
			6'd16:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110011;
				end
			6'd17:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			6'd18:
				begin
				Matrix0 <= 9'b100000001;
				Matrix1 <= 9'b111111111;
				Matrix2 <= 9'b111111111;
				Matrix3 <= 9'b100000001;
				end
			6'd19:
				begin
				Matrix0 <= 9'b011000001;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			6'd20:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000101000;
				Matrix3 <= 9'b111000111;
				end
			6'd21:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000000;
				Matrix2 <= 9'b100000000;
				Matrix3 <= 9'b100000000;
				end
			6'd22:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000001110;
				Matrix2 <= 9'b000001110;
				Matrix3 <= 9'b111111111;
				end
			6'd23:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000011100;
				Matrix2 <= 9'b011100000;
				Matrix3 <= 9'b111111111;
				end
			6'd24:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b011111110;
				end
			6'd25:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b000001110;
				end
			6'd26:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b110000001;
				Matrix3 <= 9'b111111110;
				end
			6'd27:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111101110;
				end
			6'd28:
				begin
				Matrix0 <= 9'b100001110;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b011100001;
				end
			6'd29:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b111111111;
				Matrix2 <= 9'b111111111;
				Matrix3 <= 9'b000000001;
				end
			6'd30:
				begin
				Matrix0 <= 9'b011111111;
				Matrix1 <= 9'b100000000;
				Matrix2 <= 9'b100000000;
				Matrix3 <= 9'b111111111;
				end
			6'd31:
				begin
				Matrix0 <= 9'b001111111;
				Matrix1 <= 9'b110000000;
				Matrix2 <= 9'b110000000;
				Matrix3 <= 9'b001111111;
				end
			6'd32:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b011000000;
				Matrix2 <= 9'b011000000;
				Matrix3 <= 9'b111111111;
				end
			6'd33:
				begin
				Matrix0 <= 9'b111101111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111101111;
				end
			6'd34:
				begin
				Matrix0 <= 9'b100001111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111111111;
				end
			6'd35:
				begin
				Matrix0 <= 9'b111000001;
				Matrix1 <= 9'b100110001;
				Matrix2 <= 9'b100011001;
				Matrix3 <= 9'b100000111;
				end
			6'd36:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b000000000;
				end
			
			default:
				begin
				Matrix0 <= 9'b000000011;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b101110001;
				Matrix3 <= 9'b000011111;
				end
		endcase
	end
	
	assign Hit = hit_out;
	assign Hit2 = hit2_out;

endmodule
module digital_ssd (
	input clk,
	input reset,

	input [10:0] ObjectX,
	input [9:0] ObjectY,
	input [3:0] ObjectScale,
	
	input [5:0] Value,

	
	input [9:0] PollX,
	input [8:0] PollY,
	
	output Hit,
	output Hit2
	);

	
	reg [8:0] Matrix0;
	reg [8:0] Matrix1;
	reg [8:0] Matrix2;
	reg [8:0] Matrix3;
	wire hit_out;
	wire hit2_out;
	
	display_matrix matrix(
		.clk(clk),
		.reset(reset),
		.ObjectX(ObjectX),
		.ObjectY(ObjectY),
		.ObjectScale(ObjectScale),
		.Matrix0(Matrix0),
		.Matrix1(Matrix1),
		.Matrix2(Matrix2),
		.Matrix3(Matrix3),
		.PollX(PollX),
		.PollY(PollY),
		.Hit(hit_out),
		.Hit2(hit2_out)
	);
	
	always @ (posedge clk)
	begin
		case(Value)
			6'd0:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			6'd1:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b111111111;
				end
			6'd2:
				begin
				Matrix0 <= 9'b111110001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100011111;
				end
			6'd3:
				begin
				Matrix0 <= 9'b100010001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			6'd4:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			6'd5:
				begin
				Matrix0 <= 9'b100011111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110001;
				end
			6'd6:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111110000;
				end
			6'd7:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b000000001;
				Matrix3 <= 9'b111111111;
				end
			6'd8:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			6'd9:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111111;
				end
			6'd10:
				begin
				Matrix0 <= 9'b111111110;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111110;
				end
			6'd11:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b011111110;
				end
			6'd12:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b100000001;
				end
			6'd13:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b011111110;
				end
			6'd14:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100010001;
				end
			6'd15:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000100001;
				Matrix2 <= 9'b000100001;
				Matrix3 <= 9'b000100001;
				end
			6'd16:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110011;
				end
			6'd17:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			6'd18:
				begin
				Matrix0 <= 9'b100000001;
				Matrix1 <= 9'b111111111;
				Matrix2 <= 9'b111111111;
				Matrix3 <= 9'b100000001;
				end
			6'd19:
				begin
				Matrix0 <= 9'b011000001;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			6'd20:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000101000;
				Matrix3 <= 9'b111000111;
				end
			6'd21:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000000;
				Matrix2 <= 9'b100000000;
				Matrix3 <= 9'b100000000;
				end
			6'd22:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000001110;
				Matrix2 <= 9'b000001110;
				Matrix3 <= 9'b111111111;
				end
			6'd23:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000011100;
				Matrix2 <= 9'b011100000;
				Matrix3 <= 9'b111111111;
				end
			6'd24:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b011111110;
				end
			6'd25:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b000001110;
				end
			6'd26:
				begin
				Matrix0 <= 9'b011111110;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b110000001;
				Matrix3 <= 9'b111111110;
				end
			6'd27:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111101110;
				end
			6'd28:
				begin
				Matrix0 <= 9'b100001110;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b011100001;
				end
			6'd29:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b111111111;
				Matrix2 <= 9'b111111111;
				Matrix3 <= 9'b000000001;
				end
			6'd30:
				begin
				Matrix0 <= 9'b011111111;
				Matrix1 <= 9'b100000000;
				Matrix2 <= 9'b100000000;
				Matrix3 <= 9'b111111111;
				end
			6'd31:
				begin
				Matrix0 <= 9'b001111111;
				Matrix1 <= 9'b110000000;
				Matrix2 <= 9'b110000000;
				Matrix3 <= 9'b001111111;
				end
			6'd32:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b011000000;
				Matrix2 <= 9'b011000000;
				Matrix3 <= 9'b111111111;
				end
			6'd33:
				begin
				Matrix0 <= 9'b111101111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111101111;
				end
			6'd34:
				begin
				Matrix0 <= 9'b100001111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111111111;
				end
			6'd35:
				begin
				Matrix0 <= 9'b111000001;
				Matrix1 <= 9'b100110001;
				Matrix2 <= 9'b100011001;
				Matrix3 <= 9'b100000111;
				end
			6'd36:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b000000000;
				end
			
			default:
				begin
				Matrix0 <= 9'b000000011;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b101110001;
				Matrix3 <= 9'b000011111;
				end
		endcase
	end
	
	assign Hit = hit_out;
	assign Hit2 = hit2_out;

endmodule