Cache placement policies: Difference between revisions

Content deleted Content added
Example: Somebody asked, on the talk page, whether there's a typo in the last line; point to the section where they ask that.
Set-associative cache: fix typo in the tag. tag = addr (0x0100) >> 7 = 0x2 (or b0010)
Tags: Mobile edit Mobile app edit Android app edit
Line 117:
# Address <code>0x0004</code> (tag - <code>0b000_0000</code>, index – <code>0b0_0001</code>, offset – <code>0b00</code>) corresponds to block 1 of the memory and maps to the set 1 of the cache. The block occupies a cache line in set 1, determined by the replacement policy for the cache.
# Address <code>0x00FF</code> (tag – <code>0b000_0001</code>, index – <code>0b1_1111</code>, offset – <code>0b11</code>) corresponds to block 63 of the memory and maps to the set 31 of the cache. The block occupies a cache line in set 31, determined by the replacement policy for the cache.
# Address <code>0x0100</code> (tag – <code>0b000_00010b000_0010</code>, index – <code>0b0_0000</code>, offset – <code>0b00</code>) corresponds to block 64 of the memory and maps to the set 0 of the cache. The block occupies a cache line in set 0, determined by the replacement policy for the cache.{{Disputed inline|talk=Talk:Cache placement policies#Typo in the last line of the Example section?n|date=June 2022}}
 
== Two-way skewed associative cache ==