data/full_repos/permissive/413230008/Combinational-Circuit Building Blocks/Code/Sources/priority_encoder_generic.v
1: b'%Error: Cannot find file containing module: Building\n        ... Looked in:\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building.v\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building.sv\n             Building\n             Building.v\n             Building.sv\n             obj_dir/Building\n             obj_dir/Building.v\n             obj_dir/Building.sv\n%Error: Cannot find file containing module: Blocks/Code/Sources,data/full_repos/permissive/413230008\n%Error: Cannot find file containing module: data/full_repos/permissive/413230008/Combinational-Circuit\n%Error: Cannot find file containing module: Blocks/Code/Sources/priority_encoder_generic.v\n%Error: Exiting due to 4 error(s)\n'
module priority_encoder_generic
    #(parameter N = 4)(
    input [N - 1:0] w,
    output z,
    output reg [$clog2(N) - 1:0] y
    );
    
    assign z = |w;
    
    integer k;
    
    always @(w)
    begin
        y = 'bx;
        for (k = 0; k < N; k = k + 1)
            if (w[k])
                y = k;
    end
endmodule
module priority_encoder_generic
    #(parameter N = 4)(
    input [N - 1:0] w,
    output z,
    output reg [$clog2(N) - 1:0] y
    );

    
    assign z = |w;
    
    integer k;
    
    always @(w)
    begin
        y = 'bx;
        for (k = 0; k < N; k = k + 1)
            if (w[k])
                y = k;
    end
endmodule