Hi everyone,

Just FYI, it's not the best practice to modify files in src/ (e.g.,
src/mem/cache/Cache.py) if you want to change a parameter. Those are
*source* files. Everything in those files can be overridden in the *python
configuration* files. You can simply change something in your config file
if you want to change a parameter. *You should only modify files in src/ if
you are changing or creating new models.*

Hopefully, you'll be seeing some new code in gem5 this summer which will
make this even easier :D.

Cheers,
Jason

On Wed, Jun 17, 2020 at 1:41 PM Muhammet Abdullah Soytürk via gem5-users <
[email protected]> wrote:

> Hi Ahmed,
>
> You could either follow Abhishek's advice and use default configuration
> scripts (se.py or fs.py) or you can create your own script to manipulate
> those options. Writing your own configuration script is recommended (You
> can check this <http://learning.gem5.org/book/> book to learn how to do
> that). You can change the latency of cache and memory by changing
> src/mem/cache/Cache.py
> <https://github.com/gem5/gem5/blob/master/src/mem/cache/Cache.py#L80> and
> src/mem/DRAMCtrl.py
> <https://github.com/gem5/gem5/blob/master/src/mem/DRAMCtrl.py#L67>
>  respectively.
>
> Best,
> Muhammet
>
> ahmed khalil via gem5-users <[email protected]>, 17 Haz 2020 Çar, 23:01
> tarihinde şunu yazdı:
>
>> Hi, I am a beginner in gem5 ,I  want to change the memory and cache
>> latency of the system simulated using gem5 , but iI didn't find a parameter
>> in the options.py file to use .can you help me ?
>>
>> thanks
>> Ahmed
>> _______________________________________________
>> gem5-users mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to