Question: Question 3 [ 2 0 Marks ] Aa ) Consider a single set in a cache that is 8 - way set associative, with the
Question Marks
Aa Consider a single set in a cache that is way set associative, with the blocks which are A B C D E F G and H as shown below. The corresponding LRU counters are also shown, where O is the least recently used.
What are the new contents of the cache, after we perform accesses to A then B then A again, then D then K Update the LRU counter on each access.
b Assume a direct map cache that has one line. The valid bit starts out at the dirty bit starts out at and the tag starts out at A as shown in the table below.
The processor does the following sequence of accesses: It reads A reads B writes B reads C reads D writes D
Show the new state of the cache after each of these accesses, also determine how many cache misses there are, and how many writebacks to memory will happen during the sequence.
Question Marks
a Associativity usually improves the miss ratio, but not always. With the aid of an example, give a short series of address references for which a twoway setassociative cache with LRU replacement would experience more misses than a directmapped cache of the same size.
b Given the following cache types and data addresses to be accessed, which cache will you use to process the given data, why?
Available Cache Types:
A KB DirectMapped cache with with a byte line size
A KB way Set Associative cache with byte line size
Data address to be accessed in the given order:
xBACxAEFxxAFC
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
