Hi Biswa, Andreas,

Thanks for the replies. I would try the option of adding a flag to identify
the level. And, i would use the CPU as the view-point (than the I/O
devices). That would certainly help me in my experiment  in short term.

BR/Nizam



On Tue, Aug 19, 2014 at 7:50 AM, biswabandan panda via gem5-users <
[email protected]> wrote:

> Hi,
>         What if you assign the values something like this in the
> CacheConfig.py.
>
> L1Icache - 0,
> L1Dcache - 1,
> L2Cache - 2
> L3Cache - 3
> and IO cache with -1 (minus 1). I guess it's ok.
>
>
> On Mon, Aug 18, 2014 at 11:34 PM, Andreas Hansson <[email protected]
> > wrote:
>
>>  Hi all,
>>
>>  The challenge with adding a level is that it may be different depending
>> on where you start counting. Consider CPU’s with private L1s and private
>> L2, but a shared last-level cache. This would be the “L3” cache for the
>> CPUs. However, for an I/O device the “L3” may be the L1 or L2 rather.
>>
>>  Andreas
>>
>>   From: biswabandan panda via gem5-users <[email protected]>
>> Reply-To: biswabandan panda <[email protected]>, gem5 users mailing
>> list <[email protected]>
>> Date: Monday, 18 August 2014 18:53
>> To: Nizamudheen Ahmed <[email protected]>, gem5 users mailing list <
>> [email protected]>
>> Subject: Re: [gem5-users] Classic memory model
>>
>>  You could add a parameter say Level to identify the cache level. There
>> is a flag named IstopLevel already implemented which distinguishes L1 cache
>> from the MLCs and LLCs. You could add a similar one to differentiate the
>> caches.
>>
>>  The other way to distinguish the L1 cache is to check the assoc in the
>> cache_impl.hh.
>>
>>
>>
>> On Mon, Aug 18, 2014 at 9:55 PM, Nizamudheen Ahmed via gem5-users <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>>  I would like to do L1Cache specific book-keeping in Classic Memory
>>> model. I understood that the cache is implemented in the cache_impl.hh. L1
>>> and L2 caches are instances of Cache<TagStore>.
>>>
>>>  is there a isL1DCache() equivalent API/flag in cache_impl.hh that i
>>> can use to selectively instrument the cache_impl.hh file?
>>>
>>>
>>>
>>>  One obvious way i though was that... I add an additional configuration
>>> parameter to the Cache (let say is_l1d) and set that in the python script
>>> appropriately.
>>> BR/Nizam
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>>
>>
>> *thanks&regards *
>> *BISWABANDAN*
>> http://www.cse.iitm.ac.in/~biswa/
>>
>> “We might fall down, but we will never lay down. We might not be the
>> best, but we will beat the best! We might not be at the top, but we will
>> rise.”
>>
>>
>>
>> -- IMPORTANT NOTICE: The contents of this email and any attachments are
>> confidential and may also be privileged. If you are not the intended
>> recipient, please notify the sender immediately and do not disclose the
>> contents to any other person, use it for any purpose, or store or copy the
>> information in any medium. Thank you.
>>
>> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>> Registered in England & Wales, Company No: 2557590
>> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
>> Registered in England & Wales, Company No: 2548782
>>
>
>
>
> --
>
>
> *thanks&regards*
> *BISWABANDAN*
> http://www.cse.iitm.ac.in/~biswa/
>
> “We might fall down, but we will never lay down. We might not be the best,
> but we will beat the best! We might not be at the top, but we will rise.”
>
>
>
> _______________________________________________
> 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