data/full_repos/permissive/193753641/SubKey.v
1: b"%Error: data/full_repos/permissive/193753641/SubKey.v:33: Cannot find file containing module: 'SBox4'\n SBox4 s1(temp0,temp);\n ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/193753641,data/full_repos/permissive/193753641/SBox4\n             data/full_repos/permissive/193753641,data/full_repos/permissive/193753641/SBox4.v\n             data/full_repos/permissive/193753641,data/full_repos/permissive/193753641/SBox4.sv\n             SBox4\n             SBox4.v\n             SBox4.sv\n             obj_dir/SBox4\n             obj_dir/SBox4.v\n             obj_dir/SBox4.sv\n%Error: Exiting due to 1 error(s)\n"
module SubKey(keyin,keyout,rcon);

	input [127:0] keyin;
	input [7:0] rcon;
	output [127:0] keyout;

	wire [31:0] temp0;

	wire [31:0] temp,temp2;

	assign temp0[31:0]={keyin[23:16],keyin[15:8],keyin[7:0],keyin[31:24]};

	SBox4 s1(temp0,temp);
	assign temp2=temp^keyin[127:96];
	assign keyout[127:120]=temp2[31:24]^rcon;
	assign keyout[119:96]=temp2[23:0];
	assign keyout[95:64]=keyout[127:96]^keyin[95:64];
	assign keyout[63:32]=keyout[95:64]^keyin[63:32];
	assign keyout[31:0]=keyout[63:32]^keyin[31:0];

endmodule
module SubKey(keyin,keyout,rcon);


	input [127:0] keyin;
	input [7:0] rcon;
	output [127:0] keyout;

	wire [31:0] temp0;

	wire [31:0] temp,temp2;

	assign temp0[31:0]={keyin[23:16],keyin[15:8],keyin[7:0],keyin[31:24]};

	SBox4 s1(temp0,temp);
	assign temp2=temp^keyin[127:96];
	assign keyout[127:120]=temp2[31:24]^rcon;
	assign keyout[119:96]=temp2[23:0];
	assign keyout[95:64]=keyout[127:96]^keyin[95:64];
	assign keyout[63:32]=keyout[95:64]^keyin[63:32];
	assign keyout[31:0]=keyout[63:32]^keyin[31:0];

endmodule