Jump to content

Is it possible to call Python script from SystemVerilog?


Recommended Posts

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.

Link to comment
Share on other sites

  • 2 months later...

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? 

Link to comment
Share on other sites

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...