2. (15%) Give a sequence of instructions and the graphical representation of a 5-stage pipelined datapath...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. (15%) Give a sequence of instructions and the graphical representation of a 5-stage pipelined datapath with full forwarding and stall mechanism. Assume that when a register is read and written in the same clock cycle, the write is in the 1st half of the clock cycle and the read is in the 2nd half. 1 2 lw $2, 0($1) add $3, $2, $1 3 and $4, $3, $2 4 lw $4, 0($2) 5 sw $4, 0($5) IF ID EX MEM WB |0|4|0|0 (a) List the (true) data dependencies in the code sequence by specifying the instruction pair and the register that causes the dependence; for example, (1-12, $6). (b) Which of the data dependencies listed in (a) will not cause data hazard in this pipelined datapath? Why? (c) For those data dependencies that may cause data hazards, which of the data hazards may be resolved by applying forwarding only? Why? (d) For those data dependencies that may cause data hazards, which of the data hazards should be resolved by applying both stall and forwarding? Why? (e) How many cycles are required to complete the code sequence in this pipeline? Why? 2. (15%) Give a sequence of instructions and the graphical representation of a 5-stage pipelined datapath with full forwarding and stall mechanism. Assume that when a register is read and written in the same clock cycle, the write is in the 1st half of the clock cycle and the read is in the 2nd half. 1 2 lw $2, 0($1) add $3, $2, $1 3 and $4, $3, $2 4 lw $4, 0($2) 5 sw $4, 0($5) IF ID EX MEM WB |0|4|0|0 (a) List the (true) data dependencies in the code sequence by specifying the instruction pair and the register that causes the dependence; for example, (1-12, $6). (b) Which of the data dependencies listed in (a) will not cause data hazard in this pipelined datapath? Why? (c) For those data dependencies that may cause data hazards, which of the data hazards may be resolved by applying forwarding only? Why? (d) For those data dependencies that may cause data hazards, which of the data hazards should be resolved by applying both stall and forwarding? Why? (e) How many cycles are required to complete the code sequence in this pipeline? Why?
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 algorithms questions
-
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...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Discuss why you would or would not like to work in an organization like this?
-
Assume that the price of a bus trip is $1, and the price of a gallon of gas is $2.50. What is the relative price of a gallon of gas, in terms of bus trips? What happens when the price of a bus trip...
-
A bond with a coupon rate of 7% makes semiannual coupon payments on January 15 and July 15 of each year. The Wall Street Journal reports the asked price for the bond on January 30 at 100:02. What is...
-
What is object-oriented modeling? How does it differ from Unified Modeling Language (UML)?
-
1. Take a poll of your class (at least, the Gen-X and Gen-Y members). At school or work, how many regularly (e.g., daily or every few days) send or receive information (not entertainment) using (a)...
-
The following book and fair values were available for Westmont Company as of March 1. Book Value Inventory Land Buildings $ 551,500 771,000 1,895,000 Fair Value $ 515,250 1,050,750 Customer...
-
3. Let (V, ) be an F inner product space. Let u, v E V such that < x, u >= < x,v > for all x E V. Show that u = v. 4. Let V be a n-dimensional vector space whose basis is {e1,..., en}. Let n x, y E V...
-
5.4 Describe briefly two advantages and two disadvantages of a corporate form of business organization as compared to a partnership. 5.5 Jack Flubber, who owns Sons of Flubber Construction Co., and...
-
Can you reply to this classmate agreeing with their comment? I think the team worked adequately in the scenario I think they could have worked on communicating better. With that being said I think...
-
As loan analyst for Culver Bank, you have been presented the following information. Toulouse Co. Lautrec Co. Assets Cash $115,000 $316,000 Receivables 211,000 305,000 Inventories 595,000 539,000...
-
Bond A: 10% (annual) coupon rate with semiannual payments, 5 years to maturity Bond B: 4% (annual) coupon rate with semiannual payments, 20 years to maturity Exhibit 1: Bond Price vs. Yield to...
-
Given the information below answer the questions. Depreciation Expense-Building 12,000 12,000 Repairs Expense 8,850 8,850 feedba Depreciation Expense-Equipment 4,800 4,800 Insurance Expense 3,150...
-
Please provide an argument for and an argument against. 3. This question studies how labor income has evolved over the past 50 years relative to GDP. a. Using FRED, acquire the following data series:...
-
Selected condensed data taken from a recent statement of financial position of Morino Ltd. are as follows. MORINO LTD. Statement of Financial Position (partial) Other current assets...
-
This exercise explores how exception handling affects pipeline design. The first three problems in this exercise refer to the following two instructions: Instruction 1...................Instruction 2...
-
If the bit pattern 00C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
-
Media applications that play audio or video files are part of a class of workloads called streaming workloads; i.e., they bring in large amounts of data but do not reuse much of it. Consider a video...
-
After successful stretches at Target and Apple, it seemed as though Ron Johnson was a master marketer. But things went sour quickly after JC Penney hired him as its CEO. Johnsons attempt to reinvent...
-
One of the main fears that retail startups have is if they will be able to compete against Walmart, Home Depot, and the other big-box stores. This is a legitimate fear. Big-box stores continue to...
-
Influencer marketing is a type of marketing where companies partner with influencers, who have a significant following on social media platforms, to promote their products or services. Influencers...
Study smarter with the SolutionInn App