data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE/key_gen.v
1: b"%Error: data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE/key_gen.v:19: Cannot find file containing module: 'sbox'\nsbox a1 (\n^~~~\n        ... Looked in:\n             data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE,data/full_repos/permissive/486091369/sbox\n             data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE,data/full_repos/permissive/486091369/sbox.v\n             data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE,data/full_repos/permissive/486091369/sbox.sv\n             sbox\n             sbox.v\n             sbox.sv\n             obj_dir/sbox\n             obj_dir/sbox.v\n             obj_dir/sbox.sv\n%Error: data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE/key_gen.v:24: Cannot find file containing module: 'sbox'\nsbox a2 (\n^~~~\n%Error: data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE/key_gen.v:29: Cannot find file containing module: 'sbox'\nsbox a3 (\n^~~~\n%Error: data/full_repos/permissive/486091369/verilog/rtl/SUBMODULE/key_gen.v:34: Cannot find file containing module: 'sbox'\nsbox a4 (\n^~~~\n%Error: Exiting due to 4 error(s)\n"
function [31:0] rcon_val;
input   [3:0]   idx;
begin
    case(idx)
        4'h1: rcon_val=32'h01_00_00_00;
        4'h2: rcon_val=32'h02_00_00_00;
        4'h3: rcon_val=32'h04_00_00_00;
        4'h4: rcon_val=32'h08_00_00_00;
        4'h5: rcon_val=32'h10_00_00_00;
        4'h6: rcon_val=32'h20_00_00_00;
        4'h7: rcon_val=32'h40_00_00_00;
        4'h8: rcon_val=32'h80_00_00_00;
        4'h9: rcon_val=32'h1b_00_00_00;
        4'hA: rcon_val=32'h36_00_00_00;
        default: rcon_val=32'h00_00_00_00;
    endcase
end
endfunction
function [31:0] rcon_val;

input   [3:0]   idx;
begin
    case(idx)
        4'h1: rcon_val=32'h01_00_00_00;
        4'h2: rcon_val=32'h02_00_00_00;
        4'h3: rcon_val=32'h04_00_00_00;
        4'h4: rcon_val=32'h08_00_00_00;
        4'h5: rcon_val=32'h10_00_00_00;
        4'h6: rcon_val=32'h20_00_00_00;
        4'h7: rcon_val=32'h40_00_00_00;
        4'h8: rcon_val=32'h80_00_00_00;
        4'h9: rcon_val=32'h1b_00_00_00;
        4'hA: rcon_val=32'h36_00_00_00;
        default: rcon_val=32'h00_00_00_00;
    endcase
end
endfunction