data/full_repos/permissive/479997390/src/ALUControl.v
1: b'%Error: data/full_repos/permissive/479997390/src/ALUControl.v:1: Cannot find include file: CtrlDef.v\n`include "CtrlDef.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v.v\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v.sv\n             CtrlDef.v\n             CtrlDef.v.v\n             CtrlDef.v.sv\n             obj_dir/CtrlDef.v\n             obj_dir/CtrlDef.v.v\n             obj_dir/CtrlDef.v.sv\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:2: Cannot find include file: InstrDef.v\n`include "InstrDef.v" \n         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:13: Define or directive not defined: \'`ALUOp_RTYPE\'\n  if (ALUOp == `ALUOp_RTYPE) begin\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:13: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  if (ALUOp == `ALUOp_RTYPE) begin\n                           ^\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:15: Define or directive not defined: \'`INSTR_ADD_FUNCT\'\n      `INSTR_ADD_FUNCT: ALUCtrl = `ALUCtrl_ADD;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:15: Define or directive not defined: \'`ALUCtrl_ADD\'\n      `INSTR_ADD_FUNCT: ALUCtrl = `ALUCtrl_ADD;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:16: Define or directive not defined: \'`INSTR_ADDU_FUNCT\'\n      `INSTR_ADDU_FUNCT: ALUCtrl = `ALUCtrl_ADDU;\n      ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:16: Define or directive not defined: \'`ALUCtrl_ADDU\'\n      `INSTR_ADDU_FUNCT: ALUCtrl = `ALUCtrl_ADDU;\n                                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:17: Define or directive not defined: \'`INSTR_SUB_FUNCT\'\n      `INSTR_SUB_FUNCT: ALUCtrl = `ALUCtrl_SUB;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:17: Define or directive not defined: \'`ALUCtrl_SUB\'\n      `INSTR_SUB_FUNCT: ALUCtrl = `ALUCtrl_SUB;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:18: Define or directive not defined: \'`INSTR_SUBU_FUNCT\'\n      `INSTR_SUBU_FUNCT: ALUCtrl = `ALUCtrl_SUBU;\n      ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:18: Define or directive not defined: \'`ALUCtrl_SUBU\'\n      `INSTR_SUBU_FUNCT: ALUCtrl = `ALUCtrl_SUBU;\n                                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:19: Define or directive not defined: \'`INSTR_AND_FUNCT\'\n      `INSTR_AND_FUNCT: ALUCtrl = `ALUCtrl_AND;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:19: Define or directive not defined: \'`ALUCtrl_AND\'\n      `INSTR_AND_FUNCT: ALUCtrl = `ALUCtrl_AND;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:20: Define or directive not defined: \'`INSTR_NOR_FUNCT\'\n      `INSTR_NOR_FUNCT: ALUCtrl = `ALUCtrl_NOR;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:20: Define or directive not defined: \'`ALUCtrl_NOR\'\n      `INSTR_NOR_FUNCT: ALUCtrl = `ALUCtrl_NOR;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:21: Define or directive not defined: \'`INSTR_OR_FUNCT\'\n      `INSTR_OR_FUNCT: ALUCtrl = `ALUCtrl_OR;\n      ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:21: Define or directive not defined: \'`ALUCtrl_OR\'\n      `INSTR_OR_FUNCT: ALUCtrl = `ALUCtrl_OR;\n                                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:22: Define or directive not defined: \'`INSTR_XOR_FUNCT\'\n      `INSTR_XOR_FUNCT: ALUCtrl = `ALUCtrl_XOR;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:22: Define or directive not defined: \'`ALUCtrl_XOR\'\n      `INSTR_XOR_FUNCT: ALUCtrl = `ALUCtrl_XOR;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:23: Define or directive not defined: \'`INSTR_SLT_FUNCT\'\n      `INSTR_SLT_FUNCT: ALUCtrl = `ALUCtrl_SLT;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:23: Define or directive not defined: \'`ALUCtrl_SLT\'\n      `INSTR_SLT_FUNCT: ALUCtrl = `ALUCtrl_SLT;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:24: Define or directive not defined: \'`INSTR_SLTU_FUNCT\'\n      `INSTR_SLTU_FUNCT: ALUCtrl = `ALUCtrl_SLTU;\n      ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:24: Define or directive not defined: \'`ALUCtrl_SLTU\'\n      `INSTR_SLTU_FUNCT: ALUCtrl = `ALUCtrl_SLTU;\n                                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:25: Define or directive not defined: \'`INSTR_SLL_FUNCT\'\n      `INSTR_SLL_FUNCT: ALUCtrl = `ALUCtrl_SLL;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:25: Define or directive not defined: \'`ALUCtrl_SLL\'\n      `INSTR_SLL_FUNCT: ALUCtrl = `ALUCtrl_SLL;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:26: Define or directive not defined: \'`INSTR_SRL_FUNCT\'\n      `INSTR_SRL_FUNCT: ALUCtrl = `ALUCtrl_SRL;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:26: Define or directive not defined: \'`ALUCtrl_SRL\'\n      `INSTR_SRL_FUNCT: ALUCtrl = `ALUCtrl_SRL;\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:27: Define or directive not defined: \'`INSTR_SRA_FUNCT\'\n      `INSTR_SRA_FUNCT: ALUCtrl = `ALUCtrl_SRA;\n      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/ALUControl.v:27: Define or directive not defined: \'`ALUCtrl_SRA\'\n      `INSTR_SRA_FUNCT: ALUCtrl = `ALUCtrl_SRA;\n                                  ^~~~~~~~~~~~\n%Error: Cannot continue\n'
module ALUControl (
  ALUOp, Funct, ALUCtrl
);

