data/full_repos/permissive/520452389/source_codes/Alu.v
1: b"%Error: data/full_repos/permissive/520452389/source_codes/Alu.v:27: Cannot find file containing module: 'ksa_add'\nksa_add ks(0,A,B,out2,carra);\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/520452389/source_codes,data/full_repos/permissive/520452389/ksa_add\n             data/full_repos/permissive/520452389/source_codes,data/full_repos/permissive/520452389/ksa_add.v\n             data/full_repos/permissive/520452389/source_codes,data/full_repos/permissive/520452389/ksa_add.sv\n             ksa_add\n             ksa_add.v\n             ksa_add.sv\n             obj_dir/ksa_add\n             obj_dir/ksa_add.v\n             obj_dir/ksa_add.sv\n%Error: data/full_repos/permissive/520452389/source_codes/Alu.v:28: Cannot find file containing module: 'ksa_sub'\nksa_sub ks1(1,A,B,out3,carrs);\n^~~~~~~\n%Error: data/full_repos/permissive/520452389/source_codes/Alu.v:29: Cannot find file containing module: 'booth_multiplier'\nbooth_multiplier aa(outa, A[15:0], B[15:0]);\n^~~~~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module ALU(input [31:0] A,input [31:0] B,input [3:0] sel,output reg [31:0] out1,output reg zero);
wire carra;
wire carrs;
wire [31:0]out,out2,out3,outa;
ksa_add ks(0,A,B,out2,carra);
ksa_sub ks1(1,A,B,out3,carrs);
booth_multiplier aa(outa, A[15:0], B[15:0]);
always@(out2,out3,outa,A,B,sel)
begin
case(sel)
4'b0010: out1=out2;
4'b0110:out1=out3;
4'b0100:out1=outa;
4'b0000:out1=A&B;
4'b0001: out1=A|B;
default:out1=out2;
endcase
zero=0;
if(out3==32'h00000000)
zero=1;
end

endmodule
module ALU(input [31:0] A,input [31:0] B,input [3:0] sel,output reg [31:0] out1,output reg zero);

wire carra;
wire carrs;
wire [31:0]out,out2,out3,outa;
ksa_add ks(0,A,B,out2,carra);
ksa_sub ks1(1,A,B,out3,carrs);
booth_multiplier aa(outa, A[15:0], B[15:0]);
always@(out2,out3,outa,A,B,sel)
begin
case(sel)
4'b0010: out1=out2;
4'b0110:out1=out3;
4'b0100:out1=outa;
4'b0000:out1=A&B;
4'b0001: out1=A|B;
default:out1=out2;
endcase
zero=0;
if(out3==32'h00000000)
zero=1;
end

endmodule