data/full_repos/permissive/451968827/ALU.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/451968827/ALU.v:34: 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 \'part3\'\nmodule part3(A,B,Function,ALUout);\n       ^~~~~\n                                                                : ... Top module \'hex_decoder\'\nmodule hex_decoder (c,display);\n       ^~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module part3(A,B,Function,ALUout);
	input [3:0]A;
	input [3:0]B;
	input [2:0]Function;
	output [7:0]ALUout;
	wire w0;
	wire [3:0]w1;
	wire [4:0]tmp;
	assign tmp = A+B;
	part2 forALU (A[3:0],B[3:0],1'b0,w1[3:0],w0);
	reg [7:0]ALUout;
		always @(*)
			begin
				case(Function[2:0])
					3'b000: ALUout[7:0]={3'b000,w0,w1[3:0]};
					3'b001: ALUout[7:0]={3'b000,tmp[4],tmp[3:0]};
					3'b010: ALUout[7:0]={B[3],B[3],B[3],B[3],B[3:0]};
					3'b011: ALUout[7:0]={7'b0000000,|{A[3:0],B[3:0]}};
					3'b100: ALUout[7:0]={7'b0000000,&{A[3:0],B[3:0]}};
					3'b101: ALUout[7:0]={A[3:0],B[3:0]};
					default: ALUout[7:0]=8'b11011110;
				endcase
			end
			
endmodule
module part3(A,B,Function,ALUout);

	input [3:0]A;
	input [3:0]B;
	input [2:0]Function;
	output [7:0]ALUout;
	wire w0;
	wire [3:0]w1;
	wire [4:0]tmp;
	assign tmp = A+B;
	part2 forALU (A[3:0],B[3:0],1'b0,w1[3:0],w0);
	reg [7:0]ALUout;
		always @(*)
			begin
				case(Function[2:0])
					3'b000: ALUout[7:0]={3'b000,w0,w1[3:0]};
					3'b001: ALUout[7:0]={3'b000,tmp[4],tmp[3:0]};
					3'b010: ALUout[7:0]={B[3],B[3],B[3],B[3],B[3:0]};
					3'b011: ALUout[7:0]={7'b0000000,|{A[3:0],B[3:0]}};
					3'b100: ALUout[7:0]={7'b0000000,&{A[3:0],B[3:0]}};
					3'b101: ALUout[7:0]={A[3:0],B[3:0]};
					default: ALUout[7:0]=8'b11011110;
				endcase
			end
			
endmodule