Hi Marcos, Hi all,

I build myself a simple Scratchpad based on AbstactMemory. It can be found 
here [1] (scratchpad.cc, scratchpad.hh). It is nothing fancy and also work in 
progress. I just needed something to get me started, but maybe it helps you.

Let me know when you get something useable. I would like to see a Scratchpad 
as a standard component.

Cheers
Christian

[1] https://github.com/chrism333/gem5-dtu/tree/dtu/src/mem 

On Wednesday 15 April 2015 10:06:18 Marcos Horro Varela wrote:
> Hello,
> 
> I am working on a basic implementation of a scratchpad memory. For those who
> do not know how they work, basically these memories are meant to allocate
> the data you want on them for, in example, reuse code or allocate temporal
> data for intermediate results. Their area ocuppies the same as a L2 cache.
> 
> On the other side, we can compare them with caches. They would work as
> caches without misses, because we access to them providing an address
> reserved on memory map for them. In example, we could make a scratchpad
> malloc. On the other hand, they do not have coherence protocol or something
> similar.
> 
> My question is, would it be better to inherit from BaseCache and create "my
> own" scratchpad memory cache based excluding parameters and functions not
> mean to them or would it be better to inherit from MemObject and create all
> parameters and functions?

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to