data/full_repos/permissive/528831163/src/add_round_key.v
1: b"%Error: data/full_repos/permissive/528831163/src/add_round_key.v:14: Cannot find file containing module: 's_box'\n            s_box sb(.i_sb(xor_msg_key[(4*j + 3):4*j]), .o_sb(sb2pl[(4*j + 3):4*j]));\n            ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/s_box\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/s_box.v\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/s_box.sv\n             s_box\n             s_box.v\n             s_box.sv\n             obj_dir/s_box\n             obj_dir/s_box.v\n             obj_dir/s_box.sv\n%Error: data/full_repos/permissive/528831163/src/add_round_key.v:18: Cannot find file containing module: 'permutation_layer'\n    permutation_layer pl(.i_pl(sb2pl), .o_pl(o_ark_cipher));\n    ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module add_round_key (
    input [63:0] i_ark_msg, [63:0] i_ark_key,
    output [63:0] o_ark_cipher
);

    wire [63:0] xor_msg_key;
    wire [63:0] sb2pl;
    
    assign xor_msg_key = i_ark_key ^ i_ark_msg;
    
    genvar j;
    generate    
    for(j=0; j < 16; j = j + 1) begin
            s_box sb(.i_sb(xor_msg_key[(4*j + 3):4*j]), .o_sb(sb2pl[(4*j + 3):4*j]));
        end
    endgenerate

    permutation_layer pl(.i_pl(sb2pl), .o_pl(o_ark_cipher));
    
endmodule
module add_round_key (
    input [63:0] i_ark_msg, [63:0] i_ark_key,
    output [63:0] o_ark_cipher
);


    wire [63:0] xor_msg_key;
    wire [63:0] sb2pl;
    
    assign xor_msg_key = i_ark_key ^ i_ark_msg;
    
    genvar j;
    generate    
    for(j=0; j < 16; j = j + 1) begin
            s_box sb(.i_sb(xor_msg_key[(4*j + 3):4*j]), .o_sb(sb2pl[(4*j + 3):4*j]));
        end
    endgenerate

    permutation_layer pl(.i_pl(sb2pl), .o_pl(o_ark_cipher));
    
endmodule