1. Engineering
  2. Computer Science
  3. how to calculate cache tag index and offset im having...

Question: how to calculate cache tag index and offset im having...

Question details

How to calculate cache tag, index, and offset?

I'm having trouble understanding how to calculate how many of the addresses can fit in the cash, and what the tag, index, and offset would be. I have a better understanding of misses and why they occur and the type.

Exercise 5. [20 Marks] Below is a sequence of references to 16-bit memory word ad- dresses 4, 6, 8, 5, 12, 23, 30, 10, 1, 18, 4, 6, 8, 19 (a) [10 Marks] Consider an initially empty, direct-mapped cache with 2-word cache lines and a capacity of 32 bvtes. Using the sequence of addresses above, complete the below table describing the cache hits and cache misses resulting from this sequence of references. If the reference results in a cache miss, say which type of cache miss (cold, conflict, capacity) Word Address Tag Index Block Offset Hit/Miss Type of Miss 12 23 30 10 18 4 19

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution