Question: Consider 6 - bit address space for this question. The following series of physical address references for LOAD operations are given as byte addresses: 2

 

Consider 6-bit address space for this question. The following series of physical address

references for LOAD operations are given as byte addresses:

20, 5, 18, 4, 37, 4, 36, 21

Assume caches are initially empty. Label each reference in the list as a hit or a miss and

show the final contents of the cache for the following configurations:

a) A 16-Byte direct-mapped cache with 4-Byte blocks.

b) A 16-Byte 2-way set associative cache with 2-Byte blocks.

c) A 16-Byte fully associative cache with 8-Byte blocks.

Address Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7

0                    5         6          7           8            9        10      15          20

8                   25       30       35        40         90        88      56         24

16                 8        88        46        78         87        99      27         46

24                35      45       64         54       43       102      59         95

32                27      67       34         35       129      222     43         34

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a 16Byte DirectMapped Cache with 4Byte Blocks Cache Size 16 bytes 4 bytesblock 4 blocks Block Offset 2 bits since 22 4 bytes Index 2 bits since 4 blocks occupy 22 addresses Tag 2 bits remaining bits f... View full answer

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!