Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Systems A Programmers Perspective

Authors: Randal E. Bryant, David R. O'Hallaron

3rd Global Edition

1292101768, 978-1292101767

More Books

Students also viewed these Programming questions