Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 8 4 points ] Given a single - level 2 - way set associative cache, which has 2 cache sets in total, and each

[84 points] Given a single-level 2-way set associative cache, which has 2 cache sets in total, and each cache block size is 2 bytes. Assume the address is 4-bits wide.
a)[3 points] How many bits of the address are used for the tag bits, set index bits, and byte offset bits, respectively?
b)[41 points] Assume initially the cache is empty, i.e., all cache lines are invalid. Assume we use an LRU (Least Recently Used) cache replacement policy: when there is no empty cache block in the cache set, a cache block that is least recently used will be selected as the victim

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions