data/full_repos/permissive/458134463/Modules/MiniMIPS.v
1: b"%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:31: Cannot find file containing module: 'signExtend_6to32'\nsignExtend_6to32 extend(instruction[5:0], extendedValue);\n^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/458134463/Modules,data/full_repos/permissive/458134463/signExtend_6to32\n             data/full_repos/permissive/458134463/Modules,data/full_repos/permissive/458134463/signExtend_6to32.v\n             data/full_repos/permissive/458134463/Modules,data/full_repos/permissive/458134463/signExtend_6to32.sv\n             signExtend_6to32\n             signExtend_6to32.v\n             signExtend_6to32.sv\n             obj_dir/signExtend_6to32\n             obj_dir/signExtend_6to32.v\n             obj_dir/signExtend_6to32.sv\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:34: Cannot find file containing module: 'nextPC'\nnextPC npc(Branch, extendedValue, NextPC, clock);\n^~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:37: Cannot find file containing module: 'InstructionMemory'\nInstructionMemory im(NextPC, instruction);\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:40: Cannot find file containing module: 'control'\ncontrol cm(instruction[15:12], RegDst, ALUSrc, MemtoReg, RegWrite, MemRead, MemWrite, Branch, ALUOp);\n^~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:44: Cannot find file containing module: 'mux2x1_3bit'\nmux2x1_3bit muxReg(instruction[8:6], instruction[5:3], RegDst, write_reg);\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:47: Cannot find file containing module: 'register'\nregister rm(instruction[11:9], instruction[8:6], write_reg, write_data, RegWrite, read_data1, read_data2, clock);\n^~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:50: Cannot find file containing module: 'ALUcontrol'\nALUcontrol aluCtrl(ALUOp, instruction[2:0], ALUctr);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:55: Cannot find file containing module: 'mux2x1_32bit'\nmux2x1_32bit muxALU(read_data2, extendedValue, ALUSrc, value2);\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:58: Cannot find file containing module: 'alu_32bit'\nalu_32bit alu32(read_data1, value2, ALUctr, result);\n^~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:61: Cannot find file containing module: 'DataMemory'\nDataMemory data(MemWrite, MemRead, result, read_data2, read_data, clock);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/458134463/Modules/MiniMIPS.v:65: Cannot find file containing module: 'mux2x1_32bit'\nmux2x1_32bit muxData(result, read_data, MemtoReg, write_data);\n^~~~~~~~~~~~\n%Error: Exiting due to 11 error(s)\n"
module MiniMIPS(clock);

input clock;




wire [31:0] NextPC;
wire [31:0] extendedValue;

wire [15:0] instruction;

wire [2:0]  write_reg;
wire [31:0] write_data;
wire [31:0] read_data1;
wire [31:0] read_data2;

wire [2:0] ALUOp;
wire RegDst, ALUSrc, MemtoReg, RegWrite, MemRead, MemWrite, Branch;

wire [2:0] ALUctr;

wire [31:0] value2;
wire [31:0] result;

wire [31:0] read_data;




signExtend_6to32 extend(instruction[5:0], extendedValue);


nextPC npc(Branch, extendedValue, NextPC, clock);


InstructionMemory im(NextPC, instruction);


control cm(instruction[15:12], RegDst, ALUSrc, MemtoReg, RegWrite, MemRead, MemWrite, Branch, ALUOp);



mux2x1_3bit muxReg(instruction[8:6], instruction[5:3], RegDst, write_reg);


register rm(instruction[11:9], instruction[8:6], write_reg, write_data, RegWrite, read_data1, read_data2, clock);


ALUcontrol aluCtrl(ALUOp, instruction[2:0], ALUctr);




mux2x1_32bit muxALU(read_data2, extendedValue, ALUSrc, value2);
 

alu_32bit alu32(read_data1, value2, ALUctr, result);


DataMemory data(MemWrite, MemRead, result, read_data2, read_data, clock);



mux2x1_32bit muxData(result, read_data, MemtoReg, write_data);

endmodule
module MiniMIPS(clock);


input clock;




wire [31:0] NextPC;
wire [31:0] extendedValue;

wire [15:0] instruction;

wire [2:0]  write_reg;
wire [31:0] write_data;
wire [31:0] read_data1;
wire [31:0] read_data2;

wire [2:0] ALUOp;
wire RegDst, ALUSrc, MemtoReg, RegWrite, MemRead, MemWrite, Branch;

wire [2:0] ALUctr;

wire [31:0] value2;
wire [31:0] result;

wire [31:0] read_data;




signExtend_6to32 extend(instruction[5:0], extendedValue);


nextPC npc(Branch, extendedValue, NextPC, clock);


InstructionMemory im(NextPC, instruction);


control cm(instruction[15:12], RegDst, ALUSrc, MemtoReg, RegWrite, MemRead, MemWrite, Branch, ALUOp);



mux2x1_3bit muxReg(instruction[8:6], instruction[5:3], RegDst, write_reg);


register rm(instruction[11:9], instruction[8:6], write_reg, write_data, RegWrite, read_data1, read_data2, clock);


ALUcontrol aluCtrl(ALUOp, instruction[2:0], ALUctr);




mux2x1_32bit muxALU(read_data2, extendedValue, ALUSrc, value2);
 

alu_32bit alu32(read_data1, value2, ALUctr, result);


DataMemory data(MemWrite, MemRead, result, read_data2, read_data, clock);



mux2x1_32bit muxData(result, read_data, MemtoReg, write_data);

endmodule