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


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

Reply via email to