Question: Consider the following program: program pipeline 9 R = 4 S = 1 0 T = 5 U = 2 0 S = S +
Consider the following program:
program pipeline
R
S
T
U
SSR
TTR
RR
RT
end
Compile the code and load it in CPUOS simulator. Perform the following:
Execute the above program using nonpipelined processor and pipelined processor and answer the following questions.
Note: Every time flush the pipeline before running the code
A Nonpipelined Processor:
To enable nonpipelined processor, check No instruction pipeline check box in control panel.
a How many stages are there in nonpipelined processor? List them.
Solution:
b Fill in the following after executing of above program using nonpipelined processor.
Clocks Instruction Count CPI Speed up Factor
NonPipelined Processor
c What are the contents of Generalpurpose registers after the execution of the program?
Solution:
B Pipelined processor:
To use, enable pipelined processor, uncheck No instruction pipeline check box in control panel.
a Fill in the following table with respect to pipelined processor execution of the above program:
Pipelined processor conditions Clocks Instruction Count CPI Speed up Factor Data hazard
YesNo Contents of registers used by the program
Check Do not insert bubbles check box
Uncheck Do not insert bubbles
b Write your observation on the impact of bubble insertion. Is there a way to improve the CPI and Speed up factor? If so give the solution.
Solution:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
