Question: Exercise 1 A byte - addressable computer has a small data cache capable of holding eight 3 2 - bit words. Each cache block consists
Exercise
A byteaddressable computer has a small data cache
capable of holding eight bit words. Each cache block
consists of one bit word. When a given program is
executed, the processor reads data sequentially from the
following hex addresses:
This pattern is repeated four times.
a Assume that the cache is initially empty. Show the
contents of the cache at the end of each pass through the
loop if a directmapped cache is used, and compute the hit
rate.
Exercise
b Repeat part a for an
associativemapped cache that uses the LRU
replacement algorithm.
c Repeat part a for a fourway
setassociative cache.A byteaddressable computer has a small data cache
capable of holding eight bit words. Each cache block
consists of one bit word. When a given program is
executed, the processor reads data sequentially from the
following hex addresses:
CFFCCF
This pattern is repeated four times.
a Assume that the cache is initially empty. Show the
contents of the cache at the end of each pass through the
loop if a directmapped cache is used, and compute the hit
rate.
Exercise
b Repeat part a for an
associativemapped cache that uses the LRU
replacement algorithm.
c Repeat part a for a fourway
setassociative cache.
I got and for abc respectively. However, doesn't setassociative have a higher hit rate than direct mapping normally. Please provide step by step details with explanation, thank you!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
