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


On Tue, Jul 31, 2012 at 6:13 PM, Nilay Vaish <[email protected]> wrote:

> On Mon, 30 Jul 2012, Xi Chen wrote:
>
>  Hi all,
>>
>> I have a question about SLICC question. I am using MESI-CMP-directory,
>> alpha. I want the l2_request_latency and l2_response_latency to be
>> dynamical during the runtime, that means l2_request_latency is not a
>> constant but changes like l2_request_latency=default value * (ruby
>> freq/cpu
>> freq) in the simulation.
>>
>> For example, in the mem/protocol/MESI_CMP_**directory-L2cache.sm, the
>> default
>> value for l2_request_latency is 2, suppose in the during the first 5
>> million cycles, ruby freq=1GHz and cpu freq=1GHz, then l2_request_latency
>> is 2*(1/1)=2 and in the next 5 million cycles, fuby freq=2GHz, then
>> l2_request_latency is 2*(2/1)=4.
>>
>> Basically, I hope to make the number of l2_request_latency to be a
>> variable
>> but not a constant, but I have no idea how to modify the
>> MESI_CMP_directory-L2cache.sm file. Could someone give me some suggestion?
>>
>>
> I think it is not necessary to make changes to the .sm file. But before I
> suggest what you should do, I would like to know what all did you try out.
>
> --
> Nilay
>



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

Reply via email to