(a) Briefly describe the typical 5-stage pipelining in the DLX/RISC architecture. State possible events for load,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Briefly describe the typical 5-stage pipelining in the DLX/RISC architecture. State possible events for load, branch, and register-register ALU instructions in its execution stage (EXE stage). (6 marks) (b) The following code is executed in a DLX pipelined processor. R2, R2, R3 //R2=R2-R3 R1, 20(R2) //load word into R1 //increment R1 by 1 R1, R1, #1 20(R3), R1 R2, R2, #4 //store word from R1 to memory //increment R2 by 4 //R4=R3+R5 R4, R3, R5 SUB LW ADDI SW ADDI ADD • Draw a pipeline timing table to indicate possible pipeline hazards in the execution, and explain why stalling the pipeline is needed to avoid the hazards. • When the machine is equipped with forwarding hardware, re-draw the pipeline timing table indicating where forwardings are needed. Explain how the forwarding techniques are used in this case to achieve a hazard-free operation with the optimal performance. (10 marks) (c) Calculate the speedup gained from the forwarding technique for the code in (b). Show the steps of your calculation and state any assumptions you make. Restrict the result to 2 decimal digits. (4 marks) (a) Briefly describe the typical 5-stage pipelining in the DLX/RISC architecture. State possible events for load, branch, and register-register ALU instructions in its execution stage (EXE stage). (6 marks) (b) The following code is executed in a DLX pipelined processor. R2, R2, R3 //R2=R2-R3 R1, 20(R2) //load word into R1 //increment R1 by 1 R1, R1, #1 20(R3), R1 R2, R2, #4 //store word from R1 to memory //increment R2 by 4 //R4=R3+R5 R4, R3, R5 SUB LW ADDI SW ADDI ADD • Draw a pipeline timing table to indicate possible pipeline hazards in the execution, and explain why stalling the pipeline is needed to avoid the hazards. • When the machine is equipped with forwarding hardware, re-draw the pipeline timing table indicating where forwardings are needed. Explain how the forwarding techniques are used in this case to achieve a hazard-free operation with the optimal performance. (10 marks) (c) Calculate the speedup gained from the forwarding technique for the code in (b). Show the steps of your calculation and state any assumptions you make. Restrict the result to 2 decimal digits. (4 marks)
Expert Answer:
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these programming questions
-
Look at this article about our airport expansion https://flyfrompti.com/whats-going-on-at-pti-current-construction-projects/ What is the purpose of the PTI airport? How can this expansion support...
-
This exercise is intended to help you understand the relationship between delay slots, control hazards, and branch execution in a pipelined processor. In this exercise, we assume that the following...
-
In this exercise, we examine how resource hazards, control hazards, and Instruction Set Architecture (ISA) design can affect pipelined execution. Problems in this exercise refer to the following...
-
Histogram. Suppose that the standard input stream is a sequence of double values. Write a program that takes an integer n and two real numbers lo and hi as command-line arguments and uses StdDraw to...
-
Rees Distributors uses the periodic inventory system. Rees reported these amounts at May 31, 2014: Inventory, May 31, 2013 ............... $ 29,000 Inventory, May 31, 2014 .................. 31,000...
-
Give several applications for fasteners used in various household products and explain why other joining methods have not been used instead?
-
If you are preparing a client for a deposition, what rules for responding to deposition questions should you review with the client?
-
TourneSol Canada, Ltd. is a producer of high quality sunflower oil. The company buys raw sunflower seeds directly from large agricultural companies, and refines the seeds into sunflower oil that it...
-
Case study. The establishment of CSE and its subsequent development is in line with national policy and strategy, defined by the Swedish agency NUTEK. Its activities are now incorporated into...
-
Refer to The Appraisal Journal (Summer 2019) study of the valuation of single Refer to The Appraisal Journal (Summer 2019) study of the valuation of singletenant properties. Recall that the ratio of...
-
Consider the equation f(x) = x cos(x). Integrate f(x) from x = 5 to 3000 (inclusive) with 2211 points using the Simpson's 3/8 and Simpson's 1/3 rules alternatively, such that 2211 points are used in...
-
How can international students in advanced programs be better supported in strengthening their academic english? We will be looking to implement good ideas that your literature reviews raise! Find...
-
Robert tells Joan, his wife, that he has been offered an upper management position by his employer. He informs her that if he accepts the offer, he will be required to relocate to Japan and work...
-
(c) Is the expression (x+3)(x-3) equal to x - 9? 2
-
The GOP-led Tennessee House of Representatives expelled 2 of the 3 democrats who led a gun reform protest on the floor of the house....
-
The nth harmonie of standing waves in a string of length L has a wavelength of 0 . 4 3 2 0 m , while the ( n - 1 ) th harmonic has a wavelength of 0 . 5 4 0 0 m . Find L , the length of the string.
-
Identify the wrong statement with reference to transport of oxygen. (1) Binding of oxygen with haemoglobin is mainly related to partial pressure of O 2 (2) Partial pressure of CO 2 can interfere with...
-
What kind of financial pressures can an LBO cause?
-
Quite often, you would expect that given a timing diagram containing a description of changes that take place on a data input D and a clock input C (as in Figures B.8.3 and B.8.6 on pages B-52 and...
-
Is it ever safe for a user program to use registers $k0 or $k1?
-
Implement a switching network that has two data inputs (A and B), two data outputs (C and D), and a control input (S). If S equals 1, the network is in pass-through mode, and C should equal A, and D...
-
On July 31, 2020, Magnus's Muffins paid \(\$ 18,000\) for business insurance for the next year. Record the entries for the purchase of the insurance by recording it as an expense and then making a...
-
On November 1, 2020, Freya Albatter's orthodontic office received a \(\$ 2,500\) prepayment from a client for dental work to be performed on November 22. The appointment got postponed until January...
-
On April 1, 2020, you prepaid three months of rent for a total of \(\$ 18,000\). Give your adjusting entry to record rent expense at April 30, 2020. Include the date of the entry and an explanation....
Study smarter with the SolutionInn App