Question: For this problem you will practice cache lookups. In this example, addresses are 1 3 bits wide, the cache is a 2 - way set

For this problem you will practice cache lookups. In this example, addresses are 13 bits wide, the cache is a 2-way set associative, with a 4 byte block size, and 16 total lines. The content of the cache is shown below.
Q1:
We are going to access the memory at address 0x0E34.
What is the 0x0E34 in binary? Make sure your answer is a 13-bit number.
Q2:
What is the block offset for 0x0E34?
Q3:
What is the set index for 0x0E34?
Q4:
What is the cache tag for 0x0E34? Give your answer in hexadecimal without the leading 0x.
Q5:
Is memory address 0x0E34 in the cache? In other words, do we get a cache hit?
Q6:
If we got a cache hit, what is the byte returned? Give your answer in hexadecimal without the leading 0x. If we got a cache miss, put 0 as your answer.
For this problem you will practice cache lookups.

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 Programming Questions!