Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the questions in this section, consider an architecture with 3 2 - bit words, and L 1 data cache with 1 2 8 bytes

For the questions in this section, consider an architecture with 32-bit words, and L1 data cache with 128 bytes of capacity, direct mapping, and write-back, write-allocate writing.
a) If the cache has blocks of 1 word(s)(4 bytes), how many bits should the Tag field have?
b) If the cache has blocks of 2 word(s)(8 bytes), how many bits should the Index field have?
c) If the cache has blocks of 1 word(s)(4 bytes), how many bits should the Offset field have?
Consider configuring the cache with blocks of 432-bit words (16-byte block). Assume that, initially, the word in memory position x has a value of 10x. Consider that the following sequence of memory accesses was performed:
1. Load Word (4)
2. Load Word (8)
3. Store Word (20), Value 1234
4. Load Word (24)
5. Load Word (128)
d) After the sequence of accesses, what is the value (in decimal) stored in the Tag field in line zero of the cache?
e) After the sequence of accesses, what is the value (in decimal) of the word stored at offset eight in cache line zero?

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

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions