data/full_repos/permissive/169496369/MIPS_CP1_01.v
1: b"%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:42: Cannot find file containing module: 'pc_reg'\n    pc_reg pc1(clk, rst, jumpmux, pcout);\n    ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/169496369,data/full_repos/permissive/169496369/pc_reg\n             data/full_repos/permissive/169496369,data/full_repos/permissive/169496369/pc_reg.v\n             data/full_repos/permissive/169496369,data/full_repos/permissive/169496369/pc_reg.sv\n             pc_reg\n             pc_reg.v\n             pc_reg.sv\n             obj_dir/pc_reg\n             obj_dir/pc_reg.v\n             obj_dir/pc_reg.sv\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:44: Cannot find file containing module: 'instructionmem_8'\n    instructionmem_8 im1(1'b0, pcout[5:0], iout);\n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:46: Cannot find file containing module: 'control_logic'\n    control_logic cl1(iout[31:26], iout[25:6], iout[5:0], fpu_alu_out_en, regdst, jump, branch, memread, memtoreg, aluop, memwrite, alusrc, regwrite, \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:49: Cannot find file containing module: 'mux_5'\n    mux_5 mux5_1(iout[20:16], iout[15:11], regdst, imux);\n    ^~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:51: Cannot find file containing module: 'mux_5'\n    mux_5 mux5_2(iout[20:16], iout[10:6], fpu_regdst, imux_fp);\n    ^~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:53: Cannot find file containing module: 'regfile'\n    regfile regfile1(clk, regwrite, 1'b0, iout[25:21], iout[20:16], imux, regout1, regout2, datamux);\n    ^~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:55: Cannot find file containing module: 'mux_32'\n    mux_32 mux_32_fpu_regfile(datamux, fp_out, fpu_wr_en, fpu_regfile_wr);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:57: Cannot find file containing module: 'fpu_regfile'\n    fpu_regfile fpu_regfile1(clk, fpu_regwrite, 1'b0, iout[15:11], iout[20:16], imux_fp, fp_regout1, fp_regout2, fpu_regfile_wr);\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:59: Cannot find file containing module: 'fp_01'\n    fp_01 fpu1(clk, rst, fpu_op, fp_regout1, fp_regout2, fpu_alu_en, fp_out, fpu_alu_out_en);\n    ^~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:61: Cannot find file containing module: 'sign_ext'\n    sign_ext signext1(iout[15:0], sign_out);\n    ^~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:63: Cannot find file containing module: 'mux_32'\n    mux_32 mux32_1(regout2, sign_out, alusrc, alumux);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:65: Cannot find file containing module: 'alu_mips'\n    alu_mips alu_main(regout1, alumux, aluop, zero, alu_out);\n    ^~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:67: Cannot find file containing module: 'mux_32'\n    mux_32 mux_32_data(regout2, fp_regout2, fpu_re_en, datamem_wr);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:69: Cannot find file containing module: 'data_memory'\n    data_memory data_mem1(clk, memread, memwrite, alu_out[5:0], alu_out[5:0], datamem_wr, data_out);  \n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:71: Cannot find file containing module: 'mux_32'\n    mux_32 mux32_data(alu_out, data_out, memtoreg, datamux);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:73: Cannot find file containing module: 'alu_pc'\n    alu_pc alupc1(pcout, stop, pcnext);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:75: Cannot find file containing module: 'shiftleft2_26'\n    shiftleft2_26 shiftleft2_26_1(iout[25:0], pcnext[31:28], shiftjumpout);\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:77: Cannot find file containing module: 'shiftleft2_32'\n    shiftleft2_32 shiftleft2_32_1(sign_out, shiftbranchout);\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:79: Cannot find file containing module: 'adder_branch'\n    adder_branch adder_branch1(pcnext, shiftbranchout, branchadderout);\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:81: Cannot find file containing module: 'mux_32'\n    mux_32 mux_32_branch(pcnext, branchadderout, branchselect, branchmux);\n    ^~~~~~\n%Error: data/full_repos/permissive/169496369/MIPS_CP1_01.v:83: Cannot find file containing module: 'mux_32'\n    mux_32 mux_32_jump(branchmux, shiftjumpout, jump, jumpmux);\n    ^~~~~~\n%Error: Exiting due to 21 error(s)\n"
module MIPS_CP1_01(clk, rst, y);
    input   clk, rst;
    output y;
    
    logic [31:0] pcout, iout, iin, alumux, datamux, branchmux, jumpmux, pcnext, regout1, regout2,
                 fp_regout1, fp_regout2, sign_out, alu_out, data_out, shiftbranchout, shiftjumpout,
                 branchadderout, fp_out, fpu_regfile_wr, datamem_wr;
    logic [4:0] imux;
    logic [4:0] imux_fp;
    
    logic regdst, memread, jump, branch, instrwrite, memtoreg, memwrite, alusrc, regwrite, zero;
    logic fpu_alu_out_en;
    logic fpu_regwrite, fpu_re_en, fpu_wr_en, fpu_op, fpu_regdst, fpu_alu_en;
    logic [2:0] aluop;
    logic branchselect;
    logic byte_en;
    logic stop;
    logic out_final;
    
    pc_reg pc1(clk, rst, jumpmux, pcout);

    instructionmem_8 im1(1'b0, pcout[5:0], iout);
    
    control_logic cl1(iout[31:26], iout[25:6], iout[5:0], fpu_alu_out_en, regdst, jump, branch, memread, memtoreg, aluop, memwrite, alusrc, regwrite, 
                                                                  fpu_regwrite, fpu_re_en, fpu_wr_en, fpu_op, fpu_regdst, fpu_alu_en, stop);
    
    mux_5 mux5_1(iout[20:16], iout[15:11], regdst, imux);
    
    mux_5 mux5_2(iout[20:16], iout[10:6], fpu_regdst, imux_fp);
    
    regfile regfile1(clk, regwrite, 1'b0, iout[25:21], iout[20:16], imux, regout1, regout2, datamux);
    
    mux_32 mux_32_fpu_regfile(datamux, fp_out, fpu_wr_en, fpu_regfile_wr);
    
    fpu_regfile fpu_regfile1(clk, fpu_regwrite, 1'b0, iout[15:11], iout[20:16], imux_fp, fp_regout1, fp_regout2, fpu_regfile_wr);
    
    fp_01 fpu1(clk, rst, fpu_op, fp_regout1, fp_regout2, fpu_alu_en, fp_out, fpu_alu_out_en);
    
    sign_ext signext1(iout[15:0], sign_out);
    
    mux_32 mux32_1(regout2, sign_out, alusrc, alumux);
    
    alu_mips alu_main(regout1, alumux, aluop, zero, alu_out);
    
    mux_32 mux_32_data(regout2, fp_regout2, fpu_re_en, datamem_wr);
    
    data_memory data_mem1(clk, memread, memwrite, alu_out[5:0], alu_out[5:0], datamem_wr, data_out);
    
    mux_32 mux32_data(alu_out, data_out, memtoreg, datamux);
    
    alu_pc alupc1(pcout, stop, pcnext);
    
    shiftleft2_26 shiftleft2_26_1(iout[25:0], pcnext[31:28], shiftjumpout);
    
    shiftleft2_32 shiftleft2_32_1(sign_out, shiftbranchout);
    
    adder_branch adder_branch1(pcnext, shiftbranchout, branchadderout);
    
    mux_32 mux_32_branch(pcnext, branchadderout, branchselect, branchmux);
    
    mux_32 mux_32_jump(branchmux, shiftjumpout, jump, jumpmux);
    
    and and_branch(branchselect, branch, zero);
    
    assign y = ^(data_out);

endmodule
module MIPS_CP1_01(clk, rst, y);

    input   clk, rst;
    output y;
    
    logic [31:0] pcout, iout, iin, alumux, datamux, branchmux, jumpmux, pcnext, regout1, regout2,
                 fp_regout1, fp_regout2, sign_out, alu_out, data_out, shiftbranchout, shiftjumpout,
                 branchadderout, fp_out, fpu_regfile_wr, datamem_wr;
    logic [4:0] imux;
    logic [4:0] imux_fp;
    
    logic regdst, memread, jump, branch, instrwrite, memtoreg, memwrite, alusrc, regwrite, zero;
    logic fpu_alu_out_en;
    logic fpu_regwrite, fpu_re_en, fpu_wr_en, fpu_op, fpu_regdst, fpu_alu_en;
    logic [2:0] aluop;
    logic branchselect;
    logic byte_en;
    logic stop;
    logic out_final;
    
    pc_reg pc1(clk, rst, jumpmux, pcout);

    instructionmem_8 im1(1'b0, pcout[5:0], iout);
    
    control_logic cl1(iout[31:26], iout[25:6], iout[5:0], fpu_alu_out_en, regdst, jump, branch, memread, memtoreg, aluop, memwrite, alusrc, regwrite, 
                                                                  fpu_regwrite, fpu_re_en, fpu_wr_en, fpu_op, fpu_regdst, fpu_alu_en, stop);
    
    mux_5 mux5_1(iout[20:16], iout[15:11], regdst, imux);
    
    mux_5 mux5_2(iout[20:16], iout[10:6], fpu_regdst, imux_fp);
    
    regfile regfile1(clk, regwrite, 1'b0, iout[25:21], iout[20:16], imux, regout1, regout2, datamux);
    
    mux_32 mux_32_fpu_regfile(datamux, fp_out, fpu_wr_en, fpu_regfile_wr);
    
    fpu_regfile fpu_regfile1(clk, fpu_regwrite, 1'b0, iout[15:11], iout[20:16], imux_fp, fp_regout1, fp_regout2, fpu_regfile_wr);
    
    fp_01 fpu1(clk, rst, fpu_op, fp_regout1, fp_regout2, fpu_alu_en, fp_out, fpu_alu_out_en);
    
    sign_ext signext1(iout[15:0], sign_out);
    
    mux_32 mux32_1(regout2, sign_out, alusrc, alumux);
    
    alu_mips alu_main(regout1, alumux, aluop, zero, alu_out);
    
    mux_32 mux_32_data(regout2, fp_regout2, fpu_re_en, datamem_wr);
    
    data_memory data_mem1(clk, memread, memwrite, alu_out[5:0], alu_out[5:0], datamem_wr, data_out);
    
    mux_32 mux32_data(alu_out, data_out, memtoreg, datamux);
    
    alu_pc alupc1(pcout, stop, pcnext);
    
    shiftleft2_26 shiftleft2_26_1(iout[25:0], pcnext[31:28], shiftjumpout);
    
    shiftleft2_32 shiftleft2_32_1(sign_out, shiftbranchout);
    
    adder_branch adder_branch1(pcnext, shiftbranchout, branchadderout);
    
    mux_32 mux_32_branch(pcnext, branchadderout, branchselect, branchmux);
    
    mux_32 mux_32_jump(branchmux, shiftjumpout, jump, jumpmux);
    
    and and_branch(branchselect, branch, zero);
    
    assign y = ^(data_out);

endmodule