data/full_repos/permissive/528831163/src/key_scheduler.v
1: b"%Error: data/full_repos/permissive/528831163/src/key_scheduler.v:12: Cannot find file containing module: 'round_permutation'\n    round_permutation #(.shift(13), .data_length(80)) rp (.i_rp(i_ks_oldkey), .o_rp(level_shift));\n    ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/round_permutation\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/round_permutation.v\n             data/full_repos/permissive/528831163/src,data/full_repos/permissive/528831163/round_permutation.sv\n             round_permutation\n             round_permutation.v\n             round_permutation.sv\n             obj_dir/round_permutation\n             obj_dir/round_permutation.v\n             obj_dir/round_permutation.sv\n%Error: data/full_repos/permissive/528831163/src/key_scheduler.v:14: Cannot find file containing module: 's_box'\n    s_box sb(.i_sb(level_shift[3:0]), .o_sb(level_sbox[3:0]));\n    ^~~~~\n%Error: Exiting due to 2 error(s)\n"
module key_scheduler (
    input clk, rst, [4:0] round_counter, [79:0] i_ks_oldkey, output [79:0] o_ks_newkey 
);

    wire [79:0] level_shift;
    wire [79:0] level_sbox;
    wire [4:0] xor_rc;


   

    round_permutation #(.shift(13), .data_length(80)) rp (.i_rp(i_ks_oldkey), .o_rp(level_shift));

    s_box sb(.i_sb(level_shift[3:0]), .o_sb(level_sbox[3:0]));
    assign level_sbox[79:4] = level_shift[79:4];
    assign xor_rc = level_sbox[63:59]^(round_counter -1);

    assign o_ks_newkey = {level_sbox[79:64], xor_rc, level_sbox[58:0]};

    

endmodule
module key_scheduler (
    input clk, rst, [4:0] round_counter, [79:0] i_ks_oldkey, output [79:0] o_ks_newkey 
);


    wire [79:0] level_shift;
    wire [79:0] level_sbox;
    wire [4:0] xor_rc;


   

    round_permutation #(.shift(13), .data_length(80)) rp (.i_rp(i_ks_oldkey), .o_rp(level_shift));

    s_box sb(.i_sb(level_shift[3:0]), .o_sb(level_sbox[3:0]));
    assign level_sbox[79:4] = level_shift[79:4];
    assign xor_rc = level_sbox[63:59]^(round_counter -1);

    assign o_ks_newkey = {level_sbox[79:64], xor_rc, level_sbox[58:0]};

    

endmodule