Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (60 pts, 15 each) Assume we have a byte-addressable computer (with a word size of 32 bits) that has a small data cache capable

image text in transcribed

3. (60 pts, 15 each) Assume we have a byte-addressable computer (with a word size of 32 bits) that has a small data cache capable of holding eight words. Each cache block consists of only one 32-bit word. When a given program is executed, the processor reads data from the following sequence of hex addresses 2EO, 2E4, 208, 20C, 194, 190, 2E0, 2E4, 338, 33C, 1AC, 194 This access pattern is repeated four times. a. Assume that the cache is initially empty. Show the contents of the cache at the end of each pass through this loop if a direct mapped cache is used. Compute the hit rate for this example Repeat part (a) for an associative-mapped cache that uses the LRU replacement algorithm. Repeat part (a) for a two-way set associative cache that uses the LRU replacement algorithm. Now assume that each cache block consists of TWO 32-bit words. Repeat part (c) b. c. d. 3. (60 pts, 15 each) Assume we have a byte-addressable computer (with a word size of 32 bits) that has a small data cache capable of holding eight words. Each cache block consists of only one 32-bit word. When a given program is executed, the processor reads data from the following sequence of hex addresses 2EO, 2E4, 208, 20C, 194, 190, 2E0, 2E4, 338, 33C, 1AC, 194 This access pattern is repeated four times. a. Assume that the cache is initially empty. Show the contents of the cache at the end of each pass through this loop if a direct mapped cache is used. Compute the hit rate for this example Repeat part (a) for an associative-mapped cache that uses the LRU replacement algorithm. Repeat part (a) for a two-way set associative cache that uses the LRU replacement algorithm. Now assume that each cache block consists of TWO 32-bit words. Repeat part (c) b. c. d

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

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

=+3. Who are the brand's competitors?

Answered: 1 week ago

Question

11.7 Discuss competency-based pay.

Answered: 1 week ago