How to use export DPI task having an input bit[31:0] data from c side. I tried to use const svBitVecVal *r=0 and sent it but struct with error
In reply to rakesh reddy:
You should stay with C compatible types (like int, shortint, longint) across the DPI boundary instead of packed arrays. Then you can simply reference the arguments as a whole.
Also see this about DPI header files: Query on DPI open Array of String | Verification Academy