System Verilog ‘chandle
’ for “DPI- C”
In System Verilog, ‘chandle’ is used to pass C pointers as arguments to DPI functions or tasks.
Example Use: import “DPI- C” function void calc_pass (chandle pointer);
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.