Consider a directly mapped cache that consists of 4 cache lines. We use a…

Consider a directly mapped cache that consists of 4 cache lines. We use a special direct mapping technique in which it is not necessary that 1st block of main memory maps to the 1st cache line of cache, but any block can be mapped to any cache line. A mapping table ensures that all cache lines have equal number of blocks mapped to it.

Suppose all access to the cache are read access and the following sequence of memory block access.

image.png

Each number represents a unique memory block and number in subscript represent the number of time that block is accessed, i.e. for 131 refers that 13th block is being referred first time.

During the cache access of these blocks, following cache misses occurred

image.png

Using the information above find which block are competing for same cache line

I. 6 ,7           II. 6, 10      III. 9, 13         IV. 8, 11

  1. A.

    I, II, III, IV

  2. B.

    II, IV

  3. C.

    I, III

  4. D.

    I, III, IV

Attempted by 32 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…