1 answer

Data forwarding. Can you please mark which lines in the figure are for data forwarding? Does...

Question:

  1. Data forwarding. Can you please mark which lines in the figure are for data forwarding? Does data forwarding solve all data hazards in the figure?

Question 3: pipeline implementation a. Data forwarding. Can you please mark which lines in the figure are for data forwarding

Question 3: pipeline implementation a. Data forwarding. Can you please mark which lines in the figure are for data forwarding? Does data forwarding solve all data hazards in the figure? Time (in clock cycles) CC 1 CC 2 CC 4 CC5 сс 6 Program execution order (in instructions) LD R4, O(R1) SD R4,12(R1) ole 01

Answers

Time (in clock cycles) CC1 CC 4 CC5 CC6 LDR4, ORI) SO 14.12(1)

Solution to question 3 :-The Dark black lines in the figure below shows all the data forwarding lines .

Yes , this figure solve all data hazards problems because in the question three instructions are given which are decribed as follows:-

Definition:-

Data hazards occur when the pipeline changes the order of read /write access to the operands that is different from the normal execution sequence . Basically hazards are the delay in the pipeline due to the dependency problem .

There are three types of data hazards which are as follows :-

1. RAW Hazard ( Read after write hazard also known as true data dependency ) – It is created when instruction ‘J’ tries to read the data before instruction ‘I’ writes it .

2. WAR Hazard ( Write after read hazard also known as anti data dependency )- – It is created when instruction ‘J’ tries to write the data before instruction ‘I’ reads it .

3.WAW Hazard ( Write after write hazard also known as output data dependency ) – It is created when instruction ‘J’ tries to write the data before instruction ‘I’ writes it .

1. DADD R1 , R2 , R3     ( In this instruction three registers present R1, R2 , R3 .

Data is present in R2 and      R3,on that data addition is performed . after that result copied in R1)

2. LD R4 , 0(R1)    ( this is load instruction , in this instruction dependency is present because of R1 that is R1 is reading before R1 written in the 1st instruction so it is true data dependency . so data forwarding should take place because of data hazards.[RAW Hazard present ]

3. SD R4, 12(R1)    ( this instruction also dependent on the above two instructions because of R1( anti data dependency) and R4( output data dependency ) .

So data forwarding should take place )

Time (in clock cycles) CC1 CC 4 CC5 CC6 LDR4, ORI) SO 14.12(1)

.

Similar Solved Questions

