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 two_to_one_mux(read_data2 , sign_extend , ALUSrc , write_data);
input  [31:0]read_data2 ;
input  [31:0]sign_extend;
input ALUSrc;
output reg [31:0]write_data; 

always@(*)
begin

if(ALUSrc == 0)
begin write_data = read_data2; end
else if(ALUSrc == 1)
begin write_data = sign_extend; end
else 
begin write_data = 32'bx; end

end

endmodule
module two_to_one_mux(read_data2 , sign_extend , ALUSrc , write_data);

input  [31:0]read_data2 ;
input  [31:0]sign_extend;
input ALUSrc;
output reg [31:0]write_data; 

always@(*)
begin

if(ALUSrc == 0)
begin write_data = read_data2; end
else if(ALUSrc == 1)
begin write_data = sign_extend; end
else 
begin write_data = 32'bx; end

end

endmodule