data/full_repos/permissive/161526648/ALUcontrol.v
data/verilator_xmls/5ae8562c-e9dc-4e60-964b-75042728ae1a.xml
module ALUcontrol(func,ALUop,ALUControl);
	input [5:0]func;
	input [1:0]ALUop;
	output reg [3:0]ALUControl;

	always @(func or ALUop) begin
		case (ALUop)
			2'b00: ALUControl = 4'b0010;
			2'b01: ALUControl = 4'b0110;
			2'b10: 
				case(func)
					6'b100000: ALUControl = 4'b0010;
					6'b100010: ALUControl = 4'b0110;
					6'b100100: ALUControl = 4'b0000;
					6'b100101: ALUControl = 4'b0001;
					6'b101010: ALUControl = 4'b0111;
					default: ALUControl = 4'b0000;
				endcase
			2'b11: ALUControl = 4'b0000;
			default: ALUControl = 4'b0000;
		endcase
	end
endmodule
module ALUcontrol(func,ALUop,ALUControl);

	input [5:0]func;
	input [1:0]ALUop;
	output reg [3:0]ALUControl;

	always @(func or ALUop) begin
		case (ALUop)
			2'b00: ALUControl = 4'b0010;
			2'b01: ALUControl = 4'b0110;
			2'b10: 
				case(func)
					6'b100000: ALUControl = 4'b0010;
					6'b100010: ALUControl = 4'b0110;
					6'b100100: ALUControl = 4'b0000;
					6'b100101: ALUControl = 4'b0001;
					6'b101010: ALUControl = 4'b0111;
					default: ALUControl = 4'b0000;
				endcase
			2'b11: ALUControl = 4'b0000;
			default: ALUControl = 4'b0000;
		endcase
	end
endmodule