Hi Gabe, Thanks for your reply. In fact, I'm trying to build a systemc module inside the Gem5. yes, just under the src. However, for so reason, I also need such systemc module can be standalone for verification or some purposes. So I'm wondering what's the proper way to do it?
In addition, I noticed your recently systemc commits. According to your commits. I found you reimplement ( and improvement) the entire systemc library in Gem5. Could you tell me what/why this for? (why not just working under src and linking the systemc lib in ext?) thanks, Dave Hi Dave. Could you describe what you're trying to do? Are you trying to build a systemc module into gem5, or use gem5 as a black box inside systemc? The instructions you're looking at are for the later. In those instructions, they're telling you to make a directory for your project somewhere else, not under src. Then from that project you'd have your own top level SConstruct and include the SConscript in ext/systemc/src/ from it. Gabe On Fri, Oct 19, 2018 at 1:31 AM Wen, Dave <[email protected]> wrote: > Hi all, > > According to the Readme.md under ext/systemc. I added a new sub-project > folder under src/ and also add a SConstruct file for my little project. > > ```python > env = Environment() > > env.Append(CXXFLAGS=['-std=c++11']) > if env['PLATFORM'] == 'darwin': > env.Append(LINKFLAGS=['-undefined', 'dynamic_lookup']) > > systemc = env.SConscript('<path_to_systemc>/src/SConscript', > exports=['env']) > env.Program('example', ['example.cc', systemc]) > ``` > However, I'm confused at the path of the SConscript. Such > <path_to_systemc> represents the path to the ext/systemc? or somewhere > else? There is one SConscript under ext/systemc, but not ext/src/SConscript. > > BTW, does any document or tutorial to point out the way how to add a > systemc module into the Gem5 from scratch? > > thanks, > Dave > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
