DPI layer

Guest
Anyone knows whether class can be passed over DPI layer? has anyone
written anytype of wrapper between SV and C++ code?
Thank You.
Agape
 
It is not clear to me if you are referring to a
SystemVerilog class being passed as a formal argument
to an imported C function or a C++ class being passed
to an exported SystemVerilog task or function.

In any case, under SV3.1A, you are not permitted to do
either with a class as a formal argument.

You may find the following tutorial on DPI SV layer
useful:
<URL: http://www.project-veripage.com/dpi_tutorial_1.php>
--
SystemVerilog Interprocess Communication on Project VeriPage:
http://www.project-veripage.com/
For subscribing to Project VeriPage mailing list:
<URL: http://www.project-veripage.com/list/?p=subscribe&id=1>
 
Thanks for the response.
I am referring to a SV class being passed as a formal argument to an
imported C++ function.

Now that you brought it up,I can see how useful it is to go from C++ to
SV by passing the class to an exported SV task.

R
Swapnajit Mittra wrote:
It is not clear to me if you are referring to a
SystemVerilog class being passed as a formal argument
to an imported C function or a C++ class being passed
to an exported SystemVerilog task or function.

In any case, under SV3.1A, you are not permitted to do
either with a class as a formal argument.

You may find the following tutorial on DPI SV layer
useful:
URL: http://www.project-veripage.com/dpi_tutorial_1.php
--
SystemVerilog Interprocess Communication on Project VeriPage:
http://www.project-veripage.com/
For subscribing to Project VeriPage mailing list:
URL: http://www.project-veripage.com/list/?p=subscribe&id=1
 
Thanks for the response.
I am referring to a SV class being passed as a formal argument to an
imported C++ function.

Now that you brought it up,I can see how useful it is to go from C++ to
SV by passing the class to an exported SV task.

R
Swapnajit Mittra wrote:
It is not clear to me if you are referring to a
SystemVerilog class being passed as a formal argument
to an imported C function or a C++ class being passed
to an exported SystemVerilog task or function.

In any case, under SV3.1A, you are not permitted to do
either with a class as a formal argument.

You may find the following tutorial on DPI SV layer
useful:
URL: http://www.project-veripage.com/dpi_tutorial_1.php
--
SystemVerilog Interprocess Communication on Project VeriPage:
http://www.project-veripage.com/
For subscribing to Project VeriPage mailing list:
URL: http://www.project-veripage.com/list/?p=subscribe&id=1
 

Welcome to EDABoard.com

Sponsor

Back
Top