subject

Suppose that we have 10,000 lines in our program. Suppose that our computer has four pipelinestages. Suppose that the program has the followingcharacteristics: 2% of instructions are branch instructions. 20% ofbranch instructions require theinsertion of 1 NOP each (for the other 80% of branchinstructions, instructionreordering is used.)
5% of instructions are memory reads, and the cachehit rate is 80%. All memoryaccesses that miss the cache can be found in mainmemory. Reading from mainmemory takes 10 clock cycles. We use a write backand write-allocate policy. Writing to main memory takes 10 clock cycles. Reading fromand writing to main memorycannot take place simultaneously. Assume that whena cache entry needs to bereplaced, 20% of the time the dirty bit is 1
5% of instructions are memory writes, and the cachehit rate is 90%. We use a writeback and write-allocate policy. Writing to main memorytakes 10 clock cycles. Reading from and writing to main memory cannot takeplace simultaneously. Assumethat when a cache entry needs to be replaced, 20%of the time the dirty bit is 1.

The clock period is 10ns.

Required:
a. How many cycles would it take to run the entire program if there were no stalls?
b. How many additional cycles would be caused by branch instructions?
c How many additional cycles would be caused by memory read instructions?
d. How many additional cycles would be caused by memory write instructions?

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:40, almaga1979orfvwo
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
image
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, bskyeb14579
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
image
Computers and Technology, 23.06.2019 13:10, BrianKeokot4534
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
You know the right answer?
Suppose that we have 10,000 lines in our program. Suppose that our computer has four pipelinestages....

Questions in other subjects:

Konu
Computers and Technology, 31.08.2020 20:01
Konu
Health, 31.08.2020 20:01
Konu
History, 31.08.2020 20:01
Konu
Mathematics, 31.08.2020 20:01