Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Direct
Programming Interface (DPI) is an interface which can be used to
interface SystemVerilog with foreign languages. These Foreign languages
can be a C, C++, System C as well as others. DPI's consists of two
layers: A SystemVerilog Layer and a Foreign language layer. Both the
layers are isolated from each other.Direct Programming Interface (DPI)
allows direct inter language function calls between the SystemVerilog
and Foreign language. The functions implemented in Foreign language can
be called from SystemVerilog and such functions are called Import
functions similarly functions implemented in SystemVerilog can be called
from Foreign language (C/C++ or System C) such functions are called
Export functions. DPI's allows transfer of data between two domains
through function arguments and return.