1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sukhopar [10]
3 years ago
14

Question 1 (40 pt). You are given designs of 3 caches for a 16-bit address machine: D1: Direct-mapped cache. Each cache line is

1 byte. 10-bit index, 6-bit tag. 1 cycle hit time. D2: 2-way set associative cache. Each cache line is 1 word (4 bytes). 7-bit index, 7-bit tag. 2 cycle hit time. D3: fully associative cache with 256 cache lines. Each cache line is 1 word. 14-bit tag. 5 cycle hit time. Answer the following set of questions: a) What is the size of each cache? b) How much space does each cache need to store tags? c) Which cache design has the most conflict misses? Which has the least? d) The following information is given to you: hit rate for the 3 caches is 50%, 70% and 90% but did not tell you which hit rate corresponds to which cache, which cache would you guess corresponded to which hit rate? Why? e) Assuming the miss time for each is 20 cycles, what is the average service time for each? (Service Time = (hit rate)*(hit time) + (miss rate)*(miss time)). Question 2 (30 pt). Assume we have a computer where the CPI is 1.0 when all memory accesses (including data and instruction accesses) hit in the cache. The cache is a unified (data + instruction) cache of size 256 KB, 4-way set associative, with a block size of 64 bytes. The data accesses (loads and stores) constitute 50% of the instructions. The unified cache has a miss penalty of 25 clock cycles and a miss rate of 2%. Assume 32-bit instruction and data addresses. Now, answer the following questions:
Mathematics
1 answer:
BigorU [14]3 years ago
6 0

Answer:

Step-by-step explanation:

a) What is the size of each cache?

Direct mapped cache= 2^index * size of cache line= 2^10 * 1B lines = 1KB.

2-way set associative cache= 2^index * size of cache line * 2 ways=2^7 * 4 words *2ways= 128 4B lines * 2 ways = 1KB

Fully associative cache= number of cache lines* size of each line= 256 * 4B lines = 1KB

b) How much space does each cache need to store tags?

Direct mapped cache= 1024 * 6-bit tags = 6Kb

2-way set associative cache= 256 * 7-bit tags = 1792 bits

Fully associative cache= 256 * 14-bit tags = 3584 bits

c) Which   cache   design   has   the   most   conflict   misses?   Which   has   the   least?    

Direct mapped cache has likely the most conflict misses, because it is direct mapped. Fully associative cache has the least since it is fully associative so it can never have conflict misses.

d) The   following   information   is   given   to   you: hit   rate   for   the   3   caches   is   50%,   70%   and   90%  but   did   not   tell   you   which   hit   rate   corresponds   to   which   cache,   which   cache   would   you   guess  corresponded   to   which   hit   rate?   Why?    

Since the size of all three caches is same size and as we said in the previous answer that direct mapped cache has more conflict misses and fully associative has the least so direct mapped will have 50%, 2-way set associative 70%, and Fully associative will have 90% hit rate.

e) Assuming   the   miss   time   for   each   is   20   cycles,   what   is   the   average   service   time   for   each? (Service   Time   =   (hit   rate)*(hit   time)   +   (miss   rate)*(miss   time)

We are given hit rates and miss rates. Also miss time=2o cycles for each cache and hit time= 1, 2, 5 for direct mapped, 2-way set associative and fully associative cache respectively.

Direct mapped= 0.5*1 + 0.5*20 = 10.5 cycles

2-way set associative= 0.7*2 + 0.3*20 = 7.4 cycles

Fully associative cache= 0.9*5 + 0.1*20 = 6.5 cycles.

You might be interested in
The producer of the news station posted an article about the high school's football championship ceremony on anew website. The w
sasho [114]

Incomplete question. The full question read;

The producer of the news station posted an article about the high school’s football championship ceremony on a new website. The website had 500 views after four hours. Create a table to show how many views the website would have had after the first, second, and third hours after posting if the website receives views at the same rate. How many views would the website receive after 5 hours?

Answer:

<u>625 views</u>

Step-by-step explanation:

<em>Remember,</em> we are told to <u>base our calculation on the assumption that the website receives views at the same rate.</u>

Hence, if after 4 hours there were 500 views, it means the average views per hour would be 500/4 = 125 views. So for every hour, there would be 125 added views to the total.

In other words,

First hour: <u>125 views</u>

Second hour:<u> </u><u>250 views (125 views + 125 views</u>)

Third hour: <u>375 views (250 views + 125 views)</u>

Fourth hour: <u>500 views (375 views + 125 views)</u>

Fifth hour:<u> 625 views (500 views + 125 views)</u>

7 0
2 years ago
The area of a square is 144 square meters. what is the length in meters of one side of the square?​
slega [8]
Well i know that 12x12=144 so it is 12!
3 0
2 years ago
Read 2 more answers
The circumference of a circle is 12 pi what is the diameter​
Zolol [24]

Answer:

Step-by-step explanation:

Givens

C = 12 * pi

C = 2*pi * r

Solution

2*pi * r = 12*pi                        Divide both sides by 2pi

2*pi * r/ 2*pi = 12*pi/2pi

r = 6

Answer: the diameter = 2 * r

the diameter = 12

5 0
3 years ago
PLZ HELP ME ITS 30 POINTS PLZ HELP ME ITS 30 POINTS
pentagon [3]

I cant really see that- could you tell me what that is?

5 0
3 years ago
Read 2 more answers
13.
liubo4ka [24]

Answer:

6x +4 where x is amount for standard call

Step-by-step explanation:

4 0
2 years ago
Read 2 more answers
Other questions:
  • Starting at sea level, a submarine descended at a constant rate to a depth of −56 mile relative to sea level in 4 minutes. What
    12·2 answers
  • What is the product of -9p and (-4)
    5·2 answers
  • Write 6(x – 5)4 + 4(x – 5)2 + 6 = 0 in the form of a quadratic by using substitution.
    7·1 answer
  • An oil company fills 1/12 of a tank in 1/3 hour. At this rate, which expression can be used to determine how long it will take f
    9·1 answer
  • Solve for x. x3=−1000
    12·2 answers
  • Please answer this question now
    12·2 answers
  • Plz help find area and perimeter
    5·1 answer
  • Its was estimated that 250 people would attend the movie, but 235 people actually attended. What is the percent error, to the ne
    6·1 answer
  • Graph the line with slope -1/2 passing through the point (5,4)
    5·1 answer
  • Jack's backyard has a grassy lawn, a deck, and a pool. the pool takes up 1/5 for the yard, the deck takes up 1/4 of the yard the
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!