Hi Dave,

sorry for the confusion. gem5/ext is for third-party libraries and as
such ext/systemc only contains a clone of Accellera's systemc that can be
build by scons. The README there is for general usage of this library
from scons. You can also find it here [1].

For instruction on how to combine gem5 with systemc, please have a look
at the examples and README in util/tlm. This is a small library that
allows you to place an gem5 instance within a systemc module and to
translate messages from TLM to gem5 and back. There is also a paper that
explains most of the details [2]. Let me know if you run into any
trouble.

Cheers,
Christian


[1] https://github.com/tud-ccc/systemc-scons
[2] 
https://cfaed.tu-dresden.de/files/Images/people/chair-cc/publications/1707_Menard_SAMOS.pdf


"Wen, Dave" <[email protected]> writes:

> 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

Reply via email to