Jump to content

Recommended Posts

Posted

If you can call a python function from C (which you can) then you can use the SystemVerilog DPI to call C which would call python,

 

If you simply want to call a python script, you can use the $system("command") task, but all interaction with python and SystemVerilog would have to be through file I/O.

  • 2 months later...
Posted

If you can call a python function from C (which you can) then you can use the SystemVerilog DPI to call C which would call python,

 

If you simply want to call a python script, you can use the $system("command") task, but all interaction with python and SystemVerilog would have to be through file I/O.

 

Do you ever evaluate the performance of using DPI or through file I/O? 

Posted

Do you ever evaluate the performance of using DPI or through file I/O? 

I never evaluated performance, but I've got to believe DPI is quicker. And BTW, I've only personally done both with PERL, not python.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...