Hi Christian,

It seems a good start your implementation. I was quite lost but I think it can 
help me a lot.
I am trying to make a useful implementation of this kind of memory and optimize 
their use allocating data using pseudo instructions, so be sure you will be 
notice if I am able to get it.

Thank you very much,

----- Mensaje original -----
De: "Christian Menard" <[email protected]>
Para: "gem5 users mailing list" <[email protected]>
Enviados: Miércoles, 15 de Abril 2015 11:24:02
Asunto: Re: [gem5-users] Scratchpad Memory Implementation

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

-- 
Marcos Horro Varela
Representante de alumnos Dpto. Electrónica y Sistemas
Universidade da Coruña
+34 618 626 737
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to