1 answer
Contribution Margin and Contribution Margin Ratio For a recent year, McDonald's (MCD company-owned restaurants had the...
Contribution Margin and Contribution Margin Ratio For a recent year, McDonald's (MCD company-owned restaurants had the following sales and expenses (in millions): Sales $15,295.0 Food and packaging Payroll Occupancy (rent, depreciation, etc.) General, selling, and administrative expenses $(4,896...
1 answer
The following data is provided for Garcon Company and Pepper Company. Beginning finished goods inventory Beginning...
The following data is provided for Garcon Company and Pepper Company. Beginning finished goods inventory Beginning work in process inventory Beginning raw materials inventory (direct materials) Rental cost on factory equipment Direct labor Ending finished goods inventory Ending work in process inven...
1 answer
2. For each of the following terms, indicate what type of biological molecule it is (DNA,...
2. For each of the following terms, indicate what type of biological molecule it is (DNA, protein, lipid, carbohydrate) Operator Transcription factor: Operon Promoter: Lactose Gene: 1...
1 answer
Q7. Food companies began using hydrogenated oil to help increase shelf life and save costs. Partially...
Q7. Food companies began using hydrogenated oil to help increase shelf life and save costs. Partially hydrogenated oils can affect heart health because they increase “bad” cholesterol and lower “good” cholesterol. On the other hand, a fully hydrogenated oil does not carry the...
1 answer
Solve the problem On a multiple choice fost with 27 questions, each question has four possible...
Solve the problem On a multiple choice fost with 27 questions, each question has four possible swers, one of which is correct For students who guess at wors, find the standard dion for the number of correct answers O 23 506 256 O 5.1...
1 answer
Nielsen tracks the amount of time that people spend consuming media content across different platforms (digital,...
Nielsen tracks the amount of time that people spend consuming media content across different platforms (digital, audio, television) in the United States. Nielsen has found that traditional television viewing habits vary based on the age of the consumer as an increasing number of people consume media...
1 answer
Write the following sequence of code into RISC-V assembler. Assume that x, y, and z are...
Write the following sequence of code into RISC-V assembler. Assume that x, y, and z are stored in registers x18, x19, and x20 respectively. z = z + y - x - 4;...
1 answer
Please help! Circle the fastest reactant for each pair in the test and give rational reason....
Please help! Circle the fastest reactant for each pair in the test and give rational reason. Thanks a lot!!! Puir Test Rationale to Nal/acetone AgNO,/ethanol Nal/acetone AgNO,/ethanol...
1 answer
Problem 1(c): Grain size distributions for four soils (i.e., Soils 1,2, 3, and 4) are shown...
Problem 1(c): Grain size distributions for four soils (i.e., Soils 1,2, 3, and 4) are shown below 100 90 2 70 60 50 3 30 20 10 100 10 4.25 .0 01o-0t5 0.01 0.001 0.0001 Diameter (mm) 567 (5 (a) The sand content of soil 1 (b) The gravel content of soil 3: (c) The fines content of soil 4: d) Dso of soi...
1 answer
If a mutation in the c subunit changed the Asp residue, which amino acid change would...
If a mutation in the c subunit changed the Asp residue, which amino acid change would cause the LEAST changes in function?...
1 answer
Why does Java provide the ability to call from a Java program native methods that are...
Why does Java provide the ability to call from a Java program native methods that are written in, say, C or C++? Provide an example of a situation in which a native method is useful....
1 answer
Which chemical reactions are not possible according to Dalton's atomic theory? CCI, CH N2 + 3H2...
Which chemical reactions are not possible according to Dalton's atomic theory? CCI, CH N2 + 3H2 → 2NH, 2H, +02 → 2H,0 + Au shouts car r y policy Terms of contact us...
1 answer
Identify two benefits of using a stakeholder approach in ethical decision-making. How would using a stakeholder...
Identify two benefits of using a stakeholder approach in ethical decision-making. How would using a stakeholder management approach help you plan and/or solve an ethical issue in your working life? Please explain in detail Minimum 500 words...
1 answer
I didn’t understand how to solve it? Q2: If you dive under wate, you notice an...
I didn’t understand how to solve it? Q2: If you dive under wate, you notice an uncomfortable pressure on your eardrum due to the increased pressure. The human eardrum has an area of about 70 mm2, and it can sustain a force of about 7 N without rupturing. If your body had no means of balanci...
1 answer
Question Which of the following processes is used to test for drunk driving and also to...
Question Which of the following processes is used to test for drunk driving and also to break down alcohol in the body? Your answer O a transesterification O b.E1 elimination O c. alcohol oxidation O d. ketone reduction...
1 answer
After the addition of aqueous acid, the product, vanillyl alcohol, precipitates out of the solution. Draw...
After the addition of aqueous acid, the product, vanillyl alcohol, precipitates out of the solution. Draw the structure of vanillyl alcohol. Explain why the alcohol is much less soluble in aqueous acid than the salt of vanillin....
1 answer
1. A manometer is attached to a sample of gas that occupies a volume of 2.5...
1. A manometer is attached to a sample of gas that occupies a volume of 2.5 liters. The mercury level in the arm of the manometer attached to the gas sample is 19.5 torr higher than that of the arm open to the atmosphere. Atmospheric pressure is measured to be 0.98 atm. What is the pressure of the s...