[Gems-users] question on triggering event


Date: Thu, 15 Feb 2007 17:16:33 -0700
From: "Liqun Cheng" <liqun.cheng@xxxxxxxxx>
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
[← Prev in Thread] Current Thread [Next in Thread→]