Hi Nilay,

Thanks for the response. Actually this is also the problem I am facing
with.
The file src/mem/ruby/CacheMemory.cc defines basic class of Ruby Cache. The
L1, L2 cache are all defined with slicc file, and only after built can
these files be compiled into c++ file. Also I cannot find somewhere else
using l2_request_latency or l2_hitLatency, although I know it must be used
somewhere.
I build gem5 with ALPHA MESI_CMP_directory, 2 level cache, Ruby memory and
GARNET network.

Could you please point out where else could this l2_request_latency or
l2_hitLatency may possibly be used?

Thanks,
Xi

On Thu, Aug 2, 2012 at 10:03 PM, Nilay Vaish <[email protected]> wrote:

> Can you try replacing the place where l2_request_latency is used (other
> than the definition it self) with a function call? This function can return
> different values depending on the ratio.
>
> --
> Nilay
>
>
> On Tue, 31 Jul 2012, Xi Chen wrote:
>
>  Hi Nilay,
>>
>> I tried to add a variable in the MESI_CMP_directory-L2cache.sm file, like
>> change "int l2_request_latency=2" to "int l2_request_latency := 2 *
>> ratio",
>> but it failed with error ">*<".
>> I tried to change "m_latency=p->latency * ratio" in
>> src/mem/ruby/system/**CacheMemory.cc, but this will affect L1 cache also.
>> Here ratio is a variable from other file.
>>
>> Actually all I want to do is make latency (hitLatency,
>> requestLatency,**responseLatency) in L2 not L1  dynamical (by
>> multiplying a
>> variable) during the runtime. CacheMemory.cc is a basic template which
>> suits for both L1 and L2 and .sm file specify L1 and L2, however I cannot
>> make L2 parameters be a variable but a constant during run time, which
>> confused me a lot.
>>
>> Please suggest me how to do that, it is very important for my project.
>>
>> Thanks,
>> Xi
>>
>>
>>


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

Reply via email to