1. (34 pts) In designing an 9-stage instruction-pipelined architecture with forwarding capa- bility, you are asked...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. (34 pts) In designing an 9-stage instruction-pipelined architecture with forwarding capa- bility, you are asked to consider the effect on CPI from all possible hazards, assuming that the ideal CPI is 1. • Structural hazards: None • Data hazards: (without compiler's rescheduling) - an instruction of type I immediately followed by another instruction of type IB, and the number of clock cycles stall is 2, an instruction of type I immediately followed by another instruction of type Ic, and the number of clock cycle stall is 1, listed below each is the percentage of occurrence of each combination that will lead to a stall: (an 'x' refers to an instruction of a type other than IA, IB and Ic and a represents 'immediately followed by') 4 (a) IA IB: 10% (b) IA X IB: 5% (c) IA Ic 10% : • Control hazards: (from branch instructions, disregarding those from jump or subrou- tine call instructions) the target address is calculated (PC+ offset) in the 3th stage, the condition is checked (to determine the next PC) in the 6th stage, - an average of 15% of all instructions are branch instructions, among which 70% are 'taken'. (a) (3 pts) What is the increase to CPI from the data hazards? (b) (3 pts) Determine the CPI considering all the hazards, if the pipeline is "frozen" (stalled) until the next PC is known for sure when executing a branch instruction. (c) (3 pts) Repeat (b), if a 'assume-taken' (CPU assumes all branches are taken) approach is used for branch. (d) (3 pts) Repeat (b), if a 'assume-not-taken' (CPU assumes all branches are not-taken) approach is used for branch. (e) (3 pts) In (b), if, without using the pipeline-freezing hardware, a rescheduling compiler is used to find instructions to insert into the 'branch-delay-slots', how many such slots does a compiler have to try to fill after each branch instruction in order to remove all the branch stalls (like the technique we use to fill the 'load-delay-slots' for data hazards), assuming that a nop will be placed into a slot that can not be filled? (f) (3 pts) Repeat (e), if a 'assume-taken' approach is used for branch. (g) (3 pts) Repeat (e), if a 'assume-not-taken' approach is used for branch. (h) (3 pts) In (e), suppose that 80% of all the 'data-hazard-delay-slots' and 60% of all the 'branch-delay-slots' can be filled by the compiler. What is the new CPI? (i) (10 pts) If you are forced to use the 'assume taken' approach, and you are unable to move the condition-checking operation in the pipeline, determine all the stages that you can move the EA calculation operation to so that this approach outperforms the 'assume-not-taken' approach. Show a systematic approach in solving this problem. 1. (34 pts) In designing an 9-stage instruction-pipelined architecture with forwarding capa- bility, you are asked to consider the effect on CPI from all possible hazards, assuming that the ideal CPI is 1. • Structural hazards: None • Data hazards: (without compiler's rescheduling) - an instruction of type I immediately followed by another instruction of type IB, and the number of clock cycles stall is 2, an instruction of type I immediately followed by another instruction of type Ic, and the number of clock cycle stall is 1, listed below each is the percentage of occurrence of each combination that will lead to a stall: (an 'x' refers to an instruction of a type other than IA, IB and Ic and a represents 'immediately followed by') 4 (a) IA IB: 10% (b) IA X IB: 5% (c) IA Ic 10% : • Control hazards: (from branch instructions, disregarding those from jump or subrou- tine call instructions) the target address is calculated (PC+ offset) in the 3th stage, the condition is checked (to determine the next PC) in the 6th stage, - an average of 15% of all instructions are branch instructions, among which 70% are 'taken'. (a) (3 pts) What is the increase to CPI from the data hazards? (b) (3 pts) Determine the CPI considering all the hazards, if the pipeline is "frozen" (stalled) until the next PC is known for sure when executing a branch instruction. (c) (3 pts) Repeat (b), if a 'assume-taken' (CPU assumes all branches are taken) approach is used for branch. (d) (3 pts) Repeat (b), if a 'assume-not-taken' (CPU assumes all branches are not-taken) approach is used for branch. (e) (3 pts) In (b), if, without using the pipeline-freezing hardware, a rescheduling compiler is used to find instructions to insert into the 'branch-delay-slots', how many such slots does a compiler have to try to fill after each branch instruction in order to remove all the branch stalls (like the technique we use to fill the 'load-delay-slots' for data hazards), assuming that a nop will be placed into a slot that can not be filled? (f) (3 pts) Repeat (e), if a 'assume-taken' approach is used for branch. (g) (3 pts) Repeat (e), if a 'assume-not-taken' approach is used for branch. (h) (3 pts) In (e), suppose that 80% of all the 'data-hazard-delay-slots' and 60% of all the 'branch-delay-slots' can be filled by the compiler. What is the new CPI? (i) (10 pts) If you are forced to use the 'assume taken' approach, and you are unable to move the condition-checking operation in the pipeline, determine all the stages that you can move the EA calculation operation to so that this approach outperforms the 'assume-not-taken' approach. Show a systematic approach in solving this problem.
Expert Answer:
Answer rating: 100% (QA)
a The increase to CPI from data hazards is 3 This is because there are 3 data hazard stalls per 100 instructions b The CPI with all hazards considered ... View the full answer
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
You are asked to choose between two options about which you know nothing except that they involve multiple attributes. If you could ask one binary response question to make your decision, what would...
-
In a movie library application, you are asked to consider the following kinds of movies: > Movie, a class describing all kinds of movies. > Action, a movie containing lots of explosions. Romance, a...
-
You are asked to design spring bumpers for the walls of a parking garage. A freely rolling 1200-kg car moving at 0.65 m/s is to compress the spring no more than 0.070 m before stopping. What should...
-
Consider the following molecule: Tin II Chloride(SnCl2) Are the bonds polar or non-polar? Is the molecule polar or non-polar?
-
What are some countermeasures a company can implement to protect its premises and assets from espionage?
-
A(n) ________ is the collection of all points in the plane such that the distance from each point to a fixed point equals its distance to a fixed line
-
Consider a market with two securities, one of them risk free with rate of return \(R\), and three future states. Suppose that the risky security has a present value \(S_{1}\) and can take three...
-
Dorsier Company showed the following adjusted account balances on September 30, 2014: Equipment...
-
13. On August 31, Home Depot sold materials for $6,000 cash that is subject to a 5% sales tax. Home Depot is required by law to collect and send sales taxes to the state. On December 31, Home Depot...
-
Jack Tasker opened his Auto Repair Shop in November 2023. The balance sheet at November 30, 2023, prepared by an inexperienced part-time bookkeeper, is shown below. Required Prepare a correct balance...
-
1. for f(x) = cosx on [0, /2], find c guaranteed by the intermediate value theorem if k = 1/2 2. find the vertical asymptotes of f(x) = (4x + 4x-24)/(x4-2x-9x + 18x)
-
Assume that a carpenter borrowed $2,000 to be paid off in a year to finance a machine that would make him work faster. As a result, she is able to take on more projects and collect $400 more earnings...
-
A \($1\),100-face-value bond has a 5% coupon rate, its current price is \($1\),040, and it is expected to increase to \($1070\) next year. Calculate the current yield, the expected rate of capital...
-
Property taxes in a particular district are 2% of the purchase price of a home every year. If you just purchased a \($150\),000 home, what is the present value of all the future property tax...
-
What is the price of a perpetuity that has a coupon of $70 per year and a yield to maturity of 1.5%? If the yield to maturity doubles, what will happen to the perpetuitys price?
-
Consider a coupon bond that has a \($900\) par value and a coupon rate of 6%. The bond is currently selling for \($860.15\) and has two years to maturity. What is the bonds yield to maturity?
-
Three industrial mowers are being evaluated by a company that provides lawn care service. At the end of its useful life, each mower will have a negligible salvage value. Determine the economic...
-
Planning: Creating an Audience Profile; Collaboration: Team Projects. Compare the Facebook pages of three companies in the same industry. Analyze the content on all available tabs. What can you...
-
Your client, Barriques Inc., is contemplating a restructuring of its operations, including the possibility of spinning off some of its assets to the original owners. However, management is unsure of...
-
In this simulation, you are asked to address questions regarding inventory valuation and measurement. Prepare responses to allparts. KWW Professlonal Simulation Inventory Valuation Time Remaining 2...
-
Presented below are data taken from the records of Morganstern Company. Additional information:1. Held-to-maturity securities carried at a cost of $43,000 on December 31, 2011, were sold in 2012 for...
-
A food processor claims that at most \(10 \%\) of her jars of instant coffee contain less coffee than claimed on the label. To test this claim, 16 jars of her instant coffee are randomly selected and...
-
Refer to Exercise 4.2. (a) Determine the cumulative probability distribution \(F(x)\). (b) Graph the probability distribution of \(f(x)\) as a bar chart and below it graph \(F(x)\). Data From...
-
Four emergency radios are available for rescue workers but one does not work properly. Two randomly selected radios are taken on a rescue mission. Let \(X\) be the number that work properly between...
Study smarter with the SolutionInn App