Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the block addresses for the following 8 memory accesses for the parts below: 42, 30, 106, 30, 106, 18, 106, 30. For a Direct

Consider the block addresses for the following 8 memory accesses for the parts below:

42, 30, 106, 30, 106, 18, 106, 30.

For a Direct Mapped Cache, containing 16 blocks, fill in the two charts below. In the top chart, populate the tag and index bits of each memory address as well as if it is a Hit or a Miss in the cache. In the bottom chart, populate will the final state of the cache after the last memory access. Finally, what is the hit ratio?

Memory Address

Tag

Index

Miss or Hit

42

30

106

30

106

18

106

30

Cache

Index

Valid Bit

Tag

Data

0000

0001

0010

0011

0100

0101

0110

0111

1000

1001

1010

1011

1100

1101

1110

1111

What is the Hit Ratio?

For a 2-way set associative cache, containing 16 blocks (total), fill in the two charts below. In the top chart, populate the tag and index bits of each memory address as well as if it is a Hit or a Miss in the cache. In the bottom chart, populate will the final state of the cache after the last memory access. Finally, what is the hit ratio? When writing data, write into the left most set first, and use Least Recently Used overwrite policy.

Memory Address

Tag

Index

Miss or Hit

42

30

106

30

106

18

106

30

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

In a fully compiled language, which pass is machine independent?

Answered: 1 week ago

Question

Explain the seven dimensions of an organizations climate.

Answered: 1 week ago

Question

Describe the five types of change.

Answered: 1 week ago