data/full_repos/permissive/443556793/lab_4/rtl/aludec.v
1: b'%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:22: Cannot find include file: defines.vh\n`include "defines.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/443556793/lab_4/rtl,data/full_repos/permissive/443556793/defines.vh\n             data/full_repos/permissive/443556793/lab_4/rtl,data/full_repos/permissive/443556793/defines.vh.v\n             data/full_repos/permissive/443556793/lab_4/rtl,data/full_repos/permissive/443556793/defines.vh.sv\n             defines.vh\n             defines.vh.v\n             defines.vh.sv\n             obj_dir/defines.vh\n             obj_dir/defines.vh.v\n             obj_dir/defines.vh.sv\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:31: Define or directive not defined: \'`EXE_NOP\'\n        `EXE_NOP:\n        ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:31: syntax error, unexpected \':\', expecting endcase\n        `EXE_NOP:\n                ^\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:33: Define or directive not defined: \'`EXE_ADD\'\n            `EXE_ADD:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:34: Define or directive not defined: \'`EXE_ADD_OP\'\n                alucontrol <= `EXE_ADD_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:35: Define or directive not defined: \'`EXE_ADDU\'\n            `EXE_ADDU:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:36: Define or directive not defined: \'`EXE_ADDU_OP\'\n                alucontrol <= `EXE_ADDU_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:37: Define or directive not defined: \'`EXE_SUB\'\n            `EXE_SUB:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:38: Define or directive not defined: \'`EXE_SUB_OP\'\n                alucontrol <= `EXE_SUB_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:39: Define or directive not defined: \'`EXE_SUBU\'\n            `EXE_SUBU:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:40: Define or directive not defined: \'`EXE_SUBU_OP\'\n                alucontrol <= `EXE_SUBU_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:41: Define or directive not defined: \'`EXE_AND\'\n            `EXE_AND:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:42: Define or directive not defined: \'`EXE_AND_OP\'\n                alucontrol <= `EXE_AND_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:43: Define or directive not defined: \'`EXE_OR\'\n            `EXE_OR:\n            ^~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:44: Define or directive not defined: \'`EXE_OR_OP\'\n                alucontrol <= `EXE_OR_OP;  \n                              ^~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:45: Define or directive not defined: \'`EXE_XOR\'\n            `EXE_XOR:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:46: Define or directive not defined: \'`EXE_XOR_OP\'\n                alucontrol <= `EXE_XOR_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:47: Define or directive not defined: \'`EXE_NOR\'\n            `EXE_NOR:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:48: Define or directive not defined: \'`EXE_NOR_OP\'\n                alucontrol <= `EXE_NOR_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:49: Define or directive not defined: \'`EXE_SLT\'\n            `EXE_SLT:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:50: Define or directive not defined: \'`EXE_SLT_OP\'\n                alucontrol <= `EXE_SLT_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:51: Define or directive not defined: \'`EXE_SLTU\'\n            `EXE_SLTU:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:52: Define or directive not defined: \'`EXE_SLTU_OP\'\n                alucontrol <= `EXE_SLTU_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:53: Define or directive not defined: \'`EXE_SLL\'\n            `EXE_SLL:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:54: Define or directive not defined: \'`EXE_SLL_OP\'\n                alucontrol <= `EXE_SLL_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:55: Define or directive not defined: \'`EXE_SRL\'\n            `EXE_SRL:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:56: Define or directive not defined: \'`EXE_SRL_OP\'\n                alucontrol <= `EXE_SRL_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:57: Define or directive not defined: \'`EXE_SRA\'\n            `EXE_SRA:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:58: Define or directive not defined: \'`EXE_SRA_OP\'\n                alucontrol <= `EXE_SRA_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:59: Define or directive not defined: \'`EXE_SLLV\'\n            `EXE_SLLV:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:60: Define or directive not defined: \'`EXE_SLLV_OP\'\n                alucontrol <= `EXE_SLLV_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:61: Define or directive not defined: \'`EXE_SRLV\'\n            `EXE_SRLV:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:62: Define or directive not defined: \'`EXE_SRLV_OP\'\n                alucontrol <= `EXE_SRLV_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:63: Define or directive not defined: \'`EXE_SRAV\'\n            `EXE_SRAV:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:64: Define or directive not defined: \'`EXE_SRAV_OP\'\n                alucontrol <= `EXE_SRAV_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:65: Define or directive not defined: \'`EXE_MULT\'\n            `EXE_MULT:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:66: Define or directive not defined: \'`EXE_MULT_OP\'\n                alucontrol <= `EXE_MULT_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:67: Define or directive not defined: \'`EXE_MULTU\'\n            `EXE_MULTU:\n            ^~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:68: Define or directive not defined: \'`EXE_MULTU_OP\'\n                alucontrol <= `EXE_MULTU_OP;  \n                              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:69: Define or directive not defined: \'`EXE_DIV\'\n            `EXE_DIV:\n            ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:70: Define or directive not defined: \'`EXE_DIV_OP\'\n                alucontrol <= `EXE_DIV_OP;  \n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:71: Define or directive not defined: \'`EXE_DIVU\'\n            `EXE_DIVU:\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:72: Define or directive not defined: \'`EXE_DIVU_OP\'\n                alucontrol <= `EXE_DIVU_OP;  \n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:74: Define or directive not defined: \'`EXE_NOP_OP\'\n                alucontrol <= `EXE_NOP_OP;\n                              ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:78: Define or directive not defined: \'`EXE_BEQ\'\n        `EXE_BEQ:\n        ^~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:79: Define or directive not defined: \'`EXE_SUB_OP\'\n            alucontrol <= `EXE_SUB_OP; \n                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:80: Define or directive not defined: \'`EXE_ADDI\'\n        `EXE_ADDI:\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:81: Define or directive not defined: \'`EXE_ADD_OP\'\n            alucontrol <= `EXE_ADD_OP; \n                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:82: Define or directive not defined: \'`EXE_ADDIU\'\n        `EXE_ADDIU:\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/443556793/lab_4/rtl/aludec.v:83: Define or directive not defined: \'`EXE_ADDU_OP\'\n            alucontrol <= `EXE_ADDU_OP; \n                          ^~~~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module aludec(
           input wire[5:0] funct,
           input wire[5:0] op,
           output reg[7:0] alucontrol
       );
