Hi!
Is it possible to pass a C++ vector to SystemVerilog using DPI? And on the system verilog side, can I iterate the vector like a SystemVerilog queue?
Thanks,
Nachiketa
Hi!
Is it possible to pass a C++ vector to SystemVerilog using DPI? And on the system verilog side, can I iterate the vector like a SystemVerilog queue?
Thanks,
Nachiketa
In reply to nachiketag:
If the element type of the vector is a C-compatible type that is also compatible across the DPI interface (i.e. no pointers), you should be able to copy the element::data() array to SystemVerilog as an unpacked array