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
o-na [289]
4 years ago
8

When we were discussing floating point addition, we made the simplifying assumption that each of the functional units took the s

ame amount of time. Suppose that fetch and store each take 2 nanoseconds and the remaining operations each take 1 nanosecond. a. How long does a floating point addition take with these assumptions?b. How long will an unpipelined addition of 1000 pairs of floats take with these assumptions?c. How long will a pipelined addition of 1000 pairs of floats take with these assumptions? d. The time required for fetch and store may vary considerably if the operands/ results are stored in different levels of the memory hierarchy. Suppose that a fetch from a level 1 cache takes two nanoseconds, while a fetch from a level 2 cache takes five nanoseconds, and a fetch from main memory takes fifty nanoseconds. What happens to the pipeline when there is a level 1 cache miss on a fetch of one of the operands? What happens when there is a level 2 miss?
Computers and Technology
1 answer:
irinina [24]4 years ago
5 0

Answer:

The solution the given problem is done below.

Explanation:

a. How long does a floating point addition take with these assumptions?

The seven operations that are performed for the floating point sum are: Fetch operands, Compare  exponents, Move an operand, Add, Normalize the result, Round the result, Store  the result.

Assuming Fetch and store operations take 2 nanoseconds and the rest  operations take 1 nanosecond, the total time elapsed would be: 2 + 1 + 1 + 1 + 1 + 1 + 2 = 9  nanoseconds.

b. How long will an unpipelined addition of 1000 pairs of floats take with these assumptions?

A sum of 1000 pairs of floats done normally and in sequence would take 1000 times the time of  a single sum: 9 * 1000 = 9000 nanoseconds.

c. How long will a pipelined addition of 1000 pairs of floats take with these assumptions?

For the pipeline operation on the operations in question. They are divided into seven units  functional. The units operate in sequence and the output of a functional unit is the input of the  next. After making the first addition, which lasts 9 nanoseconds, 1 result is produced every 2  nanoseconds.

Therefore, the total execution time of the loop is 2 * 999 + 9 = 2007 nanoseconds.

d. The time required for fetch and store may vary considerably if the operands/ results are stored in different levels of the memory hierarchy. Suppose that a fetch from a level 1 cache takes two nanoseconds, while a fetch from a level 2 cache takes five nanoseconds, and a fetch from main memory takes fifty nanoseconds. What happens to the pipeline when there is a level 1 cache miss on a fetch of one of the operands? What happens when there is a level 2 miss?

The order in which data is fetched from the cache is from the fastest to the slowest level.

When a level 1 cache miss occurs:

Search operation = 2 nanoseconds to search the cache level 1 + 5 nanoseconds to search the  cache level 2 = 7 nanoseconds .

When a level 2 cache miss occurs:

Search operation = 2 nanoseconds to search the cache level 1 + 5 nanoseconds to search the  cache level 2 + 50 nanoseconds to search the main memory = 57 nanoseconds.

You might be interested in
_____ refers to displaying information for the user's view.
Fantom [35]
It is A outputting (if you want I can show what it says in the dictionary)
7 0
3 years ago
Read 2 more answers
Complete this assignment in Python 3.x. Make sure you have downloaded the software, and it is installed correctly.
Masja [62]

Answer:

The program code is completed below

Explanation:

Program Code:

"""

  Your Name

  Course Name, Section (example: ENTD200 B002 Spr15)

  Instructor name

  Week #

  Date completed

"""

months = ["January ", "February", "March", "April", "May", "June", "July"

, "August", "September", "October", "November", "December"]

for i in range(0,12):

print("Month",i+1, "is" , months[i])

6 0
3 years ago
What are considered to be among the earliest adhesives?
miss Akunina [59]
If you mean glue, then heres a list of what I can remember. 
1.<span>Epoxy resins
2.</span><span>.Acrylic resin.
3. polyester resin</span>
8 0
3 years ago
What is the meaning of Re:?
adelina 88 [10]

Answer:

In Email's Subject Line “Re:” most commonly understood as “Reply/Response” to an Email. “Re: ” is not taken as abbreviation of Regards/Reference. For Reference, Abbreviation is “Ref.”Explanation:

5 0
3 years ago
Read 2 more answers
Which of the following is something you need to keep an eye out for
Brilliant_brown [7]

Answer:

D. Pedestrians ignoring DON'T WALK signs

Explanation:

Pedestrians ignoring DON'T WALK signs is something you need to keep an eye out for  near packed intersections.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Adding a ____ to text adds depth and helps the letters display prominently.
    5·1 answer
  • Effective note-taking helps support<br><br> action.<br> distinction.<br> distraction.<br> retention.
    9·2 answers
  • When you create a new slide in a presentation program, you are promoted to choose a placeholder. True or false?
    11·2 answers
  • Okay so, not really a question but whatever it’s been bothering me.
    9·2 answers
  • Which of the following jobs is considered part of the information technology industry?
    15·2 answers
  • Bulldog Holdings is a U.S.-based consumer electronics company. It owns smaller firms in Japan and Taiwan where most of its cell
    5·1 answer
  • In addition to paying $100 per month for health insurance, sam is responsible for paying her first $500 of medical bills every y
    10·1 answer
  • 我对汉语的兴趣 làm đoạn văn theo đề trên​
    14·1 answer
  • How do we store value in a variable? Give an example
    15·1 answer
  • Write a boolean expression that is true if s references the string end.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!