beautypg.com

3 cache block state transitions, Cache block state transitions, System responses to 21264/ev67 commands – Compaq 21264 User Manual

Page 98

background image

4–10

Cache and External Interfaces

Alpha 21264/EV67 Hardware Reference Manual

Cache Coherency

4.5.3 Cache Block State Transitions

Cache block state transitions are reflected by 21264/EV67-generated commands to the
system. Cache block state transitions can also be caused by system-generated com-
mands to the 21264/EV67 (probes). Probes control the next state for the cache block.
The next state can be based on the previous state of the cache block. Table 4–3 lists the
next state for the cache block.

The cache state transitions caused by 21264/EV67-generated commands are under the
full control of the system environment using the SysDc (system data control) com-
mands. Table 4–4 lists these commands.

Clean/Shared

This 21264/EV67 holds a read-only copy of the block, and at least one other agent in the sys-
tem may hold a copy of the block. Upon eviction, the block is not written to memory.

Dirty

This 21264/EV67 holds a read-write copy of the block, and must write it to memory after it is
evicted from the cache. No other agent in the system holds a copy of the block.

Dirty/Shared

This 21264/EV67 holds a read-only copy of the dirty block, which may be shared with
another agent. The block must be written back to memory when it is evicted.

Table 4–3 Cache Block State Transitions

Next State

Action Based on Probe Hit

No change

Do not update cache state. Useful for DMA transactions that sample data but
do not want to update tag state.

Clean

Independent of previous state, update next state to Clean.

Clean/Shared

Independent of previous state, update next state to Clean/Shared. This transac-
tion is useful for systems that update memory on probe hits.

T1:
Clean

Clean/Shared

Dirty

Dirty/Shared

Based on the dirty bit, make the block clean or dirty shared. This transaction
is useful for systems that do not update memory on probe hits.

T3:
Clean

Clean/Shared

Dirty

Invalid

Dirty/Shared

Clean/Shared

If the block is Clean or Dirty/Shared, change to Clean/Shared. If the block is
Dirty, change to Invalid. This transaction is useful for systems that use the
Dirty/Shared state as an exclusive state.

Table 4–4 System Responses to 21264/EV67 Commands

Response Type

21264/EV67 Action

SysDc ReadData

Fill block with the associated data and update tag with clean cache status.

SysDc ReadDataDirty

Fill block with the associated data and update tag with dirty cache status.

SysDc ReadDataShared

Fill block with the associated data and update tag with shared cache status.

SysDc ReadDataShared/Dirty

Fill block with the associated data and update tag with dirty/shared status.

SysDc ReadDataError

Fill block with all-ones reference pattern and update tag with invalid status.

SysDc ChangeToDirtySuccess

Unconditionally update block with dirty cache status.

SysDc ChangeToDirtyFail

Do not update cache status and fail any associated STx_C instructions.

Table 4–2 21264/EV67-Supported Cache Block States

(Sheet 2 of 2)

State Name

Description