In reply to Aman551:
Class instances do not have scopes, only a handle which is meaningless outside SystemVerilog. You could create an array of class handles which have a unique index that you could pass through as an argument to the DPI call.
In reply to Aman551:
Class instances do not have scopes, only a handle which is meaningless outside SystemVerilog. You could create an array of class handles which have a unique index that you could pass through as an argument to the DPI call.