data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v
1: b"%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:10: Cannot find file containing module: 'mips_registers'\n mips_registers Reg(A, B, result, instruction[25:21], instruction[20:16], instruction[15:11], 1'b1, clk );  \n ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files,data/full_repos/permissive/159823067/mips_registers\n             data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files,data/full_repos/permissive/159823067/mips_registers.v\n             data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files,data/full_repos/permissive/159823067/mips_registers.sv\n             mips_registers\n             mips_registers.v\n             mips_registers.sv\n             obj_dir/mips_registers\n             obj_dir/mips_registers.v\n             obj_dir/mips_registers.sv\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:12: Cannot find file containing module: 'control_unit'\n control_unit CU(ALUselector, instruction[5:0]);   \n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:14: Cannot find file containing module: 'shamt32bit'\n shamt32bit Sham(shamtResult, instruction[10:6]);  \n ^~~~~~~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:18: Cannot find file containing module: 'allmuxer2to1'\n allmuxer2to1 M0(shiftResA, B, A, ShamtSelector);     \n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:19: Cannot find file containing module: 'allmuxer2to1'\n allmuxer2to1 M2(shiftResB, shamtResult, B, ShamtSelector);  \n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:21: Cannot find file containing module: 'alu32'\n alu32 ALU32(ALUselector[2], ALUselector[1], ALUselector[0], shiftResA, shiftResB, tempResult, zero, ovf);  \n ^~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:23: Cannot find file containing module: 'buffer32bit'\n buffer32bit S(sltuResult, tempResult[31]);  \n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/159823067/omercevik_hw3_32bitMipsRType_verilog_files/mips32.v:25: Cannot find file containing module: 'allmuxer2to1'\n allmuxer2to1 M1(result, sltuResult, tempResult, instruction[3]);  \n ^~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module mips32(instruction, result, clk);

	input [31:0] instruction;
	input clk;
	output [31:0] result;
	wire [2:0] ALUselector;
	wire [31:0] A, B, sltuResult, tempResult, shamtResult, shiftResA, shiftResB;
	wire ShamtSelector, ShamtXor, zero, ovf;
		
	mips_registers Reg(A, B, result, instruction[25:21], instruction[20:16], instruction[15:11], 1'b1, clk );
	
	control_unit CU(ALUselector, instruction[5:0]);
	
	shamt32bit Sham(shamtResult, instruction[10:6]);
	
	xor ShamtX(ShamtXor, ALUselector[0], ALUselector[1]);
	and ShamtAnd(ShamtSelector, ShamtXor, ALUselector[2]);
	allmuxer2to1 M0(shiftResA, B, A, ShamtSelector);
	allmuxer2to1 M2(shiftResB, shamtResult, B, ShamtSelector);
	
	alu32 ALU32(ALUselector[2], ALUselector[1], ALUselector[0], shiftResA, shiftResB, tempResult, zero, ovf);
	
	buffer32bit S(sltuResult, tempResult[31]);
	
	allmuxer2to1 M1(result, sltuResult, tempResult, instruction[3]);
	
endmodule
module mips32(instruction, result, clk);


	input [31:0] instruction;
	input clk;
	output [31:0] result;
	wire [2:0] ALUselector;
	wire [31:0] A, B, sltuResult, tempResult, shamtResult, shiftResA, shiftResB;
	wire ShamtSelector, ShamtXor, zero, ovf;
		
	mips_registers Reg(A, B, result, instruction[25:21], instruction[20:16], instruction[15:11], 1'b1, clk );
	
	control_unit CU(ALUselector, instruction[5:0]);
	
	shamt32bit Sham(shamtResult, instruction[10:6]);
	
	xor ShamtX(ShamtXor, ALUselector[0], ALUselector[1]);
	and ShamtAnd(ShamtSelector, ShamtXor, ALUselector[2]);
	allmuxer2to1 M0(shiftResA, B, A, ShamtSelector);
	allmuxer2to1 M2(shiftResB, shamtResult, B, ShamtSelector);
	
	alu32 ALU32(ALUselector[2], ALUselector[1], ALUselector[0], shiftResA, shiftResB, tempResult, zero, ovf);
	
	buffer32bit S(sltuResult, tempResult[31]);
	
	allmuxer2to1 M1(result, sltuResult, tempResult, instruction[3]);
	
endmodule