Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) [45] Consider a 2-way set associative cache that has 32 blocks and 16 bytes per block. Assume a 32 bit address. a) How

1) 45] Consider a 2-way set associative cache that has 32 blocks and 16 bytes per block. Assume a 32 bit address. a) How many bits are needed to store the tag in the cache? b) For the above cache, assume LRU is used for cache replacement. Given the following address access sequence (data are shown in hexadecima). For each memory access, identify its block offset, set index, and tag, decide whether it is a cache hit or cache miss. If it is a cache miss, also mark whether it is compulsory miss, conflict miss or capacity Address 0x100 0x104 0x108 0x200 0x204 0x410 0x100 0x108 0x40C 0x408 0x300 0x284 0x280 0x304 Tag Index Offset Hit/Miss? Type of miss c) Calculate the miss rate for this memory access sequence d) Assume that the cache is initially empty. After the above memory access sequence, how many cache blocks are occupied? e) If the same cache is direct mapped, how wide is the tag field? 

1) [45] Consider a 2-way set associative cache that has 32 blocks and 16 bytes per block. Assume a 32 bit address. a) How many bits are needed to store the tag in the cache? b) For the above cache, assume LRU is used for cache replacement. Given the following address access sequence (data are shown in hexadecimal). For each memory access, identify its block offset, set index, and tag, decide whether it is a cache hit or cache miss. If it is a cache miss, also mark whether it is compulsory miss, conflict miss or capacity Address Tag Index Offset Hit/Miss? Type of miss Ox100 Ox104 Ox108 Ox200 Ox204 x410 100 Ox108 Ox40C Ox408 300 Ox284 Ox280 304 c) Calculate the miss rate for this memory access sequence. d) Assume that the cache is initially empty. After the above memory access sequence, how many cache blocks are occupied? e) If the same cache is direct mapped, how wide is the tag field?

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

Systems Architecture

Authors: Stephen D. Burd

7th edition

130508019X, 1305537378, 978-1305080195

More Books

Students also viewed these Mathematics questions

Question

What are the three kinds of research types? Explain each type.

Answered: 1 week ago

Question

What is absolute addressing? What is indirect addressing?

Answered: 1 week ago