data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v
1: b"%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:101: Found definition of 'state' as a CELL but expected a variable\n        active = pc != 0 || state != STATE_FETCH;\n                            ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:101: Can't find definition of variable: 'STATE_FETCH'\n        active = pc != 0 || state != STATE_FETCH;\n                                     ^~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:104: Found definition of 'state' as a CELL but expected a variable\n        effective_ir = (state == STATE_EXECUTE && !waitrequest_prev) \n                        ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:104: Can't find definition of variable: 'STATE_EXECUTE'\n        effective_ir = (state == STATE_EXECUTE && !waitrequest_prev) \n                                 ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:107: Can't find definition of variable: 'OPCODE_RTYPE'\n        if(opcode == OPCODE_RTYPE) begin \n                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:108: Can't find definition of variable: 'FUNCT_SLL'\n            immediate_shift = rtype_fncode == FUNCT_SLL || \n                                              ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:109: Can't find definition of variable: 'FUNCT_SRL'\n                                                                   : ... Suggested alternative: 'FUNCT_SLL'\n                              rtype_fncode == FUNCT_SRL || \n                                              ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:110: Can't find definition of variable: 'FUNCT_SRA'\n                                                                   : ... Suggested alternative: 'FUNCT_SRL'\n                              rtype_fncode == FUNCT_SRA;\n                                              ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:112: Can't find definition of variable: 'RTYPE'\n            instr_type = RTYPE;\n                         ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:119: Can't find definition of variable: 'FUNCT_MFH'\n                                                                   : ... Suggested alternative: 'FUNCT_SLL'\n                FUNCT_MFH : begin\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:121: Found definition of 'state' as a CELL but expected a variable\n                    reg_file_write = state == STATE_EXECUTE;\n                                     ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:123: Can't find definition of variable: 'FUNCT_MFL'\n                                                                   : ... Suggested alternative: 'FUNCT_MFH'\n                FUNCT_MFL : begin\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:125: Found definition of 'state' as a CELL but expected a variable\n                    reg_file_write = state == STATE_EXECUTE;\n                                     ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:127: Can't find definition of variable: 'FUNCT_MULT'\n                                                                   : ... Suggested alternative: 'FUNCT_MFL'\n                FUNCT_MULT : begin\n                ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:130: Can't find definition of variable: 'FUNCT_MULTU'\n                                                                   : ... Suggested alternative: 'FUNCT_MULT'\n                FUNCT_MULTU : begin\n                ^~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:133: Can't find definition of variable: 'FUNCT_DIV'\n                                                                   : ... Suggested alternative: 'FUNCT_MFH'\n                FUNCT_DIV : begin\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:136: Can't find definition of variable: 'FUNCT_DIVU'\n                                                                   : ... Suggested alternative: 'FUNCT_DIV'\n                FUNCT_DIVU : begin\n                ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:141: Found definition of 'state' as a CELL but expected a variable\n                    reg_file_write = state == STATE_EXECUTE;\n                                     ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:145: Can't find definition of variable: 'OPCODE_J'\n        else if(opcode == OPCODE_J || opcode == OPCODE_JAL) begin\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:145: Can't find definition of variable: 'OPCODE_JAL'\n                                                                   : ... Suggested alternative: 'OPCODE_J'\n        else if(opcode == OPCODE_J || opcode == OPCODE_JAL) begin\n                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:146: Can't find definition of variable: 'JTYPE'\n                                                                   : ... Suggested alternative: 'RTYPE'\n            instr_type = JTYPE;\n                         ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:149: Can't find definition of variable: 'ITYPE'\n                                                                   : ... Suggested alternative: 'JTYPE'\n            instr_type = ITYPE;\n                         ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:162: Found definition of 'state' as a CELL but expected a variable\n        case(state) \n             ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:173: Can't find definition of variable: 'OPCODE_SW'\n                                                                   : ... Suggested alternative: 'OPCODE_J'\n                if(opcode == OPCODE_SW) begin\n                             ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:178: Can't find definition of variable: 'OPCODE_SB'\n                                                                   : ... Suggested alternative: 'OPCODE_SW'\n                else if(opcode == OPCODE_SB || opcode == OPCODE_SH) begin\n                                  ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:178: Can't find definition of variable: 'OPCODE_SH'\n                                                                   : ... Suggested alternative: 'OPCODE_SB'\n                else if(opcode == OPCODE_SB || opcode == OPCODE_SH) begin\n                                                         ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:183: Can't find definition of variable: 'OPCODE_BEQ'\n                                                                   : ... Suggested alternative: 'OPCODE_J'\n                else if(opcode == OPCODE_BEQ || opcode == OPCODE_BGTZ || opcode == OPCODE_BLEZ || opcode == OPCODE_BNE) begin\n                                  ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:183: Can't find definition of variable: 'OPCODE_BGTZ'\n                                                                   : ... Suggested alternative: 'OPCODE_BEQ'\n                else if(opcode == OPCODE_BEQ || opcode == OPCODE_BGTZ || opcode == OPCODE_BLEZ || opcode == OPCODE_BNE) begin\n                                                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:183: Can't find definition of variable: 'OPCODE_BLEZ'\n                                                                   : ... Suggested alternative: 'OPCODE_BEQ'\n                else if(opcode == OPCODE_BEQ || opcode == OPCODE_BGTZ || opcode == OPCODE_BLEZ || opcode == OPCODE_BNE) begin\n                                                                                   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:183: Can't find definition of variable: 'OPCODE_BNE'\n                                                                   : ... Suggested alternative: 'OPCODE_BEQ'\n                else if(opcode == OPCODE_BEQ || opcode == OPCODE_BGTZ || opcode == OPCODE_BLEZ || opcode == OPCODE_BNE) begin\n                                                                                                            ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:188: Can't find definition of variable: 'OPCODE_REGIMM'\n                                                                   : ... Suggested alternative: 'OPCODE_BEQ'\n                else if(opcode == OPCODE_REGIMM) begin\n                                  ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:198: Can't find definition of variable: 'OPCODE_LW'\n                                                                   : ... Suggested alternative: 'OPCODE_SW'\n                else if(opcode == OPCODE_LW || opcode == OPCODE_LBU || opcode == OPCODE_LB || \n                                  ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:198: Can't find definition of variable: 'OPCODE_LBU'\n                                                                   : ... Suggested alternative: 'OPCODE_LW'\n                else if(opcode == OPCODE_LW || opcode == OPCODE_LBU || opcode == OPCODE_LB || \n                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:198: Can't find definition of variable: 'OPCODE_LB'\n                                                                   : ... Suggested alternative: 'OPCODE_LBU'\n                else if(opcode == OPCODE_LW || opcode == OPCODE_LBU || opcode == OPCODE_LB || \n                                                                                 ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:199: Can't find definition of variable: 'OPCODE_LHU'\n                                                                   : ... Suggested alternative: 'OPCODE_LBU'\n                        opcode == OPCODE_LHU || opcode == OPCODE_LH || \n                                  ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:199: Can't find definition of variable: 'OPCODE_LH'\n                                                                   : ... Suggested alternative: 'OPCODE_LB'\n                        opcode == OPCODE_LHU || opcode == OPCODE_LH || \n                                                          ^~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:200: Can't find definition of variable: 'OPCODE_LWL'\n                                                                   : ... Suggested alternative: 'OPCODE_LW'\n                        opcode == OPCODE_LWL || opcode == OPCODE_LWR) begin      \n                                  ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:200: Can't find definition of variable: 'OPCODE_LWR'\n                                                                   : ... Suggested alternative: 'OPCODE_LW'\n                        opcode == OPCODE_LWL || opcode == OPCODE_LWR) begin      \n                                                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:207: Can't find definition of variable: 'OPCODE_LUI'\n                                                                   : ... Suggested alternative: 'OPCODE_LB'\n                else if(opcode == OPCODE_LUI) begin\n                                  ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:226: Can't find definition of variable: 'FUNCT_JALR'\n                                                                   : ... Suggested alternative: 'FUNCT_MFL'\n                    else if(rtype_fncode == FUNCT_JALR) begin\n                                            ^~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:254: Can't find definition of variable: 'STATE_MEMORY'\n            STATE_MEMORY : begin\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:284: Found definition of 'state' as a CELL but expected a variable\n            state <= STATE_FETCH;\n            ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:286: Can't find definition of variable: 'BRANCH_NONE'\n            branch_delayed <= BRANCH_NONE;\n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:286: Found definition of 'branch_delayed' as a CELL but expected a variable\n            branch_delayed <= BRANCH_NONE;\n            ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:291: Found definition of 'state' as a CELL but expected a variable\n            case(state)  \n                 ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:299: Found definition of 'state' as a CELL but expected a variable\n                        state <= STATE_EXECUTE;\n                        ^~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:316: Can't find definition of variable: 'FUNCT_JR'\n                                                                   : ... Suggested alternative: 'FUNCT_JALR'\n                            else if((rtype_fncode == FUNCT_JR || rtype_fncode == FUNCT_JALR) && branch_delayed == BRANCH_NONE) begin\n                                                     ^~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:316: Found definition of 'branch_delayed' as a CELL but expected a variable\n                            else if((rtype_fncode == FUNCT_JR || rtype_fncode == FUNCT_JALR) && branch_delayed == BRANCH_NONE) begin\n                                                                                                ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:318: Can't find definition of variable: 'BRANCH_DELAYED'\n                                branch_delayed <= BRANCH_DELAYED;\n                                                  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/429782749/rtl/mips_cpu_bus.v:318: Found definition of 'branch_delayed' as a CELL but expected a variable\n                                branch_delayed <= BRANCH_DELAYED;\n                                ^~~~~~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n"
module toggle_endianness(
    input logic[31:0] a,
    output logic[31:0] r
);
    assign r = {a[7:0], a[15:8], a[23:16], a[31:24]};
 
endmodule
module toggle_endianness(
    input logic[31:0] a,
    output logic[31:0] r
);

    assign r = {a[7:0], a[15:8], a[23:16], a[31:24]};
 
endmodule