Question: Consider the following program: program pipeline 4 a = 1 0 b = 2 0 c = 3 0 d = 4 0 c =
Consider the following program:
program pipeline
a
b
c
d
ccb
dcb
db
adc
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: Everv 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.
b Fill in the following after executing of above program using nonpipelined processor.
c What are the contents of Generalpurpose registers after the execution of the program?
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:
b Is there a way to improve the CPI and Speed up factor? If so give the 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
