Main Memory Size |
256 Bytes |
Addr Width = 8 bits |
Cache Line Size |
1 Byte |
|
Cache Memory Size |
8 Bytes |
Addr Width = 3 bits |
Number of Processors in System (This is also number of caches in the system) |
3 |
|
Valid/Invalid (1 bit) |
Tag (3 bits) |
Valid/Invalid (1 bit) |
Tag (3 Bits) |
Membership Vector (3 Bits). |
Ownership Code |
Owner |
"00" |
No Owner |
"01" |
Cache 0 is the owner |
"10" |
Cache 1 is the owner |
"11" |
Cache 2 is the owner |
State Code |
Meaning |
"00" |
Shared State (S), Ownership Code must
also be "00", Membership Vecotr cannot be 0, also called
Shared Clean (SC) State |
"01" |
Modified (M) State, Ownership Code cannot be
"00", Membership Vecotr cannot be 0, also called Unique
Dirty (UD) State |
"10" |
Exclusive (E) State, Ownership Code cannot be
"00", Membersihp Vector cannot be 0, Also Called Unique
Clean (UC) State |
"11" |
Owneed (O) State, Ownership Code cannot be
"00", Membrsihp Vecotor cannot be 0, also called Shared
Dirty (SD) state. |
Valid/Invalid (1 bit) | Tag (3 Bits) | Membership Vector (3 Bits). | OwnershipCode (2 Bits) |
State Code (2 Bits) |