data/full_repos/permissive/451853158/MIPS_Single_Cycle_Processor/ALUDecoder.v
data/verilator_xmls/40ec1f7c-a7fa-4cbe-8b7e-a553331cc8ad.xml
module ALUDecoder (
  input   [1:0] ALUOp,
  input   [5:0] Funct,
  output reg [2:0] ALUControl
);



always @(*)
  casex ({ALUOp,Funct})
    8'b00_xxxxxx: ALUControl = 3'b010;
    8'bx1_xxxxxx: ALUControl = 3'b110;
	  8'b1x_100000: ALUControl = 3'b010;
	  8'b1x_100010: ALUControl = 3'b110;
	  8'b1x_100100: ALUControl = 3'b000;
	  8'b1x_100101: ALUControl = 3'b001;
	  8'b1x_101010: ALUControl = 3'b111;
	  default: ALUControl = 3'bxxx;
  endcase

endmodule
module ALUDecoder (
  input   [1:0] ALUOp,
  input   [5:0] Funct,
  output reg [2:0] ALUControl
);




always @(*)
  casex ({ALUOp,Funct})
    8'b00_xxxxxx: ALUControl = 3'b010;
    8'bx1_xxxxxx: ALUControl = 3'b110;
	  8'b1x_100000: ALUControl = 3'b010;
	  8'b1x_100010: ALUControl = 3'b110;
	  8'b1x_100100: ALUControl = 3'b000;
	  8'b1x_100101: ALUControl = 3'b001;
	  8'b1x_101010: ALUControl = 3'b111;
	  default: ALUControl = 3'bxxx;
  endcase

endmodule