data/full_repos/permissive/180199545/DigitalSSD/digital_ssd.v
1: b"%Error: data/full_repos/permissive/180199545/DigitalSSD/digital_ssd.v:39: Cannot find file containing module: 'display_matrix'\n display_matrix matrix(\n ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/180199545/DigitalSSD,data/full_repos/permissive/180199545/display_matrix\n             data/full_repos/permissive/180199545/DigitalSSD,data/full_repos/permissive/180199545/display_matrix.v\n             data/full_repos/permissive/180199545/DigitalSSD,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 [3: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)
			4'd0:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			4'd1:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b111111111;
				end
			4'd2:
				begin
				Matrix0 <= 9'b111110001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100011111;
				end
			4'd3:
				begin
				Matrix0 <= 9'b100010001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			4'd4:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			4'd5:
				begin
				Matrix0 <= 9'b100011111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110001;
				end
			4'd6:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111110000;
				end
			4'd7:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b000000001;
				Matrix3 <= 9'b111111111;
				end
			4'd8:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			4'd9:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111111;
				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 [3: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)
			4'd0:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100000001;
				Matrix2 <= 9'b100000001;
				Matrix3 <= 9'b111111111;
				end
			4'd1:
				begin
				Matrix0 <= 9'b000000000;
				Matrix1 <= 9'b000000000;
				Matrix2 <= 9'b000000000;
				Matrix3 <= 9'b111111111;
				end
			4'd2:
				begin
				Matrix0 <= 9'b111110001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b100011111;
				end
			4'd3:
				begin
				Matrix0 <= 9'b100010001;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			4'd4:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010000;
				Matrix2 <= 9'b000010000;
				Matrix3 <= 9'b111111111;
				end
			4'd5:
				begin
				Matrix0 <= 9'b100011111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111110001;
				end
			4'd6:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010000;
				Matrix2 <= 9'b100010000;
				Matrix3 <= 9'b111110000;
				end
			4'd7:
				begin
				Matrix0 <= 9'b000000001;
				Matrix1 <= 9'b000000001;
				Matrix2 <= 9'b000000001;
				Matrix3 <= 9'b111111111;
				end
			4'd8:
				begin
				Matrix0 <= 9'b111111111;
				Matrix1 <= 9'b100010001;
				Matrix2 <= 9'b100010001;
				Matrix3 <= 9'b111111111;
				end
			4'd9:
				begin
				Matrix0 <= 9'b000011111;
				Matrix1 <= 9'b000010001;
				Matrix2 <= 9'b000010001;
				Matrix3 <= 9'b111111111;
				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