data/full_repos/permissive/451853158/MIPS_Pipeline_Processor/mips_pipeline_processor.v
1: b"%Error: data/full_repos/permissive/451853158/MIPS_Pipeline_Processor/mips_pipeline_processor.v:16: Cannot find file containing module: 'datapath'\ndatapath dp (.clk(clk), .reset(reset),\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/451853158/MIPS_Pipeline_Processor,data/full_repos/permissive/451853158/datapath\n             data/full_repos/permissive/451853158/MIPS_Pipeline_Processor,data/full_repos/permissive/451853158/datapath.v\n             data/full_repos/permissive/451853158/MIPS_Pipeline_Processor,data/full_repos/permissive/451853158/datapath.sv\n             datapath\n             datapath.v\n             datapath.sv\n             obj_dir/datapath\n             obj_dir/datapath.v\n             obj_dir/datapath.sv\n%Error: data/full_repos/permissive/451853158/MIPS_Pipeline_Processor/mips_pipeline_processor.v:31: Cannot find file containing module: 'controlUnit'\ncontrolUnit ctrlU (.OPCode(OPCode), .Funct(Funct),\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/451853158/MIPS_Pipeline_Processor/mips_pipeline_processor.v:37: Cannot find file containing module: 'hazard_unit'\nhazard_unit hu1 (.Rs_EX_HU(Rs_EX_HU), .Rt_EX_HU(Rt_EX_HU), .Rs_ID_HU(Rs_ID_HU), .Rt_ID_HU(Rt_ID_HU),\n^~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module mips_pipeline_processor (
  input clk, reset
);

wire [5:0] OPCode, Funct;
wire       MemtoReg_ID, MemWrite_ID, ALUSrc_ID, RegDst_ID, RegWrite_ID, Branch_ID;
wire [2:0] ALUControl_ID;


wire [4:0] Rs_EX_HU, Rt_EX_HU, Rs_ID_HU, Rt_ID_HU, WriteReg_MEM_HU, WriteReg_WB_HU, WriteReg_EX_HU;
wire       RegWrite_MEM_HU, RegWrite_WB_HU, MemtoReg_EX_HU, RegWrite_EX_HU, MemtoReg_MEM_HU, Branch_ID_HU;
wire [1:0] fwdA_EX_HU, fwdB_EX_HU;
wire       Stall_IF_HU, Stall_ID_HU, Flush_EX_HU, SrcAfwd_ID, SrcBfwd_ID;


datapath dp (.clk(clk), .reset(reset),
             .MemtoReg_ID(MemtoReg_ID), .MemWrite_ID(MemWrite_ID),
             .ALUSrc_ID(ALUSrc_ID), .RegDst_ID(RegDst_ID), .RegWrite_ID(RegWrite_ID),
             .Branch_ID(Branch_ID), .ALUControl_ID(ALUControl_ID), 
             .fwdA_EX_HU(fwdA_EX_HU), .fwdB_EX_HU(fwdB_EX_HU),
             .Stall_ID_HU(Stall_ID_HU), .Stall_IF_HU(Stall_IF_HU), .Flush_EX_HU(Flush_EX_HU),
             .SrcAfwd_ID(SrcAfwd_ID), .SrcBfwd_ID(SrcBfwd_ID),
             .Rs_EX_HU(Rs_EX_HU), .Rt_EX_HU(Rt_EX_HU), .Rs_ID_HU(Rs_ID_HU), .Rt_ID_HU(Rt_ID_HU),
             .WriteReg_MEM_HU(WriteReg_MEM_HU), .WriteReg_WB_HU(WriteReg_WB_HU),
             .WriteReg_EX_HU(WriteReg_EX_HU), .RegWrite_MEM_HU(RegWrite_MEM_HU),
             .RegWrite_WB_HU(RegWrite_WB_HU), .MemtoReg_EX_HU(MemtoReg_EX_HU),
             .Branch_ID_HU(Branch_ID_HU), .RegWrite_EX_HU(RegWrite_EX_HU),
             .MemtoReg_MEM_HU(MemtoReg_MEM_HU), .OPCode(OPCode), .Funct(Funct));


controlUnit ctrlU (.OPCode(OPCode), .Funct(Funct),
                   .MemtoReg(MemtoReg_ID), .MemWrite(MemWrite_ID), .Branch(Branch_ID),
                   .ALUSrc(ALUSrc_ID), .RegDst(RegDst_ID), .RegWrite(RegWrite_ID),
                   .ALUControl(ALUControl_ID));


