See dram_ctrl.cc for an example:
https://gem5.googlesource.com/public/gem5/+/master/src/mem/dram_ctrl.cc

Jason

On Mon, Jan 29, 2018 at 10:38 PM Saivarun R <rsvaru...@gmail.com> wrote:

> Hi Jason,
>
> Thank you for you reply.
> What you are suggesting is to model the Dram Cache similar to a memory
> object, say main memory which takes requests of 64 bytes but stores at a
> different granularity. Can you direct me as to where do I need to look for
> this change??
>
> Also is making cacheline size local to each cache is difficult to update??
> Please share your views as to which one would be a better option to go
> ahead.
>
> Thank you
> Varun
>
> On Tue, Jan 30, 2018 at 2:39 AM, Jason Lowe-Power <ja...@lowepower.com>
> wrote:
>
>> Hi Vaurn,
>>
>> Three quick answers:
>> 1. Currently, the cache line size in gem5 is global to the system. So you
>> can't have a different line size in some caches than others.
>> 2. You could probably modify the code to increase the maximum cache block
>> size. I'm not sure why it's 128 bytes...
>> 3. What I would do is *not* use the cache line size parameter for the
>> DRAM cache, but make your own new parameter. Basically treat the the DRAM
>> cache as a memory object that accepts 64 byte requests but stores data with
>> a different line size.
>>
>> Hope this helps.
>>
>> Jason
>>
>> -----------
>> Jason Lowe-Power
>> Assistant Professor, Computer Science Department
>> University of California, Davis
>> 3049 Kemper Hall
>> https://faculty.engineering.ucdavis.edu/lowepower/
>>
>>
>> On Mon, Jan 29, 2018 at 6:43 AM Saivarun R <rsvaru...@gmail.com> wrote:
>>
>>> Hi everyone,
>>>
>>> I'm trying to simulate a *DRAM caches*, in gem5, which are primarily
>>> modeled as page-based caches in the research community. But the gem5
>>> simulator only supports a maximum of  *128 bytes* as the size of the
>>> cacheline. I've seen the previous mailing lists in search of the answer,
>>> but found nothing that would help me.
>>>
>>> What is the best solution regarding this issue??
>>>
>>> Thank you in advance :-)
>>> Varun
>>> _______________________________________________
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to