Jump to content

Recommended Posts

Posted

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

Posted

My suggestion was following the standard (which says to include either systemc or systemc.h), but I guess it might work just to include the datatypes headers. I haven't tried it myself,

 

regards

Alan

Posted

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.

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