answer.
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]
2 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]2 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
If cos 65 degree +cos 55 degree = cos θ, find θ in radians
belka [17]
We have to find t(theta) in radians.
cos t = cos 65° + cos 55°  
We know that:
cos x + cos y = 2 · cos (x+y)/2 · cos (x - y)/2
cos t = 2 · cos (65°+55°)/2 · cos (65°-55°)/2
cos t = 2 · cos 60°· cos 5°
cos t = 2 · 1/2 · cos 5°
cos t = cos 5°
t = 5° = π/36 radians
7 0
2 years ago
By which smallest number should 42592 be divided so that the quotient is a perfect cube?​
QveST [7]

Answer:

it's 55

Step-by-step explanation:

Plz mark as brainliest and follow me plz

8 0
2 years ago
1.3 puzzle time why did the fraction jump into boiling water
Slav-nsk [51]

Answer:

The fraction jumped into boiling water because it wanted to be reduced.

Step-by-step explanation:

This is a maths riddle about fractions. We often see fractions that we might feel could be reduced. So, if these kinds of fractions jumps into a boiling water, they get reduced. The riddle is rather funny though.

3 0
2 years ago
Bones Brothers & Associates prepare individual tax returns. Over prior years, Bones Brothers have maintained careful records
madreJ [45]

Answer:

For this case we have the following info related to the time to prepare a return

\mu =90 , \sigma =14

And we select a sample size =49>30 and we are interested in determine the standard deviation for the sample mean. From the central limit theorem we know that the distribution for the sample mean \bar X is given by:

\bar X \sim N(\mu, \frac{\sigma}{\sqrt{n}})

And the standard deviation would be:

\sigma_{\bar X} =\frac{14}{\sqrt{49}}= 2

And the best answer would be

b. 2 minutes

Step-by-step explanation:

Previous concepts

Normal distribution, is a "probability distribution that is symmetric about the mean, showing that data near the mean are more frequent in occurrence than data far from the mean".  

The central limit theorem states that "if we have a population with mean μ and standard deviation σ and take sufficiently large random samples from the population with replacement, then the distribution of the sample means will be approximately normally distributed. This will hold true regardless of whether the source population is normal or skewed, provided the sample size is sufficiently large".

Solution to the problem

For this case we have the following info related to the time to prepare a return

\mu =90 , \sigma =14

And we select a sample size =49>30 and we are interested in determine the standard deviation for the sample mean. From the central limit theorem we know that the distribution for the sample mean \bar X is given by:

\bar X \sim N(\mu, \frac{\sigma}{\sqrt{n}})

And the standard deviation would be:

\sigma_{\bar X} =\frac{14}{\sqrt{49}}= 2

And the best answer would be

b. 2 minutes

3 0
2 years ago
Rachel traveled to five different areas (A, B, C, D, and E) to study the number of buckeye butterflies and the number of monarch
vekshin1

Answer:

C and E

Step-by-step explanation:

Have a great day! THanks!

8 0
2 years ago
Read 2 more answers
Other questions:
  • Mary Hernandez had a policy with a $250 deductible which paid 80% of her covered charges less deductible. She had medical expens
    11·2 answers
  • Complete the sentence below. If (3x2 + 22x + 7) ÷(x + 7) = 3x + 1, then (x + 7)(???????) =???? .
    13·2 answers
  • In circle U below, VT = 90 inches.<br> What is the length of arc ZV?
    11·2 answers
  • Which recursive formula can be used to generate the sequence below, where f(1) = 3 and n ≥ 1?
    12·2 answers
  • Twenty five individuals are randomly selected out of 100 shoppers leaving a local bedding store. Each shopper was asked if they
    8·1 answer
  • The marketing department at Cable TV (CTV) wants to know how promotional advertising affects the number of viewers for the Satur
    11·1 answer
  • The point StartRoot x EndRoot is plotted on the number line. A number line going from 9.8 to 10.7. StartRoot x EndRoot is plotte
    13·2 answers
  • A random sample of BYU-Idaho students was surveyed and asked if they were in favor of retaining the penny as a form of currency
    10·1 answer
  • Which functions have an additive rate of change of 3? Select two options<br>​
    6·1 answer
  • The cost of unleaded gasoline in the Bay Area once followed a normal distribution with a mean of $4.74 and a standard deviation
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!