Question: Question 3 ( 2 0 points ) : Consider a two - way set associative cache for a 1 6 - bit address space. The

Question 3(20 points): Consider a two-way set associative cache for a 16-bit address space.
The cache has 4 word blocks and 16 entries.
a)(4 points) How many bits are used for each of the tag, index and offset?
b)(4 points) What is the data capacity of the cache in bits?
c)(4 points) How many total bits are required to represent the cache, including tags and data,
as well as a Valid bit and a Dirty bit for each cache block and a LRU bit for each cache entry?
d)(8 points) In the table below indicate the state of the cache after the following sequence of
memory references:
Assume that, prior to the references above, all entries in the cache are invalid, i.e. all the valid
bits (V) in the cache are 0, and all the least-recently-used (LRU) bits are equal to 0.
You must indicate the value of the valid bit and the LRU bits for all entries in the cache. For
entries that have a valid bit V=1 you must also list the value of the dirty bit (D) and the value
of the Tag.
 Question 3(20 points): Consider a two-way set associative cache for a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!