-----Original Message-----
From:
gems-users-bounces@xxxxxxxxxxx [mailto:gems-users-bounces@xxxxxxxxxxx] On Behalf Of Liqun Cheng
Sent: Thursday, February 15, 2007
6:17 PM
To: gems-users@xxxxxxxxxxx
Subject: [Gems-users] question on
triggering event
Hi,
Here are some transitions invovled when loading a cache line into L1.
MOESI_SMP_directory-cache.sm line 354.
In the second case (L2 doesn't have room, so we replace a line from the L2), do
we need to trigger Event:L1_to_L2 again after L2_Replacement, or Event:L1_to_L2
will be retried again in the next cycle?
if (L2cacheMemory.cacheAvail(L1IcacheMemory.cacheProbe(in_msg.Address))) {
// The L2 has room, so we move the line from the
L1 to the L2
trigger(Event:L1_to_L2,
L1IcacheMemory.cacheProbe(in_msg.Address));
} else {
// The L2 does not have room, so we replace a
line from the L2
trigger(Event:L2_Replacement, L2cacheMemory.cacheProbe(L1IcacheMemory.cacheProbe(in_msg.Address)));
}
thanks
Liqun