Jump to content

Generate a shared-library containing a SystemC program


Recommended Posts


I have a SystemC program encapsulated into a C++ class allowing to interact with a SystemC model.

In order to easily call that program from a scripting language, I would like to generate a shared-library containing all my SystemC program and the SystemC library.

Is it different from generating a classical C/C++ shared-library?

How can you deal with the sc_main required by the SystemC?

Can you point me to some documentation about that topic, I didn't find anything about it for SystemC on the internet...


Thank you!



Link to comment
Share on other sites

In general, it is not different from a classical C++ shared library.  The details can't be answered without a more detailed question and/or problem description.


If your "SystemC program" contains an sc_main, you can afterwards call "sc_elab_and_sim" from your scripting language to setup the kernel and the simulation model.  See Section 4.3.2 in the IEEE 1666-2011 standard.



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.

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