data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v
 line:24: before: "["
1: b'%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:30: Unsupported: Dynamic array new\n    darr_64 = new[2];\n              ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:34: Unsupported: Dynamic array new\n    darr = new[7];\n           ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:40: Unsupported or unknown PLI call: $ivl_darray_method$to_vec\n    $ivl_darray_method$to_vec(darr, arr);\n    ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:46: Unsupported or unknown PLI call: $ivl_darray_method$to_vec\n    $ivl_darray_method$to_vec(darr_64, arr_128);\n    ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:57: Unsupported or unknown PLI call: $ivl_darray_method$from_vec\n    $ivl_darray_method$from_vec(darr, arr);\n    ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_cast_darray-v10.v:65: Unsupported or unknown PLI call: $ivl_darray_method$from_vec\n    $ivl_darray_method$from_vec(darr_64, arr_128);\n    ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module sv_cast_string();
    bit [7:0] darr [];
    bit [63:0] darr_64 [];
    bit [7*8 - 1:0] arr;
    bit [127:0] arr_128;

initial begin
    darr_64 = new[2];
    darr_64[0] = "ABCDEFGH";
    darr_64[1] = "IJKLMNOP";

    darr = new[7];

    foreach(darr[i])
        darr[i] = "a" + i;


    $ivl_darray_method$to_vec(darr, arr);
    if(arr !== "abcdefg") begin
        $display("FAILED 1");
        $finish();
    end

    $ivl_darray_method$to_vec(darr_64, arr_128);
    if(arr_128 !== "ABCDEFGHIJKLMNOP") begin
        $display("FAILED 2");
        $finish();
    end


    arr = "0123456";
    arr_128 = "cafedeadbeefc0de";


    $ivl_darray_method$from_vec(darr, arr);
    foreach(darr[i]) begin
        if(darr[i] != "0" + i) begin
            $display("FAILED 3");
            $finish();
        end
    end

    $ivl_darray_method$from_vec(darr_64, arr_128);
    if(darr_64[0] !== "cafedead" || darr_64[1] !== "beefc0de") begin
        $display("FAILED 4");
        $finish();
    end

    $display("PASSED");
end
endmodule
module sv_cast_string();

    bit [7:0] darr [];
    bit [63:0] darr_64 [];
    bit [7*8 - 1:0] arr;
    bit [127:0] arr_128;

initial begin
    darr_64 = new[2];
    darr_64[0] = "ABCDEFGH";
    darr_64[1] = "IJKLMNOP";

    darr = new[7];

    foreach(darr[i])
        darr[i] = "a" + i;


    $ivl_darray_method$to_vec(darr, arr);
    if(arr !== "abcdefg") begin
        $display("FAILED 1");
        $finish();
    end

    $ivl_darray_method$to_vec(darr_64, arr_128);
    if(arr_128 !== "ABCDEFGHIJKLMNOP") begin
        $display("FAILED 2");
        $finish();
    end


    arr = "0123456";
    arr_128 = "cafedeadbeefc0de";


    $ivl_darray_method$from_vec(darr, arr);
    foreach(darr[i]) begin
        if(darr[i] != "0" + i) begin
            $display("FAILED 3");
            $finish();
        end
    end

    $ivl_darray_method$from_vec(darr_64, arr_128);
    if(darr_64[0] !== "cafedead" || darr_64[1] !== "beefc0de") begin
        $display("FAILED 4");
        $finish();
    end

    $display("PASSED");
end
endmodule