always @(*)
begin
    case (op)
        `EXE_NOP:
        case (funct)
            `EXE_ADD:
                alucontrol <= `EXE_ADD_OP;
            `EXE_ADDU:
                alucontrol <= `EXE_ADDU_OP;
            `EXE_SUB:
                alucontrol <= `EXE_SUB_OP;
            `EXE_SUBU:
                alucontrol <= `EXE_SUBU_OP;
            `EXE_AND:
                alucontrol <= `EXE_AND_OP;
            `EXE_OR:
                alucontrol <= `EXE_OR_OP;
            `EXE_XOR:
                alucontrol <= `EXE_XOR_OP;
            `EXE_NOR:
                alucontrol <= `EXE_NOR_OP;
            `EXE_SLT:
                alucontrol <= `EXE_SLT_OP;
            `EXE_SLTU:
                alucontrol <= `EXE_SLTU_OP;
            `EXE_SLL:
                alucontrol <= `EXE_SLL_OP;
            `EXE_SRL:
                alucontrol <= `EXE_SRL_OP;
            `EXE_SRA:
                alucontrol <= `EXE_SRA_OP;
            `EXE_SLLV:
                alucontrol <= `EXE_SLLV_OP;
            `EXE_SRLV:
                alucontrol <= `EXE_SRLV_OP;
            `EXE_SRAV:
                alucontrol <= `EXE_SRAV_OP;
            `EXE_MULT:
                alucontrol <= `EXE_MULT_OP;
            `EXE_MULTU:
                alucontrol <= `EXE_MULTU_OP;
            `EXE_DIV:
                alucontrol <= `EXE_DIV_OP;
            `EXE_DIVU:
                alucontrol <= `EXE_DIVU_OP;
            default:
                alucontrol <= `EXE_NOP_OP;
        endcase
        6'b111111:
            alucontrol <= 8'b11111111;
        `EXE_BEQ:
            alucontrol <= `EXE_SUB_OP;
        `EXE_ADDI:
            alucontrol <= `EXE_ADD_OP;
        `EXE_ADDIU:
            alucontrol <= `EXE_ADDU_OP;
        `EXE_SLTI:
            alucontrol <= `EXE_SLT_OP;
        `EXE_SLTIU:
            alucontrol <= `EXE_SLTU_OP;
        `EXE_ANDI:
            alucontrol <= `EXE_AND_OP;
        `EXE_XORI:
            alucontrol <= `EXE_XOR_OP;
        `EXE_LUI:
            alucontrol <= `EXE_LUI_OP;
        `EXE_ORI:
            alucontrol <= `EXE_OR_OP;
        default:
            alucontrol <= `EXE_ADD_OP;
    endcase
end
endmodule
module aludec(
           input wire[5:0] funct,
           input wire[5:0] op,
           output reg[7:0] alucontrol
       );

always @(*)
begin
    case (op)
        `EXE_NOP:
        case (funct)
            `EXE_ADD:
                alucontrol <= `EXE_ADD_OP;
            `EXE_ADDU:
                alucontrol <= `EXE_ADDU_OP;
            `EXE_SUB:
                alucontrol <= `EXE_SUB_OP;
            `EXE_SUBU:
                alucontrol <= `EXE_SUBU_OP;
            `EXE_AND:
                alucontrol <= `EXE_AND_OP;
            `EXE_OR:
                alucontrol <= `EXE_OR_OP;
            `EXE_XOR:
                alucontrol <= `EXE_XOR_OP;
            `EXE_NOR:
                alucontrol <= `EXE_NOR_OP;
            `EXE_SLT:
                alucontrol <= `EXE_SLT_OP;
            `EXE_SLTU:
                alucontrol <= `EXE_SLTU_OP;
            `EXE_SLL:
                alucontrol <= `EXE_SLL_OP;
            `EXE_SRL:
                alucontrol <= `EXE_SRL_OP;
            `EXE_SRA:
                alucontrol <= `EXE_SRA_OP;
            `EXE_SLLV:
                alucontrol <= `EXE_SLLV_OP;
            `EXE_SRLV:
                alucontrol <= `EXE_SRLV_OP;
            `EXE_SRAV:
                alucontrol <= `EXE_SRAV_OP;
            `EXE_MULT:
                alucontrol <= `EXE_MULT_OP;
            `EXE_MULTU:
                alucontrol <= `EXE_MULTU_OP;
            `EXE_DIV:
                alucontrol <= `EXE_DIV_OP;
            `EXE_DIVU:
                alucontrol <= `EXE_DIVU_OP;
            default:
                alucontrol <= `EXE_NOP_OP;
        endcase
        6'b111111:
            alucontrol <= 8'b11111111;
        `EXE_BEQ:
            alucontrol <= `EXE_SUB_OP;
        `EXE_ADDI:
            alucontrol <= `EXE_ADD_OP;
        `EXE_ADDIU:
            alucontrol <= `EXE_ADDU_OP;
        `EXE_SLTI:
            alucontrol <= `EXE_SLT_OP;
        `EXE_SLTIU:
            alucontrol <= `EXE_SLTU_OP;
        `EXE_ANDI:
            alucontrol <= `EXE_AND_OP;
        `EXE_XORI:
            alucontrol <= `EXE_XOR_OP;
        `EXE_LUI:
            alucontrol <= `EXE_LUI_OP;
        `EXE_ORI:
            alucontrol <= `EXE_OR_OP;
        default:
            alucontrol <= `EXE_ADD_OP;
    endcase
end
endmodule