Thank you !!

Actually I am using Ruby, so I tried whatever u said with RubyCache.py and
CacheMemory.cc and its working.

When I debugged it,there was no issues ,but the trace file is not getting
generated. Do you know what could be the reason?



On Wed, Oct 28, 2015 at 4:25 PM, VAUMOURIN Grégory <[email protected]
> wrote:

> If you want to add new parameters to the cache : (I supposed you don't use
> Ruby to simulate the caches)
>           --> In src/mem/cache/BaseCache.py, you can add a parameter to
> the BaseCache class like
> my_new_parameter = Param.int( DEFAULT_VALUE, "Description of my new
> parameter")
> For example , if your new parameter is a int
>
>           ---> In the src/mem/cache/BaseCache.cc , in the constructor of
> the BaseCache, you can get the value of your parameter with
> p->my_new_parameter and copy into some custom members variables .
>
> After that, you can this custom variable into all your python files . Hope
> this helped =)
>
> --
> Grégory Vaumourin
> Doctorant - Phd Student
> Laboratoire Adéquation Algorithme Architecture -- Algorithm and
> Architecture Codesign Laboratory
> Phone: +33 (1) 69080069
>
> ________________________________________
> De : gem5-dev [[email protected]] de la part de P Pinky [
> [email protected]]
> Envoyé : mercredi 28 octobre 2015 11:42
> À : [email protected]; [email protected]
> Objet : [gem5-dev] Adding new options to commandline & Using it
>
> Hi all
>
> I am working on a cache memory project.I am trying to add a new option to
> cache.I am able to add the option to options.py but am facing problem when
> i try to access the value in other files.So can someone help me with,
> which and all files i should modify so that i will be able to get the
> command line value in  .cc files ?
>
> Thanks in advance !
> _______________________________________________
> gem5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/gem5-dev
> _______________________________________________
> gem5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/gem5-dev
>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to