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
An artist designed a badge for a school club. Figure ABCD on the coordinate grid below shows the shape of the badge.
dedylja [7]

Answer:

(8, 4)

Step-by-step explanation:

<em>AD is enlarged to JM</em>

<em>AD² = 2² + 1² = 4 + 1 =5</em>

<em>AD =  √5</em>

then you plug in JM

<em>JM² = 6² + 3² = 36 + 9 = 45</em>

<em>JM = √45 = 3 √5</em>

<em>so if </em>

<em>JM=3 AD</em>

then

<em>ML= 3 DC </em>

<em>then you add</em>

<em>5+3=8</em>

the coordinates for point L are (8, 4)

3 0
3 years ago
Read 2 more answers
HHEEEEEEELPPPPP, I'LL MARK THE BRAINLIEST
navik [9.2K]

Answer: 6 square 4

Step-by-step explanation:

i hope this helps

7 0
3 years ago
Read 2 more answers
The height of a triangular window is 3 feet less than its base. The area the window is 20 ft.? find the dimensions of the window
Ivenika [448]

Let us assume base of the window = b feet.

Height is 3 feet less than base, that is = (b-3).

Given area of the triangle = 20 feet square.

We know formula for area of a triangle:

Area = \frac{1}{2} × Base × Height

Plugging values in formula, we get

20 = \frac{1}{2} b \times (b-3)

\mathrm{Multiply\:both\:sides\:by\:}2

40=b\left(b-3\right)

40=b^2-3b

b^2-3b-40=0

Factoring quadratic, we get

\left(b+5\right)\left(b-8\right)=0

b+5=0

b=-5

b-8=0

b=8.

For base we can take only positive value.

<h3>Therefore, base of the triangle = 8 feet and height = 8 -3 = 5 feet.</h3>
6 0
3 years ago
What is the area, in square units, of trapezoid AEDC shown below?
just olya [345]
20 • 12 is 240
1/2 • 12 • 4 is 24
so 264
7 0
3 years ago
Bridget is making greeting cards, which she will sell by the box at an art fair. She paid $30 for a booth at the fair and the ma
LiRa [457]

Answer:

when she sold 10 cards, it will cover all her cost.

Step-by-step explanation:

Profit(without charge of booth)=5x-2x

Profit=3x-30

Calculating:

3x=30

x=10

8 0
3 years ago
Other questions:
  • A charity organization had a fundraiser where each ticket was sold for a fixed price $70. They had to sell a few tickets just to
    7·1 answer
  • Express the ratio below in its simplest form.1:1.5<br>​
    14·2 answers
  • Please help me with this question :)
    12·1 answer
  • A recipe for fruit salad cost for three times as many apples as oranges what statement is true
    10·1 answer
  • A furniture store sold 34 tables, 46 bookcases, and 14 beds. How many pieces of furniture did the store sell in all
    15·2 answers
  • Need help ASAP!!
    9·1 answer
  • 55gvbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    13·1 answer
  • What are the first 10 digits of pie?
    8·2 answers
  • ∠A and ∠B are supplementary such that
    8·1 answer
  • Please help! image is shown below
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!