


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Cache Read Operation - Flowchart
14 ) lines of 4 bytes
Line or Slot r^
Word w 8
14
Main Memory blocks held z^0
s0, m, 2m, 3m…2-m z^1
s1,m+1, 2m+1…2 -m+ z^ m-^
m-1, 2m-1,3m-1…
s-1 docsity.com
s+w^ words or bytes z Block size = line size = 2
w^ words or bytes z^ Number of blocks in main memory = 2
s+ w^ w^ s/2= 2^ z Number of lines in cache = m = 2
r z^ Size of tag = (s – r) bits
Tag^ 22 bit^
Word2 bit
Associative Mapping Address Structure z^ 22 bit tag stored with each 32 bit block of data z^ Compare tag field with tag entry in cache to checkfor hit z^ Least significant 2 bits of address identify which 8bit word is required from 32 bit data block
docsity.com
s+w^ words or bytes z Block size = line size = 2
w^ words or bytes z^ Number of blocks in main memory = 2
s+ w^ w^ s/2= 2^ z Number of lines in cache = undetermined z Size of tag = s bits