data/full_repos/permissive/217756734/Verilog2001/Full AES Design And Data Communication/mix_columns.v
1: b'%Error: Cannot find file containing module: AES\n        ... Looked in:\n             data/full_repos/permissive/217756734/Verilog2001/Full/AES\n             data/full_repos/permissive/217756734/Verilog2001/Full/AES.v\n             data/full_repos/permissive/217756734/Verilog2001/Full/AES.sv\n             AES\n             AES.v\n             AES.sv\n             obj_dir/AES\n             obj_dir/AES.v\n             obj_dir/AES.sv\n%Error: Cannot find file containing module: Design\n%Error: Cannot find file containing module: And\n%Error: Cannot find file containing module: Data\n%Error: Cannot find file containing module: Communication,data/full_repos/permissive/217756734\n%Error: Cannot find file containing module: data/full_repos/permissive/217756734/Verilog2001/Full\n%Error: Cannot find file containing module: Communication/mix_columns.v\n%Error: Exiting due to 7 error(s)\n'
function [7:0] GF_mul;
	input [7:0] inputValue;
	input [7:0] MSDValue;
begin
	tempXORdValue = 11'b00000000000;
	
	if(MSDValue[0] == 1'b1) begin
		tempXORdValue = inputValue;
	end
	if (MSDValue[1] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 1);
	end
	if (MSDValue[2] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 2);
	end
	if (MSDValue[3] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 3);
	end



	if (tempXORdValue >= 11'd256) begin

		if (tempXORdValue >= 11'd1024) begin
			tempXORdValue = tempXORdValue ^ 11'd1132;
		end
		if (tempXORdValue >= 11'd512 & tempXORdValue <= 11'd1023) begin
			tempXORdValue = tempXORdValue ^ 11'd566;
		end
		if (tempXORdValue >= 11'd256 & tempXORdValue <= 11'd511) begin
			tempXORdValue = tempXORdValue ^ 11'd283;
		end
	end
	GF_mul = tempXORdValue[7:0];
end endfunction
function [7:0] GF_mul;

	input [7:0] inputValue;
	input [7:0] MSDValue;
begin
	tempXORdValue = 11'b00000000000;
	
	if(MSDValue[0] == 1'b1) begin
		tempXORdValue = inputValue;
	end
	if (MSDValue[1] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 1);
	end
	if (MSDValue[2] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 2);
	end
	if (MSDValue[3] == 1'b1) begin
		tempXORdValue = tempXORdValue ^ (inputValue << 3);
	end



	if (tempXORdValue >= 11'd256) begin

		if (tempXORdValue >= 11'd1024) begin
			tempXORdValue = tempXORdValue ^ 11'd1132;
		end
		if (tempXORdValue >= 11'd512 & tempXORdValue <= 11'd1023) begin
			tempXORdValue = tempXORdValue ^ 11'd566;
		end
		if (tempXORdValue >= 11'd256 & tempXORdValue <= 11'd511) begin
			tempXORdValue = tempXORdValue ^ 11'd283;
		end
	end
	GF_mul = tempXORdValue[7:0];
end endfunction