samng Posted July 11, 2013 Report Posted July 11, 2013 Is it possible to use only systemc data types without including the simulation kernel? Thanks Sam Quote
apfitch Posted July 11, 2013 Report Posted July 11, 2013 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 Quote
samng Posted July 11, 2013 Author Report Posted July 11, 2013 Thank you, Alan. Is it possible not to compile in the kernel at all by simply including the data types .h files instead of systemc.h? Sam Quote
apfitch Posted July 11, 2013 Report Posted July 11, 2013 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 Quote
maehne Posted July 12, 2013 Report Posted July 12, 2013 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. Quote
Recommended Posts
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.