data/full_repos/permissive/174242803/alu_regf/src/alucontrol.v
data/verilator_xmls/da32dd7f-7640-4131-916a-10f26c736685.xml
module alucontrol( alucont, aluop, funct ) ;







   input  [1:0] aluop   ;
   input  [5:0] funct   ;
   output reg [2:0] alucont ;



   always @(aluop or funct)
      case(aluop)
         2'b00: alucont <= 3'b010;
         2'b01: alucont <= 3'b110;
         default: case(funct)
                     6'b100000: alucont <= 3'b010;
                     6'b100010: alucont <= 3'b110;
                     6'b100100: alucont <= 3'b000;
                     6'b100101: alucont <= 3'b001;
                     6'b101010: alucont <= 3'b111;
                     default:   alucont <= 3'b101;
                  endcase
      endcase

endmodule
module alucontrol( alucont, aluop, funct ) ;








   input  [1:0] aluop   ;
   input  [5:0] funct   ;
   output reg [2:0] alucont ;



   always @(aluop or funct)
      case(aluop)
         2'b00: alucont <= 3'b010;
         2'b01: alucont <= 3'b110;
         default: case(funct)
                     6'b100000: alucont <= 3'b010;
                     6'b100010: alucont <= 3'b110;
                     6'b100100: alucont <= 3'b000;
                     6'b100101: alucont <= 3'b001;
                     6'b101010: alucont <= 3'b111;
                     default:   alucont <= 3'b101;
                  endcase
      endcase

endmodule