09.08.2013 Views

Design and Verification of Adaptive Cache Coherence Protocols ...

Design and Verification of Adaptive Cache Coherence Protocols ...

Design and Verification of Adaptive Cache Coherence Protocols ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Composite Imperative Rule Simulating Imperative Rules<br />

CIC1 IC4 + IC2<br />

CIC2 IC5 + IC3<br />

CIC3 IC6 + IC3<br />

CIC4 IC9 + IC16<br />

CIC5 IC10 + IC17<br />

CIC6 IC11 + IC18<br />

CIC7 IC12 + IC16<br />

CIC8 IC13 + IC16<br />

CIC9 IC22 + IC16<br />

CIM1 IM1 + IM2<br />

CIM2 IM9 + IM6<br />

CIM3 IM11 + IM6<br />

CIM4 IM12 + IM10<br />

CIM5 IM13 + IM10<br />

CIM6 IM15 + IM2<br />

Figure 7.10: Simulation <strong>of</strong> Composite Imperative Rules <strong>of</strong> <strong>Cache</strong>t<br />

If a cache receives a <strong>Cache</strong>m message for an uncached address or an address cached in<br />

the <strong>Cache</strong>Pending state, it caches the data in the Clean state <strong>of</strong> Migratory (Rules CIC7<br />

<strong>and</strong> CIC8).<br />

If a cache receives a WbAckm message for an address cached in the WbPending state, it<br />

sets the cache state to Clean <strong>of</strong> Migratory (Rule CIC9).<br />

Composite M-engine Rules<br />

If the memory state shows that an address is not cached in any cache, the memory can<br />

send a <strong>Cache</strong>m message to supply a Migratory copy toacache (Rule CIM1). The <strong>Cache</strong>m<br />

message behaves as a <strong>Cache</strong>w followed by anUpwm.<br />

When the memory receives a Wbw message, if the memory state shows the cache contains<br />

a WP copy for the address, the memory removes the cache identi er from the directory<br />

<strong>and</strong> suspends the writeback message (Rule CIM2).<br />

When the memory receives a Wbw message, if the memory state shows that the cache<br />

contains a Migratory copy for the address, the memory suspends the writeback message<br />

<strong>and</strong> sets the memory state to indicate that the address is no longer cached in any cache<br />

(Rule CIM3).<br />

When the memory receives a Downmb or DownVmb message, it updates the memory state<br />

to indicate that the address is no longer cached in any cache (Rules CIM4 <strong>and</strong> CIM5).<br />

When the memory state shows that an address is not residentinanycache <strong>and</strong> there is only<br />

one suspended writeback message, the memory can acknowledge the writeback message<br />

with a WbAckm message to allow thecache to retain a Migratory copy (Rule CIM6).<br />

Figure 7.10 gives the sequence <strong>of</strong> basic rules used in the simulation <strong>of</strong> a composite imperative<br />

rule.<br />

146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!