Example of passing a static array of bytes from SystemVerilog to C via DPI

In reply to cgales:


module SV_monitor;
   byte packet_data [2048];
   task pass_2_C ();
      // passing packet_data array to a C function
   endtask
endmdule

// I think the C function would have parameters length, handle and then print the array