389 views

1 Answer

Best answer
3 votes
3 votes

Cache size = 8byte

Block size = 2byte

#f lines = Cache size/Block size

=> 8/2= 4 lines

#f sets (S)= #f lines / associativity

=> 4/2 = 2 sets

Using LRU :

mapping technique in set associativity => k mod S = i  {k=memory block no.}

only memory block "2" will hit

total no of hit =1

selected by

No related questions found