data/full_repos/permissive/159596577/src/alu.v
1: b"%Error: data/full_repos/permissive/159596577/src/alu.v:41: Cannot find file containing module: 'cla32'\n    cla32 as32 (a,b^{32{sub}},sub,s);\n    ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/159596577/src,data/full_repos/permissive/159596577/cla32\n             data/full_repos/permissive/159596577/src,data/full_repos/permissive/159596577/cla32.v\n             data/full_repos/permissive/159596577/src,data/full_repos/permissive/159596577/cla32.sv\n             cla32\n             cla32.v\n             cla32.sv\n             obj_dir/cla32\n             obj_dir/cla32.v\n             obj_dir/cla32.sv\n%Error: data/full_repos/permissive/159596577/src/alu.v:27: Cannot find file containing module: 'shifter'\n    shifter shift (b,a[4:0],aluc[2],aluc[3],d_sh);\n    ^~~~~~~\n%Error: data/full_repos/permissive/159596577/src/alu.v:28: Cannot find file containing module: 'mux4x32'\n    mux4x32 select (d_as,d_and_or,d_xor_lui,d_sh,aluc[1:0],r);\n    ^~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module alu(
    a,
    b,
    aluc,
    r,
    z
);
    input [31:0] a,b;
    input [3:0] aluc;
    output [31:0] r;
    output z;
    wire [31:0] d_and = a & b;
    wire [31:0] d_or = a | b;
    wire [31:0] d_xor = a ^ b;
    wire [31:0] d_lui = {b[15:0],16'h0};
    wire [31:0] d_and_or = aluc[2]? d_or:d_and;
    wire [31:0] d_xor_lui = aluc[2]? d_lui:d_xor;
    wire [31:0] d_as,d_sh;
    addsub32 as32(a,b,aluc[2],d_as);
    shifter shift (b,a[4:0],aluc[2],aluc[3],d_sh);
    mux4x32 select (d_as,d_and_or,d_xor_lui,d_sh,aluc[1:0],r);
    assign z = ~|r; 
endmodule
module alu(
    a,
    b,
    aluc,
    r,
    z
);

    input [31:0] a,b;
    input [3:0] aluc;
    output [31:0] r;
    output z;
    wire [31:0] d_and = a & b;
    wire [31:0] d_or = a | b;
    wire [31:0] d_xor = a ^ b;
    wire [31:0] d_lui = {b[15:0],16'h0};
    wire [31:0] d_and_or = aluc[2]? d_or:d_and;
    wire [31:0] d_xor_lui = aluc[2]? d_lui:d_xor;
    wire [31:0] d_as,d_sh;
    addsub32 as32(a,b,aluc[2],d_as);
    shifter shift (b,a[4:0],aluc[2],aluc[3],d_sh);
    mux4x32 select (d_as,d_and_or,d_xor_lui,d_sh,aluc[1:0],r);
    assign z = ~|r; 
endmodule