data/full_repos/permissive/112626266/Alu.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/112626266/Alu.v:31: Multiple top level modules\n                                                                : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                : ... Top module \'alu_control\'\nmodule alu_control(ALUOp,FUNCT,op_code);\n       ^~~~~~~~~~~\n                                                                : ... Top module \'ALU\'\nmodule ALU(read_data1, read_data2, op_code, result, zero);\n       ^~~\n                                                                : ... Top module \'two_to_one_mux\'\nmodule two_to_one_mux(read_data2 , sign_extend , ALUSrc , write_data);\n       ^~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module alu_control(ALUOp,FUNCT,op_code);


input	[1:0]	ALUOp ;
input 	[5:0]	FUNCT ;
output 	reg	[3:0]	op_code ;

always @(*)

	if(ALUOp == 2'b00)
		op_code=4'b0000 ;
	else if(ALUOp == 2'b01)
		op_code=4'b0001  ;

	else 
	begin
	case 	( FUNCT )
		6'b100000 :		op_code=4'b0000	;
		6'b100010 :		op_code=4'b0001	;
		6'b100100 :		op_code=4'b0010	;
		6'b100101 : 		op_code=4'b0011	;
		6'b101010 :		op_code=4'b0111	;
		6'b000000 :		op_code=4'b0100	;
		default	  :		op_code=op_code	;
	endcase
	end	
endmodule
module alu_control(ALUOp,FUNCT,op_code);



input	[1:0]	ALUOp ;
input 	[5:0]	FUNCT ;
output 	reg	[3:0]	op_code ;

always @(*)

	if(ALUOp == 2'b00)
		op_code=4'b0000 ;
	else if(ALUOp == 2'b01)
		op_code=4'b0001  ;

	else 
	begin
	case 	( FUNCT )
		6'b100000 :		op_code=4'b0000	;
		6'b100010 :		op_code=4'b0001	;
		6'b100100 :		op_code=4'b0010	;
		6'b100101 : 		op_code=4'b0011	;
		6'b101010 :		op_code=4'b0111	;
		6'b000000 :		op_code=4'b0100	;
		default	  :		op_code=op_code	;
	endcase
	end	
endmodule