Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Compute the effective CPI for an implementation of a RISC-V CPU using Fig. 3a. Assume we have made the measurements of average CPI for each

Compute the effective CPI for an implementation of a RISC-V CPU using Fig. 3a. Assume we have made the measurements of average CPI for each of the instruction types (Fig. 3b): Fig. 3a. RISC-V dynamic instruction mix for the SPECint2006 programs. Fig 3.b. Q4. (3 + 3 + 1) You are trying to appreciate how important the principle of locality is in justifying the use of a cache memory, so you experiment with a computer having an L1 data cache and a main memory (you exclusively focus on data accesses). The latencies (in CPU cycles) of the different kinds of accesses are as follows: cache hit, 1 cycle; cache miss, 110 cycles; main memory access with cache disabled, 105 cycles. a. When you run a program with an overall miss rate of 3%, what will the average memory access time (in CPU cycles) be? b. Next, you run a program specifically designed to produce completely random data addresses with no locality. Toward that end, you use an array of size 1 GB (all of which fits in the main memory). Accesses to random elements of this array are continuously made (using a uniform random number generator to generate the elements indices). If your data cache size is 64 KB, what will the average memory access time be? c. If you compare the result obtained in part (b) with the main memory access time when the cache is disabled, what can you conclude about the role of the principle of locality in justifying the use of cache memory?

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

DISCUSS how piecework and team or group incentive plans are used.

Answered: 1 week ago

Question

2 What are the implications for logistics strategy?

Answered: 1 week ago