Question: A computer system has 1 MB of byte-addressable main memory and 8 kB of 2-way set associative cache memory. One cache line is 4

A computer system has 1 MB of byte-addressable main memory and 8 kB of 2-way set associative cache memory. One cache line is 4 bytes. (i) Determine the number of cache lines. [1 mark] (ii) Determine the size of the "tag" and "set" fields of the memory address. [4 marks] (iii) Figure Q1(d)(iii) shows a portion of the main memory contents (all numbers are in hexadecimal). Draw a diagram showing the cache contents after memory location ABCDE (hexadecimal) is accessed. [5 marks] Address ABCDA ABCDB ABCDC ABCDD ABCDE ABCDF ABCEO ABCE1 Contents 12 34 56 78 9A BC DE FO Figure Q1(d)(iii)
Step by Step Solution
3.35 Rating (164 Votes )
There are 3 Steps involved in it
i To determine the number of cache lines we first need to calculate the total size of the cache memory in bytes and then divide it by the size of each ... View full answer
Get step-by-step solutions from verified subject matter experts
