Few things to learn about using ‘chandle’
While importing functions as DPI, the ports can’t be declared as ‘chandle’ data type.
No senstivity list declarations.
‘chandle’ can be passed as arguments to functions and tasks. It can also be used within SystemVerilog ‘class’.
Only available for SystemVerilog.