hazard_unit hu1 (.Rs_EX_HU(Rs_EX_HU), .Rt_EX_HU(Rt_EX_HU), .Rs_ID_HU(Rs_ID_HU), .Rt_ID_HU(Rt_ID_HU),
                 .WriteReg_MEM_HU(WriteReg_MEM_HU), .WriteReg_WB_HU(WriteReg_WB_HU),
                 .WriteReg_EX_HU(WriteReg_EX_HU), .RegWrite_MEM_HU(RegWrite_MEM_HU),
                 .RegWrite_WB_HU(RegWrite_WB_HU), .MemtoReg_EX_HU(MemtoReg_EX_HU),
                 .RegWrite_EX_HU(RegWrite_EX_HU), .MemtoReg_MEM_HU(MemtoReg_MEM_HU),
                 .Branch_ID_HU(Branch_ID_HU), .fwdA_EX_HU(fwdA_EX_HU), .fwdB_EX_HU(fwdB_EX_HU),
                 .Stall_IF(Stall_IF_HU), .Stall_ID(Stall_ID_HU), .Flush_EX(Flush_EX_HU),
                 .SrcAfwd_ID(SrcAfwd_ID), .SrcBfwd_ID(SrcBfwd_ID));

endmodule
module mips_pipeline_processor (
  input clk, reset
);


wire [5:0] OPCode, Funct;
wire       MemtoReg_ID, MemWrite_ID, ALUSrc_ID, RegDst_ID, RegWrite_ID, Branch_ID;
wire [2:0] ALUControl_ID;


wire [4:0] Rs_EX_HU, Rt_EX_HU, Rs_ID_HU, Rt_ID_HU, WriteReg_MEM_HU, WriteReg_WB_HU, WriteReg_EX_HU;
wire       RegWrite_MEM_HU, RegWrite_WB_HU, MemtoReg_EX_HU, RegWrite_EX_HU, MemtoReg_MEM_HU, Branch_ID_HU;
wire [1:0] fwdA_EX_HU, fwdB_EX_HU;
wire       Stall_IF_HU, Stall_ID_HU, Flush_EX_HU, SrcAfwd_ID, SrcBfwd_ID;


datapath dp (.clk(clk), .reset(reset),
             .MemtoReg_ID(MemtoReg_ID), .MemWrite_ID(MemWrite_ID),
             .ALUSrc_ID(ALUSrc_ID), .RegDst_ID(RegDst_ID), .RegWrite_ID(RegWrite_ID),
             .Branch_ID(Branch_ID), .ALUControl_ID(ALUControl_ID), 
             .fwdA_EX_HU(fwdA_EX_HU), .fwdB_EX_HU(fwdB_EX_HU),
             .Stall_ID_HU(Stall_ID_HU), .Stall_IF_HU(Stall_IF_HU), .Flush_EX_HU(Flush_EX_HU),
             .SrcAfwd_ID(SrcAfwd_ID), .SrcBfwd_ID(SrcBfwd_ID),
             .Rs_EX_HU(Rs_EX_HU), .Rt_EX_HU(Rt_EX_HU), .Rs_ID_HU(Rs_ID_HU), .Rt_ID_HU(Rt_ID_HU),
             .WriteReg_MEM_HU(WriteReg_MEM_HU), .WriteReg_WB_HU(WriteReg_WB_HU),
             .WriteReg_EX_HU(WriteReg_EX_HU), .RegWrite_MEM_HU(RegWrite_MEM_HU),
             .RegWrite_WB_HU(RegWrite_WB_HU), .MemtoReg_EX_HU(MemtoReg_EX_HU),
             .Branch_ID_HU(Branch_ID_HU), .RegWrite_EX_HU(RegWrite_EX_HU),
             .MemtoReg_MEM_HU(MemtoReg_MEM_HU), .OPCode(OPCode), .Funct(Funct));


controlUnit ctrlU (.OPCode(OPCode), .Funct(Funct),
                   .MemtoReg(MemtoReg_ID), .MemWrite(MemWrite_ID), .Branch(Branch_ID),
                   .ALUSrc(ALUSrc_ID), .RegDst(RegDst_ID), .RegWrite(RegWrite_ID),
                   .ALUControl(ALUControl_ID));


hazard_unit hu1 (.Rs_EX_HU(Rs_EX_HU), .Rt_EX_HU(Rt_EX_HU), .Rs_ID_HU(Rs_ID_HU), .Rt_ID_HU(Rt_ID_HU),
                 .WriteReg_MEM_HU(WriteReg_MEM_HU), .WriteReg_WB_HU(WriteReg_WB_HU),
                 .WriteReg_EX_HU(WriteReg_EX_HU), .RegWrite_MEM_HU(RegWrite_MEM_HU),
                 .RegWrite_WB_HU(RegWrite_WB_HU), .MemtoReg_EX_HU(MemtoReg_EX_HU),
                 .RegWrite_EX_HU(RegWrite_EX_HU), .MemtoReg_MEM_HU(MemtoReg_MEM_HU),
                 .Branch_ID_HU(Branch_ID_HU), .fwdA_EX_HU(fwdA_EX_HU), .fwdB_EX_HU(fwdB_EX_HU),
                 .Stall_IF(Stall_IF_HU), .Stall_ID(Stall_ID_HU), .Flush_EX(Flush_EX_HU),
                 .SrcAfwd_ID(SrcAfwd_ID), .SrcBfwd_ID(SrcBfwd_ID));

endmodule