data/full_repos/permissive/493694849/rtl/AES_128_Decipher_Block.v
1: b"%Error: data/full_repos/permissive/493694849/rtl/AES_128_Decipher_Block.v:238: Cannot find file containing module: 'AES_Inv_Sbox'\nAES_Inv_Sbox inv_sbox_inst(.sbox(tmp_sbox), .new_sbox(new_sbox));\n^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/493694849/rtl,data/full_repos/permissive/493694849/AES_Inv_Sbox\n             data/full_repos/permissive/493694849/rtl,data/full_repos/permissive/493694849/AES_Inv_Sbox.v\n             data/full_repos/permissive/493694849/rtl,data/full_repos/permissive/493694849/AES_Inv_Sbox.sv\n             AES_Inv_Sbox\n             AES_Inv_Sbox.v\n             AES_Inv_Sbox.sv\n             obj_dir/AES_Inv_Sbox\n             obj_dir/AES_Inv_Sbox.v\n             obj_dir/AES_Inv_Sbox.sv\n%Error: Exiting due to 1 error(s)\n"
function [127:0] inv_shiftrows;
    input [127:0] data;
    
    reg [31:0] w0, w1, w2, w3;
    reg [31:0] ws0, ws1, ws2, ws3;

    begin
        w0 = data[127:96];
        w1 = data[95:64];
        w2 = data[63:32];
        w3 = data[31:0];

        ws0 = {w0[31:24], w3[23:16], w2[15:8], w1[7:0]};
        ws1 = {w1[31:24], w0[23:16], w3[15:8], w2[7:0]};
        ws2 = {w2[31:24], w1[23:16], w0[15:8], w3[7:0]};
        ws3 = {w3[31:24], w2[23:16], w1[15:8], w0[7:0]};

        inv_shiftrows = {ws0, ws1, ws2, ws3};
    end 
endfunction
function [127:0] inv_shiftrows;

    input [127:0] data;
    
    reg [31:0] w0, w1, w2, w3;
    reg [31:0] ws0, ws1, ws2, ws3;

    begin
        w0 = data[127:96];
        w1 = data[95:64];
        w2 = data[63:32];
        w3 = data[31:0];

        ws0 = {w0[31:24], w3[23:16], w2[15:8], w1[7:0]};
        ws1 = {w1[31:24], w0[23:16], w3[15:8], w2[7:0]};
        ws2 = {w2[31:24], w1[23:16], w0[15:8], w3[7:0]};
        ws3 = {w3[31:24], w2[23:16], w1[15:8], w0[7:0]};

        inv_shiftrows = {ws0, ws1, ws2, ws3};
    end 
endfunction