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’

  1. While importing functions as DPI, the ports can’t be declared as chandle data type.
  2. No senstivity list declarations.
  3. Chandle can be passed as arguments to functions and tasks. It can also be used within SystemVerilog ‘class’.
  4. Only available for SystemVerilog.

LTE - 4G Wireless Technology

Digital fundamentals.

Interview Questions.


Verilog Tutorial.

LTE Tutorial.

Memory Tutorial.

Hope you liked! this page. Don't forgot to access relevant previous and next sections with links below.