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]
4 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]4 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
A group of researchers wants to develop an experiment to determine whether a new drug effectively treats hypothyroidism. The res
Rashid [163]

Some possible ethical issues to this type of testing that they are subjected to unpleasant and hazardous procedures, as well as stress and injury.

<h3>What is experiment?</h3>

Any well-defined method that yields an observable outcome that cannot be precisely predicted in advance is referred to as a experiment. To avoid any ambiguity or surprise, a experiment must be properly defined.

A) Because human experimentation is immoral, animal research has been employed as a research approach.

However, using animals is unethical because they are subjected to unpleasant and hazardous procedures, as well as stress and injury. The use of non-animal methods to substitute animal methods as much as possible will provide both ethical and technical benefits. Researchers should make the use of non-animal methods for a top priority experiments.

B) Even though the purpose of an experiment is to ensure success in rabbits, this is incorrect in people because action is what will operate properly.

The absence of thyroid-stimulating hormone in rabbit serum is a mistaken notion. As a result, it is preferable to test the drug further, and it was a success. As a result, there will be no dysfunctionality for humans.

Thus, some possible ethical issues to this type of testing that they are subjected to unpleasant and hazardous procedures, as well as stress and injury.

Learn more about the experiment here:

brainly.com/question/14298568

#SPJ1

8 0
2 years ago
Prof. Shanks assigns 5 students to work on a project. The group is to have no more than 1 freshman. In how many ways can the gro
polet [3.4K]

Answer:

1302

Step-by-step explanation:

10C5 + (5C1×10C4) = 1302

8 0
4 years ago
And are opposite rays. All of the following are true except ______.
Nezavi [6.7K]

There is not enough question to give i an answer

3 0
3 years ago
Read 2 more answers
Write the equation of the linear relationship in slope-intercept form, using decimals as needed.
Vedmedyk [2.9K]

Answer:

y = -0.3x + 103

Step-by-step explanation:

✔️Find the slope (b):

Slope = ∆y/∆x

Using, (25, 95.5) and (35, 92.5),

Slope (m) = (92.5 - 95.5)/(35 - 25) = -3/10 = -0.3

✔️Find the y-intercept (b):

Substitute (x, y) = (25, 95.5) and m = -0.3 into y = mx + b

95.5 = -0.3(25) + b

95.5 = -7.5 + b

95.5 + 7.5 = b

103 = b

b = 103

✔️To write the equation, substitute m = -0.3 and b = 103 into y = mx + b

Thus:

y = -0.3x + 103

4 0
3 years ago
What is an equation of the line that passes through the points (-3, 8) and (4, 1)?
butalik [34]

Answer:

The equation of the line is:

y=-x+5

Step-by-step explanation:

Given the points

  • (-3, 8)
  • (4, 1)

Finding the slope between the points

\left(x_1,\:y_1\right)=\left(-3,\:8\right),\:\left(x_2,\:y_2\right)=\left(4,\:1\right)

\mathrm{Slope}=\frac{y_2-y_1}{x_2-x_1}

m=\frac{1-8}{4-\left(-3\right)}

m=-1

Using the point-slope form of the line equation

y-y_1=m\left(x-x_1\right)

where m is the slope

substituting the values m = -1 and the point (-3, 8)

y-y_1=m\left(x-x_1\right)

y-8=-1\cdot \left(x-\left(-3\right)\right)

y-8=-\left(x+3\right)

Add 8 to both sides

y-8+8=-\left(x+3\right)+8

y=-x+5

Therefore, the equation of the line is:

y=-x+5

8 0
3 years ago
Other questions:
  • A total of 426 tickets were sold for the school play. They were either adult tickets or student tickets. The number of student t
    6·1 answer
  • Under a dilation, the point (3, 5) is moved to (6, 10).
    14·2 answers
  • Show that (x-5) is a factor of x^3-3x^2-13x+15
    10·1 answer
  • Terry owns a triangular piece of land that has three corner fence poles at A, B,and C. The three poles are plotted on a grid in
    13·1 answer
  • Question 5 help !! It’s worth 10 points !!!!
    9·1 answer
  • Can someone please help me with number 2 thank you!
    6·1 answer
  • Construction crews are building a highway between the towns of Washington and Jefferson. Currently the highway is 16.25 miles lo
    7·1 answer
  • The price of a 6-minute phone call is 1.80. What is the price of a 12-minute phone call?
    10·2 answers
  • Ricardo is creating a budget for himself to set goals on how much money he wants to save. At his current job, he makes $90 per w
    15·1 answer
  • Please help!! "Quadrilateral ABCD is inscribed in the circle below. Find the measure of all four angles."~!!!!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!