Hello Artemis,

I assume you're following the book here:
http://learning.gem5.org/book/part2/simplecache.html. I believe the problem
is that SimpleCache.py should be in src/, not in configs. SimpleCache.py
(from here
http://learning.gem5.org/book/part2/simplecache.html#simplecache-simobject)
is the *SimObject description file* which describes the SimObject you want
to add to gem5. You have to create a config file separately, see
http://learning.gem5.org/book/part2/simplecache.html#creating-a-config-file-for-the-cache
.

Jason

On Thu, Jul 6, 2017 at 4:30 AM Zeynab Mohseni <[email protected]> wrote:

> Hi,
>
> I am a PhD student and I am beginner in using Gem5. I followed all the
> tutorial of gem5 web pages.
>
> after adding all the cc,hh and py files in the Simple_cache folder and
> rebuild the gem5,  there is an error in the building process of
> SimpleCache.py (after running this command --> build/ALPHA/gem5.opt
> --debug-flags=SimpleCache configs/learning_gem5/simple_cache/SimpleCache.py
> )
>
> In follow you can see the error.
>
> File "/home/ubuntu/GEM5_ALPHA/gem5/src/python/m5/main.py", line 433, in
> main exec filecode in scope
> File "src/tutorial/simple_cache/SimpleCache.py", line 32, in <module>
> from MemObject import MemObject
> ImportError: No module named MemObject
>
>
> It will be perfect if you guide me.
> Sincerely,
> Artemis
>
>
> [image: 1484656507333_OutlookEmoji-1484656219114_image001.png.png]
> Zeynab (Artemis) Mohseni
> Researcher / PhD Candidate
>
> ARIES RESEARCH CENTER
> h <http://www.nebrija.es/aries>ttp://www.nebrija.es/aries
>
> La Dehesa de La Villa Campus
> 55, Prineos Street, Madrid, 28040
> Spain
>
> (+34) 91 452 11 00 <+34%20914%2052%2011%2000> (ext. 2807)
> [email protected] <[email protected]>
> www.nebrija.com
>
>
> _______________________________________________
> 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