Problem 4 (25 points)Consider a byte addressing architecture with 64-bit memory addresses.(a)Which bits of the address would be used in the tag, index and offset in a direct-mapped cache with 512 1-word blocks. 3(b)Which bits of the address would be used in the tag, index and offset in a direct-mapped cache with 64 8-word blocks.(c)What is the ratio of bits used for storing data to total bits stored in the cache in each of the above cases

Respuesta :

Answer:

Following are the solution to the given points:

Explanation:

The Memory address value = 64 bit

The Size of the word [tex]= \frac{64}{8} =8 \ Byte[/tex]

In point a:

The offset size [tex]= 3\ bits[/tex] ( in 1-word block size)  

The Index size [tex]= 9 \ bits[/tex] (as block number =512)  

Tag size [tex]= 64 - 12 = 52\ bits[/tex]

In point b:

The offset size [tex]= 8 \times 8 \ bytes = 2^6 = 6 \ bits.[/tex]

The Index size [tex]= 64 \ bits = 2^6 \ =6 \ bits[/tex]

Tag size  [tex]= 64 - 12 = 52\ bits[/tex]

In point c:

The Ratio at point a  

[tex]\to 3:64[/tex]

The Ratio at point b

[tex]\to 6:64[/tex]

ACCESS MORE