Hi Simon,

We already have a scratch pad memory for the compute GPU model 
(src/gpu-compute/). Take a look at the LDS code and how the Compute Unit code 
uses it. That should give you an idea how to implement a scratch pad for the 
CPUs.

________________________________
From: gem5-users <gem5-users-boun...@gem5.org> on behalf of Star_Duster 
<silver_ea...@sina.com>
Sent: Saturday, February 11, 2017 5:04:48 AM
To: gem5 users mailing list
Subject: [gem5-users] How to simulate a ScratchPad Memory(SPM)in Gem5

Hello everyone,

I am new to the Gem5, so I got some questions about how to simulate a SPM in 
gem5:

1.The reason why I want to simulate a ScratchPad Memory in gem5 is that I want 
to study some algorithm performance on the same data in the different position. 
My plan is replacing the L1 DCache/ICache with the SPM ( as on-chip memory ), 
so I can put the data in different place (on the SPM) as I wish. Also I need to 
output the trace of the memory access ( the SPM) to statistical analysis.  I 
don't know if my plan is all right, or you have some better idea?

2. If my plan works,  what exactly should I do to realize it ( may be need some 
specific steps)? how can I  place the data and tell the system (Gem5) where it 
is? And how can I output the trace?


Thanks again for any of your help, and looking forward to your reply.

Best wishes,
Simon
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to