Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help please show work and steps 4. Simulate a 2-way set associative 64-byte cache with 1-word blocks and LRU replacement. The following list of memory

Help please show work and steps

image text in transcribed

4. Simulate a 2-way set associative 64-byte cache with 1-word blocks and LRU replacement. The following list of memory addresses is accessed in order: 16, 32, 4, 65, 16, 80, 76, 224, 20, 16, 36, 172, 20, 36, 24, 65 These addresses are 32-bit decimal byte addresses a. Determine which parts of the 32-bit address are the tag, index, block and byte offset. Mark each bit in the diagram below as T, I, BL BY 0 b. Determine how many blocks are in the cache and draw the (empty) cache. c. Convert each of the addresses (above) to binary and simulate the cache's behavior to determine which accesses are hits and which are misses. Note that you do not need the actual data from the memory to determine hits and misses. 4. Simulate a 2-way set associative 64-byte cache with 1-word blocks and LRU replacement. The following list of memory addresses is accessed in order: 16, 32, 4, 65, 16, 80, 76, 224, 20, 16, 36, 172, 20, 36, 24, 65 These addresses are 32-bit decimal byte addresses a. Determine which parts of the 32-bit address are the tag, index, block and byte offset. Mark each bit in the diagram below as T, I, BL BY 0 b. Determine how many blocks are in the cache and draw the (empty) cache. c. Convert each of the addresses (above) to binary and simulate the cache's behavior to determine which accesses are hits and which are misses. Note that you do not need the actual data from the memory to determine hits and misses

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

Students also viewed these Databases questions

Question

-1/6 3/8 Find the difference by hand.

Answered: 1 week ago