Jump to content
samng

systemc data types without sim kernel?

Recommended Posts

Yes, you should be able to write your own main() function, and include "systemc" to get access to the data types.

 

Normally you would then launch the simulation kernel by calling sc_elab_and_sim(), but if you don't call that function then the kernel won't start.

 

regards

Alan

Share this post


Link to post
Share on other sites

Looking into the src/datatypes subdirectories, I see that the SystemC datatypes aren't header-only. Therefore, you won't be able to simply include the subheaders. You will have to at least compile the datatype C++ implementation files into a separate library. I write all this under the assumption, that there is no unexpected dependency to other SystemC parts, which might complicate factorizing out the datatypes from the whole SystemC source code.

Share this post


Link to post
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...