Hi Jiakun,

FYI, as an alternative, I believe you can also find the existing DRAM cache
model in NVMain. You can contact Matt ( poremba at cse dot psu dot edu) to
get the source code from http://wiki.nvmain.org/.

thanks,

-Tao


On Tue, Apr 8, 2014 at 8:07 AM, jiakunli2010 <[email protected]> wrote:

>  Hello all! I am modeling a DRAM cache with bank behavior on gem5, using
> classic memory model. I need to add some estimateLatency and bank state
> update functions to the cache model.
> It seems that I should create a subclass of BaseCache first, say,
> "DRAMCache". Though I have successfully created several C++ classes for
> prefetcher, it turned out to be different when it comes to cache.
>
> In the case of prefetcher, the subclass of BasePrefetcher
> e.g."StridePrefetcher" is implemented in C++ and added to python file. On
> the contrary, Cache<LRU>, although it is a subclass of "BaseCache"
> and contains most access behavior functions, it can not be added to python
> file directly. L1Cache(in Caches.py) can only inherits "BaseCache", but in
> fact it accesses data through all the methods of "Cache<LRU>".
>
> How does the system know which subclass to use when >1 subclasses of
> BaseCache coexist, if all the caches in .py file inherit "BaseCache"?
>
> Thanks!!!
>
>
> Jiakun Li
>
>  jiakunli2010,[email protected]
> 2014/4/8
>
> _______________________________________________
> 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