data/full_repos/permissive/528831163/src/permutation_layer.v
1: b"%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:11: Cannot find file containing module: 'block_shuffle'\n            block_shuffle bs(.i_bs(i_pl[(16*i + 15):16*i]), .o_bs(bs2rp[(16*i + 15):16*i]));\n            ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/block_shuffle\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/block_shuffle.v\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/block_shuffle.sv\n             block_shuffle\n             block_shuffle.v\n             block_shuffle.sv\n             obj_dir/block_shuffle\n             obj_dir/block_shuffle.v\n             obj_dir/block_shuffle.sv\n%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:14: Cannot find file containing module: 'round_permutation'\n            round_permutation #(.shift(1), .data_length(16)) rp0(.i_rp(bs2rp[(16*0 + 15):16*0]), .o_rp(rp2xor[15:0]));\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:15: Cannot find file containing module: 'round_permutation'\n            round_permutation #(.shift(4), .data_length(16)) rp1(.i_rp(bs2rp[(16*1 + 15):16*1]), .o_rp(rp2xor[(16 + 15):16*1]));\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:16: Cannot find file containing module: 'round_permutation'\n            round_permutation #(.shift(7), .data_length(16)) rp2(.i_rp(bs2rp[(16*2 + 15):16*2]), .o_rp(rp2xor[(16*2 + 15):16*2]));\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:17: Cannot find file containing module: 'round_permutation'\n            round_permutation #(.shift(9), .data_length(16)) rp3(.i_rp(bs2rp[(16*3 + 15):16*3]), .o_rp(rp2xor[(16*3 + 15):16*3]));\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/528831163/src/permutation_layer.v:30: Cannot find file containing module: 'XOR_layer'\n    XOR_layer xl(.i_xor(rp2xor), .o_xor(o_pl));\n    ^~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module permutation_layer (
    input [63:0] i_pl, output [63:0] o_pl
);
    wire [63:0] bs2rp;

    wire [63:0] rp2xor;

    genvar i;
    generate
        for (i = 0; i < 4; i = i +1 ) begin
            block_shuffle bs(.i_bs(i_pl[(16*i + 15):16*i]), .o_bs(bs2rp[(16*i + 15):16*i]));
        end
    endgenerate
            round_permutation #(.shift(1), .data_length(16)) rp0(.i_rp(bs2rp[(16*0 + 15):16*0]), .o_rp(rp2xor[15:0]));
            round_permutation #(.shift(4), .data_length(16)) rp1(.i_rp(bs2rp[(16*1 + 15):16*1]), .o_rp(rp2xor[(16 + 15):16*1]));
            round_permutation #(.shift(7), .data_length(16)) rp2(.i_rp(bs2rp[(16*2 + 15):16*2]), .o_rp(rp2xor[(16*2 + 15):16*2]));
            round_permutation #(.shift(9), .data_length(16)) rp3(.i_rp(bs2rp[(16*3 + 15):16*3]), .o_rp(rp2xor[(16*3 + 15):16*3]));



    XOR_layer xl(.i_xor(rp2xor), .o_xor(o_pl));

endmodule
module permutation_layer (
    input [63:0] i_pl, output [63:0] o_pl
);

    wire [63:0] bs2rp;

    wire [63:0] rp2xor;

    genvar i;
    generate
        for (i = 0; i < 4; i = i +1 ) begin
            block_shuffle bs(.i_bs(i_pl[(16*i + 15):16*i]), .o_bs(bs2rp[(16*i + 15):16*i]));
        end
    endgenerate
            round_permutation #(.shift(1), .data_length(16)) rp0(.i_rp(bs2rp[(16*0 + 15):16*0]), .o_rp(rp2xor[15:0]));
            round_permutation #(.shift(4), .data_length(16)) rp1(.i_rp(bs2rp[(16*1 + 15):16*1]), .o_rp(rp2xor[(16 + 15):16*1]));
            round_permutation #(.shift(7), .data_length(16)) rp2(.i_rp(bs2rp[(16*2 + 15):16*2]), .o_rp(rp2xor[(16*2 + 15):16*2]));
            round_permutation #(.shift(9), .data_length(16)) rp3(.i_rp(bs2rp[(16*3 + 15):16*3]), .o_rp(rp2xor[(16*3 + 15):16*3]));



    XOR_layer xl(.i_xor(rp2xor), .o_xor(o_pl));

endmodule