Question: Caches are important to providing a high - performance memory hierarchy to processors. Below is a list of 6 4 - bit memory address references,
Caches are important to providing a highperformance memory hierarchy to processors. Below is a list of bit memory address references, given as word addresses.
xxbxbxxbfxxbe, xexbxcxba, xfd
For each of these references, identify the binary word address, the tag, and the index given a directmapped cache with oneword blocks. Also list whether each reference is a hit or a miss, assuming the cache is initially empty.
For each of these references, identify the binary word address, the tag, the index, and the offset given a directmapped cache with twoword blocks and a total size of eight blocks. Also list if each reference is a hit or a miss, assuming the cache is initially empty.
You are asked to optimize a cache design for the given references. There are three directmapped cache designs possible, all with a total of eight words of data:
C has word blocks,C has word blocks, andC has word blocks.
Problem
For a directmapped cache design with a bit address, the following bits of the address are used to access the cache.
TagIndexOffset
What is the cache block size in words
How many blocks does the cache have?
What is the ratio between total bits required for such a cache implementation over the data storage bits?
Beginning from power on the following byteaddressed cache references are recorded.
AddressHexEAECCCBDec
For each reference, list its tag, index, and offset, whether it is a hit or a miss, and which bytes were replaced if any
What is the hit ratio?
List the final state of the cache, with each valid entry represented as a record of For example,
MemxC MemxCF
Problem
This exercise examines the effect of different cache designs, specifically comparing associative caches to the directmapped caches from Section For these exercises, refer to the sequence of word address shown below.
xxbxbxxbe, xxbfxexfxbxbfxba, xexce
Sketch the organization of a threeway set associative cache with twoword blocks and a total size of words. Your sketch should have a style similar to Figure but clearly show the width of the tag and data fields.
Figure The implementation of a fourway setassociative cache requires four comparators and a to multiplexor.
Trace the behavior of the cache from part a Assume a true LRU replacement policy. For each reference, identify
the binary word address,the tag,the index,the offsetwhether the reference is a hit or a miss, andwhich tags are in each way of the cache after the reference has been handled.
Sketch the organization of a fully associative cache with oneword blocks and a total size of eight words. Your sketch should have a style similar to Figure but clearly show the width of the tag and data fields.
Trace the behavior of the cache from part c Assume a true LRU replacement policy. For each reference, identify
the binary word address,the tag,the index,the offsetwhether the reference is a hit or a miss, andthe contents of the cache after each reference has been handled.
Sketch the organization of a fully associative cache with twoword blocks and a total size of eight words. Your sketch should have a style similar to Figure but clearly show the width of the tag and data fields.
Trace the behavior of the cache from part e Assume an LRU replacement policy. For each reference, identify
the binary word address,the tag,the index,the offsetwhether the reference is a hit or a miss, andthe contents of the cache after each reference has been handled.
Repeat part f using MRU most recently used replacement.
Repeat part f using the optimal replacement policy ie the one that gives the lowest miss rate
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
