Hi Nitin,Originally posted in cdnusers.org by venravi
Was equally frustrated with these issues when i experimented with DPI early this year. Did "google" and found a few techniques that that SV LRM talks about. Read the section on "scope". Eventhough the LRM talks about these mechanism, mangling in C++ was a problem and hence I gave up.
I reseorted to your last option.
"c++ objects with the C function being called from SystemVerilog"
P.S. There are some papers sitting out there that may interest you.