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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×