input [4:0] ALUOp;
input [5:0] Funct;
output reg [4:0] ALUCtrl;

always @(ALUOp or Funct) begin
  if (ALUOp == `ALUOp_RTYPE) begin
    case (Funct)
      `INSTR_ADD_FUNCT: ALUCtrl = `ALUCtrl_ADD;
      `INSTR_ADDU_FUNCT: ALUCtrl = `ALUCtrl_ADDU;
      `INSTR_SUB_FUNCT: ALUCtrl = `ALUCtrl_SUB;
      `INSTR_SUBU_FUNCT: ALUCtrl = `ALUCtrl_SUBU;
      `INSTR_AND_FUNCT: ALUCtrl = `ALUCtrl_AND;
      `INSTR_NOR_FUNCT: ALUCtrl = `ALUCtrl_NOR;
      `INSTR_OR_FUNCT: ALUCtrl = `ALUCtrl_OR;
      `INSTR_XOR_FUNCT: ALUCtrl = `ALUCtrl_XOR;
      `INSTR_SLT_FUNCT: ALUCtrl = `ALUCtrl_SLT;
      `INSTR_SLTU_FUNCT: ALUCtrl = `ALUCtrl_SLTU;
      `INSTR_SLL_FUNCT: ALUCtrl = `ALUCtrl_SLL;
      `INSTR_SRL_FUNCT: ALUCtrl = `ALUCtrl_SRL;
      `INSTR_SRA_FUNCT: ALUCtrl = `ALUCtrl_SRA;





      default: ALUCtrl = 5'b00000;
    endcase
  end else begin
    ALUCtrl = ALUOp;
  end
end

endmodule
module ALUControl (
  ALUOp, Funct, ALUCtrl
);


input [4:0] ALUOp;
input [5:0] Funct;
output reg [4:0] ALUCtrl;

always @(ALUOp or Funct) begin
  if (ALUOp == `ALUOp_RTYPE) begin
    case (Funct)
      `INSTR_ADD_FUNCT: ALUCtrl = `ALUCtrl_ADD;
      `INSTR_ADDU_FUNCT: ALUCtrl = `ALUCtrl_ADDU;
      `INSTR_SUB_FUNCT: ALUCtrl = `ALUCtrl_SUB;
      `INSTR_SUBU_FUNCT: ALUCtrl = `ALUCtrl_SUBU;
      `INSTR_AND_FUNCT: ALUCtrl = `ALUCtrl_AND;
      `INSTR_NOR_FUNCT: ALUCtrl = `ALUCtrl_NOR;
      `INSTR_OR_FUNCT: ALUCtrl = `ALUCtrl_OR;
      `INSTR_XOR_FUNCT: ALUCtrl = `ALUCtrl_XOR;
      `INSTR_SLT_FUNCT: ALUCtrl = `ALUCtrl_SLT;
      `INSTR_SLTU_FUNCT: ALUCtrl = `ALUCtrl_SLTU;
      `INSTR_SLL_FUNCT: ALUCtrl = `ALUCtrl_SLL;
      `INSTR_SRL_FUNCT: ALUCtrl = `ALUCtrl_SRL;
      `INSTR_SRA_FUNCT: ALUCtrl = `ALUCtrl_SRA;





      default: ALUCtrl = 5'b00000;
    endcase
  end else begin
    ALUCtrl = ALUOp;
  end
end

endmodule